com.ail.party
Class Person

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.party.Party
          extended by com.ail.party.Person
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Person
extends Party

Version:
$Revision: 1.5 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
Person()
           
 
Method Summary
 java.lang.String getActualTitle()
          "actual title" is either the value of the title property, or the value of otherTitle if title's value is 'OTHER'.
 DateOfBirth getDateOfBirth()
          Getter returning the value of the dateOfBirth property.
 java.lang.String getFirstName()
          Getter returning the value of the firstName property.
 java.lang.String getLegalName()
          Return the person's legal name.
 java.lang.String getOtherTitle()
          Getter returning the value of the otherTitle property.
 java.lang.String getSurname()
          Getter returning the value of the surname property.
 Title getTitle()
          Getter returning the value of the title property.
 java.lang.String getTitleAsString()
          Get the value of the title property as a string (as opposed to an instance of com.ail.party.Title).
 void setDateOfBirth(DateOfBirth dateOfBirth)
          Setter to update the value of the dateOfBirth property.
 void setFirstName(java.lang.String firstName)
          Setter to update the value of the firstName property.
 void setOtherTitle(java.lang.String otherTitle)
          Setter to update the value of the otherTitle property.
 void setSurname(java.lang.String surname)
          Setter to update the value of the surname property.
 void setTitle(Title title)
          Setter to update the value of the title property.
 void setTitleAsString(java.lang.String title)
          Set the title property as a String.
 
Methods inherited from class com.ail.party.Party
getAddress, setAddress, setLegalName
 
Methods inherited from class com.ail.core.Type
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Person

public Person()
Method Detail

getDateOfBirth

public DateOfBirth getDateOfBirth()
Getter returning the value of the dateOfBirth property. Person's date of birth

Returns:
Value of the dateOfBirth property

setDateOfBirth

public void setDateOfBirth(DateOfBirth dateOfBirth)
Setter to update the value of the dateOfBirth property. Person's date of birth

Parameters:
dateOfBirth - New value for the dateOfBirth property

getFirstName

public java.lang.String getFirstName()
Getter returning the value of the firstName property. The person's first name

Returns:
Value of the firstName property

setFirstName

public void setFirstName(java.lang.String firstName)
Setter to update the value of the firstName property. The person's first name

Parameters:
firstName - New value for the firstName property

getSurname

public java.lang.String getSurname()
Getter returning the value of the surname property. The person's surname

Returns:
Value of the surname property

setSurname

public void setSurname(java.lang.String surname)
Setter to update the value of the surname property. The person's surname

Parameters:
surname - New value for the surname property

getOtherTitle

public java.lang.String getOtherTitle()
Getter returning the value of the otherTitle property. Text of title if not defined by Title property (i.e. title property==Other)

Returns:
Value of the otherTitle property

setOtherTitle

public void setOtherTitle(java.lang.String otherTitle)
Setter to update the value of the otherTitle property. Text of title if not defined by Title property (i.e. title property==Other)

Parameters:
otherTitle - New value for the otherTitle property

getTitle

public Title getTitle()
Getter returning the value of the title property. The person's title

Returns:
Value of the title property

setTitle

public void setTitle(Title title)
Setter to update the value of the title property. The person's title

Parameters:
title - New value for the title property

setTitleAsString

public void setTitleAsString(java.lang.String title)
                      throws java.lang.IndexOutOfBoundsException
Set the title property as a String. The String must represents a valid com.ail.party.Title. i.e. it must be suitable for a call to com.ail.party.Title.forName().

Parameters:
title - New value for property.
Throws:
java.lang.IndexOutOfBoundsException - If title is not a valid com.ail.party.Title.

getTitleAsString

public java.lang.String getTitleAsString()
Get the value of the title property as a string (as opposed to an instance of com.ail.party.Title).

Returns:
String representation of the title, or null if the property has not been set.

getActualTitle

public java.lang.String getActualTitle()
"actual title" is either the value of the title property, or the value of otherTitle if title's value is 'OTHER'.

Returns:
actual title.

getLegalName

public java.lang.String getLegalName()
Return the person's legal name. This takes the form "<title> <firstName> <surname>"

Overrides:
getLegalName in class Party