net.sf.xtvdclient.xtvd.datatypes
Class Genre

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

public class Genre
extends AbstractDataType

A bean that represents a member record. A member records occurs at the productionCrew/crew level.


Field Summary
 
Fields inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
END_OF_LINE
 
Constructor Summary
Genre()
          Default constructor.
Genre(java.lang.String classValue, int relevance)
          Create a new instance of the class with the specified values for the instance variables.
 
Method Summary
 java.lang.String getClassValue()
          Returns classValue.
 int getRelevance()
          Returns relevance.
 void reset()
          Reset the instance variable to empty values.
 void setClassValue(java.lang.String classValue)
          Set classValue.
 void setRelevance(int relevance)
          Set relevance.
 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, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Genre

public Genre()
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 genre records.


Genre

public Genre(java.lang.String classValue,
             int relevance)
Create a new instance of the class with the specified values for the instance variables.

Parameters:
classValue - The classValue value to set.
relevance - The relevance 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.

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

getClassValue

public final java.lang.String getClassValue()
Returns classValue.

Returns:
The value/reference of/to classValue.

setClassValue

public final void setClassValue(java.lang.String classValue)
Set classValue.

Parameters:
classValue - The value to set.

getRelevance

public final int getRelevance()
Returns relevance.

Returns:
The value/reference of/to relevance.

setRelevance

public final void setRelevance(int relevance)
Set relevance.

Parameters:
relevance - The value to set.