net.sf.xtvdclient.xtvd.datatypes
Class CrewMember

java.lang.Object
  extended by net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
      extended by net.sf.xtvdclient.xtvd.datatypes.CrewMember
All Implemented Interfaces:
java.lang.Comparable

public class CrewMember
extends AbstractDataType

A class that represents a crewMember record. The crewMember datatype is defined in the tmsxg.xsd schema.

Since:
ddclient version 1.3

Field Summary
 
Fields inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
END_OF_LINE
 
Constructor Summary
CrewMember()
          Default constructor.
CrewMember(java.lang.String role, java.lang.String givenname, java.lang.String surname)
          Create a new instance of the class with the specified values for the class fields.
 
Method Summary
 java.lang.String getGivenname()
          Returns givenname.
 java.lang.String getRole()
          Returns role.
 java.lang.String getSurname()
          Returns surname.
 int hashCode()
          Returns a hash code value for this class.
 void reset()
          Reset the instance variable to empty values.
 void setGivenname(java.lang.String givenname)
          Set givenname.
 void setRole(java.lang.String role)
          Set role.
 void setSurname(java.lang.String surname)
          Set surname.
 java.lang.String toString()
          Over-ridden implementation.
 
Methods inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
compareTo, equals, replaceSpecialCharacters, replaceSpecialCharacters
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CrewMember

public CrewMember()
Default constructor. Not particularly useful, except if you wish to create an instance of the class, that will be re-used to associate with different member records.


CrewMember

public CrewMember(java.lang.String role,
                  java.lang.String givenname,
                  java.lang.String surname)
Create a new instance of the class with the specified values for the class fields.

Parameters:
role - The role value to set.
givenname - The givenname value to set.
surname - The surname value to set.
Method Detail

reset

public void reset()
Reset the instance variable to empty values.


toString

public java.lang.String toString()
Over-ridden implementation. Return an XML representation of the class fields in the same format as in the original XTVD document.

Note: - The method does not add any wrapping crewMember tag around the component tags.

Overrides:
toString in class java.lang.Object
Returns:
String The XML representation of the member record.

hashCode

public int hashCode()
Returns a hash code value for this class. Return the hash code for the string returned by the toString() method.

Overrides:
hashCode in class java.lang.Object
Returns:
int - A hash code value for the object.

getRole

public final java.lang.String getRole()
Returns role.

Returns:
String - The value/reference of/to role.

setRole

public final void setRole(java.lang.String role)
Set role.

Parameters:
role - The value to set.

getGivenname

public final java.lang.String getGivenname()
Returns givenname.

Returns:
String - The value/reference of/to givenname.

setGivenname

public final void setGivenname(java.lang.String givenname)
Set givenname.

Parameters:
givenname - The value to set.

getSurname

public final java.lang.String getSurname()
Returns surname.

Returns:
The value/reference of/to surname.

setSurname

public final void setSurname(java.lang.String surname)
Set surname.

Parameters:
surname - The value to set.