net.sf.xtvdclient.xtvd.datatypes
Class ProgramGenre

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

public class ProgramGenre
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
ProgramGenre()
          Default constructor.
ProgramGenre(java.lang.String program)
          Create a new instance of the class with the specified value for program.
ProgramGenre(java.lang.String program, java.util.Collection<Genre> genres)
          Create a new instance of the class with the specified values for the instance variables.
 
Method Summary
 java.util.Collection<Genre> getGenres()
          Returns genres.
 java.lang.String getProgram()
          Returns program.
 void reset()
          Reset the instance variable to empty values.
 void setGenres(java.util.Collection<Genre> genres)
          Set genres.
 void setProgram(java.lang.String program)
          Set program.
 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

ProgramGenre

public ProgramGenre()
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.


ProgramGenre

public ProgramGenre(java.lang.String program)
Create a new instance of the class with the specified value for program.

Parameters:
program - The program value to set.

ProgramGenre

public ProgramGenre(java.lang.String program,
                    java.util.Collection<Genre> genres)
Create a new instance of the class with the specified values for the instance variables.

Parameters:
program - The program value to set.
genres - The genres reference 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:
The XML representation of the programGenre record.

getProgram

public final java.lang.String getProgram()
Returns program.

Returns:
The value/reference of/to program.

setProgram

public final void setProgram(java.lang.String program)
Set program.

Parameters:
program - The value to set.

getGenres

public final java.util.Collection<Genre> getGenres()
Returns genres.

Returns:
The value/reference of/to genre.

setGenres

public final void setGenres(java.util.Collection<Genre> genres)
Set genres.

Parameters:
genres - The value to set.