Fields Summary |
---|
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | GENDER_CONSTRAINTConstraint for the property gender. |
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | FIRST_NAME_CONSTRAINTConstraint for the property firstName. |
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | LAST_NAME_CONSTRAINTConstraint for the property lastName. |
public static final oreilly.hcj.datamodeling.constraints.DateConstraint | BIRTH_DATE_CONSTRAINTConstraint for the property birthDate. |
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | TAX_ID_CONSTRAINTConstraint for the property taxID. |
private Date | birthDateThe birth date of the person. |
private Gender | genderThe gender for the person. |
private String | firstNameThe first name of the person. |
private String | lastNameThe last name of the person. |
private String | taxIDThe tax ID of the person. |
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof Person)) {
return false;
} else {
final Person target = (Person)obj;
if (!target.lastName.equals(this.lastName)) {
return false;
}
if (!target.firstName.equals(this.firstName)) {
return false;
}
if (!target.birthDate.equals(this.birthDate)) {
return false;
}
if (!target.taxID.equals(this.taxID)) {
return false;
}
return true;
}
|
public java.util.Date | getBirthDate()Getter for property birthDate.
return birthDate;
|
public java.lang.String | getFirstName()Getter for property firstName.
return firstName;
|
public Gender | getGender()Getter for property gender.
return gender;
|
public java.lang.String | getLastName()Getter for property lastName.
return lastName;
|
public java.lang.String | getTaxID()Getter for property taxId.
return taxID;
|
public int | hashCode()
final String hashString =
lastName + ", " + firstName + " (" + birthDate + ") [" + taxID + "]";
return hashString.hashCode();
|
public void | setBirthDate(java.util.Date birthDate)Setter for property birthDate.
BIRTH_DATE_CONSTRAINT.validate(birthDate);
final Date oldBirthDate = this.birthDate;
this.birthDate = birthDate;
propertyChangeSupport.firePropertyChange("birthDate", oldBirthDate, this.birthDate);
|
public void | setFirstName(java.lang.String firstName)Setter for property firstName.
FIRST_NAME_CONSTRAINT.validate(firstName);
final String oldFirstName = this.firstName;
this.firstName = firstName;
propertyChangeSupport.firePropertyChange("firstName", oldFirstName, this.firstName);
|
public void | setGender(Gender gender)Setter for property gender.
GENDER_CONSTRAINT.validate(gender);
final Gender oldGender = this.gender;
this.gender = gender;
propertyChangeSupport.firePropertyChange("gender", oldGender, this.gender);
|
public void | setLastName(java.lang.String lastName)Setter for property lastName.
LAST_NAME_CONSTRAINT.validate(lastName);
final String oldLastName = this.lastName;
this.lastName = lastName;
propertyChangeSupport.firePropertyChange("lastName", oldLastName, this.lastName);
|
public void | setTaxID(java.lang.String taxID)Setter for property taxId.
LAST_NAME_CONSTRAINT.validate(taxID);
final String oldTaxID = this.taxID;
this.taxID = taxID;
propertyChangeSupport.firePropertyChange("taxID", oldTaxID, this.taxID);
|