public final class PersonBean extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
PersonBean.TravelDoc
Example travel document bean.
|
| Constructor and Description |
|---|
PersonBean(String personId,
String firstName,
String lastName,
Date dateOfBirth)
Creates a selectable PersonBean.
|
PersonBean(String personId,
String firstName,
String lastName,
Date dateOfBirth,
boolean selectable)
Creates a PersonBean.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Date |
getDateOfBirth() |
List<PersonBean.TravelDoc> |
getDocuments() |
String |
getFirstName() |
String |
getLastName() |
List<PersonBean> |
getMore() |
String |
getPersonId() |
int |
hashCode() |
boolean |
isSelectable() |
void |
setDateOfBirth(Date dateOfBirth) |
void |
setDocuments(List<PersonBean.TravelDoc> documents) |
void |
setFirstName(String firstName) |
void |
setLastName(String lastName) |
void |
setMore(List<PersonBean> more) |
void |
setSelectable(boolean selectable) |
String |
toString() |
public PersonBean(String personId, String firstName, String lastName, Date dateOfBirth)
personId - the person's unique idfirstName - the person's first name.lastName - the person's last name.dateOfBirth - the person's date of birth.public PersonBean(String personId, String firstName, String lastName, Date dateOfBirth, boolean selectable)
personId - the person's unique idfirstName - the person's first name.lastName - the person's last name.dateOfBirth - the person's date of birth.selectable - the person is selectable.public String getPersonId()
public String getFirstName()
public void setFirstName(String firstName)
firstName - The first name to set.public String getLastName()
public void setLastName(String lastName)
lastName - The last name to set.public Date getDateOfBirth()
public void setDateOfBirth(Date dateOfBirth)
dateOfBirth - The date of birth to set.public boolean isSelectable()
public void setSelectable(boolean selectable)
selectable - Indicates if this person may be selected.public List<PersonBean> getMore()
public void setMore(List<PersonBean> more)
more - the more details to set.public List<PersonBean.TravelDoc> getDocuments()
public void setDocuments(List<PersonBean.TravelDoc> documents)
documents - the documents to set.Copyright © 2024. All rights reserved.