public class Contact extends Object implements Comparable<Contact>
This class makes use of one subordinate (or nested) object in order to show how nested property paths can be used in forms. It doesn't really serve any other great design need.
The validation rules for this class are provided externally, by SimpleValidationRulesSource. This
configuration is often required when you don't have any mechanism to extend the domain object directly, or for other
design reasons, don't want to include the validation rules directly in the domain object implementation.
SimpleValidationRulesSource| Constructor and Description |
|---|
Contact()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Contact o) |
boolean |
equals(Object o)
Compare two objects for equality.
|
Address |
getAddress() |
ContactType |
getContactType() |
Date |
getDateOfBirth() |
String |
getEmailAddress() |
String |
getFirstName() |
String |
getHomePhone() |
int |
getId() |
String |
getLastName() |
String |
getMemo() |
String |
getMiddleName() |
BigDecimal |
getMonthlyIncome() |
List<TodoItem> |
getTodoItems() |
String |
getWorkPhone() |
int |
hashCode()
Hashcode.
|
void |
setAddress(Address address) |
void |
setContactType(ContactType contactType) |
void |
setDateOfBirth(Date dateOfBirth) |
void |
setEmailAddress(String emailAddress) |
void |
setFirstName(String firstName) |
void |
setHomePhone(String homePhone) |
void |
setId(int id) |
void |
setLastName(String lastName) |
void |
setMemo(String memo) |
void |
setMiddleName(String middleName) |
void |
setMonthlyIncome(BigDecimal monthlyIncome) |
void |
setTodoItems(List<TodoItem> todoItems) |
void |
setWorkPhone(String workPhone) |
public int getId()
public void setId(int id)
id - the id to setpublic Address getAddress()
public void setAddress(Address address)
address - the address to setpublic Date getDateOfBirth()
public void setDateOfBirth(Date dateOfBirth)
dateOfBirth - the dateOfBirth to setpublic String getEmailAddress()
public void setEmailAddress(String emailAddress)
emailAddress - the emailAddress to setpublic String getFirstName()
public void setFirstName(String firstName)
firstName - the firstName to setpublic String getHomePhone()
public void setHomePhone(String homePhone)
homePhone - the homePhone to setpublic String getLastName()
public void setLastName(String lastName)
lastName - the lastName to setpublic String getMiddleName()
public void setMiddleName(String middleName)
middleName - the middleName to setpublic String getWorkPhone()
public void setWorkPhone(String workPhone)
workPhone - the workPhone to setpublic ContactType getContactType()
public void setContactType(ContactType contactType)
contactType - the contactType to setpublic String getMemo()
public void setMemo(String memo)
public BigDecimal getMonthlyIncome()
public void setMonthlyIncome(BigDecimal monthlyIncome)
public boolean equals(Object o)
public int compareTo(Contact o)
compareTo in interface Comparable<Contact>Copyright © 2014. All Rights Reserved.