bbc.rd.tvanytime.creditsInformation
Class PersonName

java.lang.Object
  extended by bbc.rd.tvanytime.creditsInformation.PersonName
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Character

public class PersonName
extends java.lang.Object
implements java.lang.Cloneable

Represents a TV-Anytime PersonName object.

Version:
1.1
Author:
Tristan Ferne, BBC Research & Development, April 2003

Constructor Summary
PersonName()
          Constructor.
PersonName(Name givenName)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Clones itself.
 Name getFamilyName()
          Get family name of person.
 Name getGivenName()
          Get given name of person.
 java.lang.String getName()
          Returns whole name.
 void setFamilyName(Name familyName)
          Set family name of person.
 void setGivenName(Name givenName)
          Set given name of person.
 java.lang.String toString()
          toString - returns a String representation of this object with the specified number of tab indentations
 java.lang.String toString(int indent)
          toString - returns a String representation of this object with the specified number of tab indentations
 java.lang.String toXML()
          Returns a XML representation of this object with the specified number of tab indentations
 java.lang.String toXML(int indent)
          Returns a XML representation of this object with the specified number of tab indentations
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersonName

public PersonName()
Constructor.


PersonName

public PersonName(Name givenName)
Constructor.

Parameters:
givenName - Given name of person.
Method Detail

getName

public java.lang.String getName()
Returns whole name.


setGivenName

public void setGivenName(Name givenName)
Set given name of person.

Parameters:
givenName - Given name of person.

getGivenName

public Name getGivenName()
Get given name of person.

Returns:
Given name of person.

setFamilyName

public void setFamilyName(Name familyName)
Set family name of person.

Parameters:
familyName - Family name of person.

getFamilyName

public Name getFamilyName()
Get family name of person.

Returns:
Family name of person.

toXML

public java.lang.String toXML(int indent)
Returns a XML representation of this object with the specified number of tab indentations

Returns:
the XML representation of the object

toXML

public java.lang.String toXML()
Returns a XML representation of this object with the specified number of tab indentations

Returns:
the XML representation of the object

toString

public java.lang.String toString(int indent)
toString - returns a String representation of this object with the specified number of tab indentations

Returns:
the String representation of the object

toString

public java.lang.String toString()
toString - returns a String representation of this object with the specified number of tab indentations

Overrides:
toString in class java.lang.Object
Returns:
the String representation of the object

clone

public java.lang.Object clone()
Clones itself.

Overrides:
clone in class java.lang.Object
Returns:
A copy of itself.