net.sf.xtvdclient.xtvd.datatypes
Class LineupTypes

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

public class LineupTypes
extends java.lang.Object
implements java.lang.Comparable

A ordinal-based typesafe enum class that represents the pre-defined values for tms:lineupTypes as defined in the XTVD schema.


Field Summary
static LineupTypes CABLE
          The typesafe representation of the Cable lineupType.
static LineupTypes CABLE_DIGITAL
          The typesafe representation of the CableDigital lineupType.
static LineupTypes LOCAL_BROADCAST
          The typesafe representation of the LocalBroadcast lineupType.
static LineupTypes SATELLITE
          The typesafe representation of the Satellite lineupType.
 
Method Summary
 int compareTo(java.lang.Object object)
          Implementation of the Comparable interface.
 boolean equals(java.lang.Object object)
          Indicates whether some other object is "equal to" this one.
static LineupTypes getLineupType(java.lang.String type)
          Return the appropriate LineupType based upon the string specified.
 int hashCode()
          Returns a hash code value for this class.
 java.lang.String toString()
          Over-ridden to return the value of type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CABLE

public static final LineupTypes CABLE
The typesafe representation of the Cable lineupType.


CABLE_DIGITAL

public static final LineupTypes CABLE_DIGITAL
The typesafe representation of the CableDigital lineupType.


SATELLITE

public static final LineupTypes SATELLITE
The typesafe representation of the Satellite lineupType.


LOCAL_BROADCAST

public static final LineupTypes LOCAL_BROADCAST
The typesafe representation of the LocalBroadcast lineupType.

Method Detail

getLineupType

public static final LineupTypes getLineupType(java.lang.String type)
Return the appropriate LineupType based upon the string specified. If the appropriate lineup type does not exist return null.

Parameters:
String - type - The type value that is to be used to fetch the corresponding LineupType.
Returns:
LineupTypes - The appropriate instance if a corresponding instance is found, null otherwise.

toString

public java.lang.String toString()
Over-ridden to return the value of type.

Overrides:
toString in class java.lang.Object
Returns:
String - The string representation of this class instance.

compareTo

public int compareTo(java.lang.Object object)
Implementation of the Comparable interface. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
Object - object - The object with which this class is to be compared. No class type checking is done.
Returns:
int - A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

equals

public boolean equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. Returns true if the specified object is of the same class type, and has the same ordinal value.

Overrides:
equals in class java.lang.Object
Parameters:
Object - object - The reference object with which to compare.
Returns:
boolean - Return true if the match succeeds.

hashCode

public int hashCode()
Returns a hash code value for this class. Return the value of ordinal.

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