|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.kernel.PersonName
Represents the name of a person. PersonName objects are intended to be components of other objects.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
PersonName()
Default constructor. |
|
PersonName(DataObject nameData)
|
Method Summary | |
protected String |
getBaseDataObjectType()
Returns the base data object type for this domain object class. |
String |
getFamilyName()
Returns the family name. |
String |
getGivenName()
Returns the given name. |
protected void |
initialize()
Called from all of the DomainObject constructors
to initalize or validate the new domain object or its
encapsulated data object. |
void |
setFamilyName(String familyName)
Sets the family name. |
void |
setGivenName(String givenName)
Sets the given name. |
String |
toString()
Returns a displayable string for this person name. |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, beforeSave, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public PersonName(DataObject nameData)
public PersonName()
DataObject
is
initialized with a new DataObject
with an
ObjectType
of "PersonName".
DomainObject.DomainObject(String)
,
DataObject
,
ObjectType
Method Detail |
protected String getBaseDataObjectType()
DomainObject
getBaseDataObjectType
in class DomainObject
protected void initialize()
DomainObject
DomainObject
constructors
to initalize or validate the new domain object or its
encapsulated data object. This was introduced in order to
support efficient validation of the encapsualted data object's
type. If the validation is typically performed in class
constructors, then redundant validation is performed in
superclass constructors. This validation now occurs here.
initialize
in class DomainObject
public String getGivenName()
public void setGivenName(String givenName)
givenName
- the value to set for the given namepublic String getFamilyName()
public void setFamilyName(String familyName)
familyName
- the value to set for the family namepublic String toString()
toString
in class DomainObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |