net.sf.xtvdclient.xtvd.datatypes
Class Station

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

public class Station
extends AbstractDataType

A bean that represents a station record.


Field Summary
 
Fields inherited from class net.sf.xtvdclient.xtvd.datatypes.AbstractDataType
END_OF_LINE
 
Constructor Summary
Station()
          Default constructor.
Station(int id, java.lang.String callSign)
          Create a new instance of the class with the specified values for id and callSign.
Station(int id, java.lang.String callSign, java.lang.String name)
          Create a new instance of the class with the specified values for id, callSign and name.
Station(int id, java.lang.String callSign, java.lang.String name, int fccChannelNumber, java.lang.String affiliate)
          Create a new instance of the class with the specified values for id, callSign, name, fccChannelNumber and affiliate.
 
Method Summary
 java.lang.String getAffiliate()
          Returns affiliate.
 java.lang.String getCallSign()
          Returns callSign.
 int getFccChannelNumber()
          Returns fccChannelNumber.
 int getId()
          Returns id.
 java.lang.String getName()
          Returns name.
 void reset()
          Reset all the instance variables to empty values.
 void setAffiliate(java.lang.String affiliate)
          Set affiliate.
 void setCallSign(java.lang.String callSign)
          Set callSign.
 void setFccChannelNumber(int fccChannelNumber)
          Set fccChannelNumber.
 void setId(int id)
          Set id.
 void setName(java.lang.String name)
          Set name.
 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

Station

public Station()
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 station records.


Station

public Station(int id,
               java.lang.String callSign)
Create a new instance of the class with the specified values for id and callSign.

Parameters:
id - The id value to set.
callSign - The callSign value to set.

Station

public Station(int id,
               java.lang.String callSign,
               java.lang.String name)
Create a new instance of the class with the specified values for id, callSign and name.

Parameters:
id - The id value to set.
callSign - The callSign value to set.
name - The name value to set.

Station

public Station(int id,
               java.lang.String callSign,
               java.lang.String name,
               int fccChannelNumber,
               java.lang.String affiliate)
Create a new instance of the class with the specified values for id, callSign, name, fccChannelNumber and affiliate.

Parameters:
id - The id value to set.
callSign - The callSign value to set.
name - The name value to set.
fccChannelNumber - The fccChannelNumber value to set.
affiliate - The affiliate value to set.
Method Detail

reset

public void reset()
Reset all the instance variables 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 station record.

getId

public final int getId()
Returns id.

Returns:
The value/reference of/to id.
Since:
ddclient version 1.3.1

setId

public final void setId(int id)
Set id.

Parameters:
id - The value to set.
Since:
ddclient version 1.3.1

getCallSign

public final java.lang.String getCallSign()
Returns callSign.

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

setCallSign

public final void setCallSign(java.lang.String callSign)
Set callSign.

Parameters:
callSign - The value to set.

getName

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

Returns:
The value/reference of/to name.

setName

public final void setName(java.lang.String name)
Set name.

Parameters:
name - The value to set.

getFccChannelNumber

public final int getFccChannelNumber()
Returns fccChannelNumber.

Returns:
The value/reference of/to fccChannelNumber.

setFccChannelNumber

public final void setFccChannelNumber(int fccChannelNumber)
Set fccChannelNumber.

Parameters:
fccChannelNumber - - The value to set.

getAffiliate

public final java.lang.String getAffiliate()
Returns affiliate.

Returns:
The value/reference of/to affiliate.

setAffiliate

public final void setAffiliate(java.lang.String affiliate)
Set affiliate.

Parameters:
affiliate - The value to set.