net.sf.xtvdclient.xtvd.datatypes
Class Map

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

public class Map
extends AbstractDataType

A bean that represents a map record. A map element is a child of the lineups/lineup element.


Field Summary
 
Fields inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
END_OF_LINE
 
Constructor Summary
Map()
          Default constructor.
Map(int station, java.lang.String channel)
          Create a new instance of the class with the specified values for station and channel.
Map(int station, java.lang.String channel, int channelMinor)
          Create a new instance of the class with the specified values for station, channel and channelMinor.
Map(int station, java.lang.String channel, int channelMinor, XtvdDate from, XtvdDate to)
          Create a new instace of the class and initialise the instance variables with the specified values.
 
Method Summary
 java.lang.String getChannel()
          Returns channel.
 int getChannelMinor()
          Returns channelMinor.
 XtvdDate getFrom()
          Returns from.
 int getStation()
          Returns station.
 XtvdDate getTo()
          Returns to.
 void setChannel(java.lang.String channel)
          Set channel.
 void setChannelMinor(int channelMinor)
          Set channelMinor.
 void setFrom(XtvdDate from)
          Set from.
 void setStation(int station)
          Set station.
 void setTo(XtvdDate to)
          Set to.
 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

Map

public Map()
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 map records.


Map

public Map(int station,
           java.lang.String channel)
Create a new instance of the class with the specified values for station and channel.

Parameters:
int - station - The station value to set.
String - channel - The channel value to set.

Map

public Map(int station,
           java.lang.String channel,
           int channelMinor)
Create a new instance of the class with the specified values for station, channel and channelMinor.

Parameters:
int - station - The station value to set.
String - channel - The channel value to set.
int - channelMinor - The channelMinor value to set.

Map

public Map(int station,
           java.lang.String channel,
           int channelMinor,
           XtvdDate from,
           XtvdDate to)
Create a new instace of the class and initialise the instance variables with the specified values.

Parameters:
int - station - The station value to set.
String - channel - The channel value to set.
int - channelMinor - The channelMinor value to set.
Date - from - The from value to set.
Date - to - The to value to set.
Method Detail

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 map record.

getStation

public final int getStation()
Returns station.

Returns:
int - The value/reference of/to station.

setStation

public final void setStation(int station)
Set station.

Parameters:
int - station - The value to set.

getChannel

public final java.lang.String getChannel()
Returns channel.

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

setChannel

public final void setChannel(java.lang.String channel)
Set channel.

Parameters:
String - channel - The value to set.

getChannelMinor

public final int getChannelMinor()
Returns channelMinor.

Returns:
int - The value/reference of/to channelMinor.

setChannelMinor

public final void setChannelMinor(int channelMinor)
Set channelMinor.

Parameters:
int - channelMinor - The value to set.

getFrom

public final XtvdDate getFrom()
Returns from.

Returns:
XtvdDate - The value/reference of/to from.

setFrom

public final void setFrom(XtvdDate from)
Set from.

Parameters:
Date - from - The value to set.

getTo

public final XtvdDate getTo()
Returns to.

Returns:
XtvdDate - The value/reference of/to to.

setTo

public final void setTo(XtvdDate to)
Set to.

Parameters:
Date - to - The value to set.