bbc.rd.tvanytime.segmentInformation
Class SegmentInformationTable

java.lang.Object
  extended by bbc.rd.tvanytime.segmentInformation.SegmentInformationTable
All Implemented Interfaces:
java.lang.Cloneable

public class SegmentInformationTable
extends java.lang.Object
implements java.lang.Cloneable

SegmentInformationTable: Represents a SegmentInformation table

Version:
1.0
Author:
Tim Sargeant, BBC Research & Development, April 2002

Constructor Summary
SegmentInformationTable()
          Constructor for objects of class SegmentInformationTable.
SegmentInformationTable(SegmentList segmentList, SegmentGroupList segmentGroupList)
          Constructor for objects of class SegmentInformationTable with required fields.
 
Method Summary
 java.lang.Object clone()
          Clones itself.
 SegmentGroupList getSegmentGroupList()
          getSegmentGroupList - gets the SegmentGroupList objects belonging to this SegmentInformationTable
 SegmentList getSegmentList()
          getSegmentList - gets the SegmentList objects belonging to this SegmentInformationTable
 java.lang.String getTimeUnit()
          getTimeUnit - gets the timeUnit
 void removeAll()
          Removes everything.
 void setSegmentGroupList(SegmentGroupList segmentGroupList)
          setSegmentGroupList - sets the SegmentGroupList objects belonging to this SegmentInformationTable
 void setSegmentList(SegmentList segmentList)
          setSegmentList - sets the SegmentList objects belonging to this SegmentInformationTable
 void setTimeUnit(java.lang.String timeUnit)
          setTimeUnit - sets the timeUnit
 java.lang.String toString()
          Returns string representation of this table.
 java.lang.String toString(int indent)
          Returns string representation of this table.
 java.lang.String toXML()
          Returns XML representation of this table.
 java.lang.String toXML(int indent)
          Returns XML representation of this table.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SegmentInformationTable

public SegmentInformationTable()
Constructor for objects of class SegmentInformationTable.


SegmentInformationTable

public SegmentInformationTable(SegmentList segmentList,
                               SegmentGroupList segmentGroupList)
Constructor for objects of class SegmentInformationTable with required fields.

Parameters:
segList - a SegmentList object
segGroupList - a SegmentGroupList object
Method Detail

getSegmentList

public SegmentList getSegmentList()
getSegmentList - gets the SegmentList objects belonging to this SegmentInformationTable

Returns:
the SegmentList object in this SegmentInformationTable

setSegmentList

public void setSegmentList(SegmentList segmentList)
setSegmentList - sets the SegmentList objects belonging to this SegmentInformationTable

Parameters:
the - SegmentList object in this SegmentInformationTable

getSegmentGroupList

public SegmentGroupList getSegmentGroupList()
getSegmentGroupList - gets the SegmentGroupList objects belonging to this SegmentInformationTable

Returns:
the SegmentGroupList object in this SegmentInformationTable

setSegmentGroupList

public void setSegmentGroupList(SegmentGroupList segmentGroupList)
setSegmentGroupList - sets the SegmentGroupList objects belonging to this SegmentInformationTable

Parameters:
the - SegmentGroupList object in this SegmentInformationTable

setTimeUnit

public void setTimeUnit(java.lang.String timeUnit)
setTimeUnit - sets the timeUnit

Parameters:
timeUnit - the time unit

getTimeUnit

public java.lang.String getTimeUnit()
getTimeUnit - gets the timeUnit

Returns:
the timeUnit

toXML

public java.lang.String toXML()
Returns XML representation of this table.

Returns:
XML representation of this table.

toXML

public java.lang.String toXML(int indent)
Returns XML representation of this table.

Parameters:
indent - Number of tabs with which to indent the string.
Returns:
XML representation of the table.

toString

public java.lang.String toString()
Returns string representation of this table.

Overrides:
toString in class java.lang.Object
Returns:
string representation of this table.

toString

public java.lang.String toString(int indent)
Returns string representation of this table.

Parameters:
indent - number of tabs to put before the string.
Returns:
string representation of this table.

removeAll

public void removeAll()
Removes everything.


clone

public java.lang.Object clone()
Clones itself.

Overrides:
clone in class java.lang.Object
Returns:
A copy of itself.