com.arsdigita.kernel
Class PersonName

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.kernel.PersonName

public class PersonName
extends DomainObject

Represents the name of a person. PersonName objects are intended to be components of other objects.

Version:
$Id: //core-platform/dev/src/com/arsdigita/kernel/PersonName.java#12 $
Author:
Oumi Mehrotra, Phong Nguyen

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

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

PersonName

public PersonName(DataObject nameData)

PersonName

public PersonName()
Default constructor. The contained DataObject is initialized with a new DataObject with an ObjectType of "PersonName".

See Also:
DomainObject.DomainObject(String), DataObject, ObjectType
Method Detail

getBaseDataObjectType

protected String getBaseDataObjectType()
Description copied from class: DomainObject
Returns the base data object type for this domain object class. Intended to be overrided by subclasses whenever the subclass will only work if their primary data object is of a certain base type.

Overrides:
getBaseDataObjectType in class DomainObject
Returns:
The fully qualified name ("modelName.typeName") of the base data object type for this domain object class, or null if there is no restriction on the data object type for the primary data object encapsulated by this class.

initialize

protected void initialize()
Description copied from class: DomainObject
Called from all of the 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.

Overrides:
initialize in class DomainObject

getGivenName

public String getGivenName()
Returns the given name.

Returns:
the given name.

setGivenName

public void setGivenName(String givenName)
Sets the given name.

Parameters:
givenName - the value to set for the given name

getFamilyName

public String getFamilyName()
Returns the family name.

Returns:
the family name.

setFamilyName

public void setFamilyName(String familyName)
Sets the family name.

Parameters:
familyName - the value to set for the family name

toString

public String toString()
Returns a displayable string for this person name.

Overrides:
toString in class DomainObject
Returns:
the displayable string for this person name


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC