|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| CheckIn.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
package org.durhamrescuemission;
|
|
| 2 |
|
|
| 3 |
import org.nakedobjects.object.AbstractNakedObject;
|
|
| 4 |
import org.nakedobjects.object.value.TextString;
|
|
| 5 |
|
|
| 6 |
/**
|
|
| 7 |
* @author <a href="mailto:matthew.todd@alumni.duke.edu">Matthew Todd</a>
|
|
| 8 |
*/
|
|
| 9 |
public class CheckIn extends AbstractNakedObject { |
|
| 10 |
private final TextString firstName;
|
|
| 11 |
private final TextString lastName;
|
|
| 12 |
private final TextString ssn;
|
|
| 13 |
|
|
| 14 |
private Resident resident;
|
|
| 15 |
|
|
| 16 | 0 |
public CheckIn() {
|
| 17 | 0 |
this.firstName = new TextString(); |
| 18 | 0 |
this.lastName = new TextString(); |
| 19 | 0 |
this.ssn = new TextString(); |
| 20 |
} |
|
| 21 |
|
|
| 22 | 0 |
public Resident getResident() {
|
| 23 | 0 |
resolve(resident); |
| 24 | 0 |
return resident;
|
| 25 |
} |
|
| 26 |
|
|
| 27 | 0 |
public void setResident(Resident resident) { |
| 28 | 0 |
this.resident = resident;
|
| 29 | 0 |
objectChanged(); |
| 30 |
} |
|
| 31 |
|
|
| 32 | 0 |
public TextString getFirstName() {
|
| 33 | 0 |
return firstName;
|
| 34 |
} |
|
| 35 |
|
|
| 36 | 0 |
public TextString getLastName() {
|
| 37 | 0 |
return lastName;
|
| 38 |
} |
|
| 39 |
|
|
| 40 | 0 |
public TextString getSsn() {
|
| 41 | 0 |
return ssn;
|
| 42 |
} |
|
| 43 |
} |
|
| 44 |
|
|
||||||||||