bbc.rd.tvanytime.serviceInformation
Class ServiceInformationTable

java.lang.Object
  extended by bbc.rd.tvanytime.serviceInformation.ServiceInformationTable

public class ServiceInformationTable
extends java.lang.Object

ServiceInformationTable: Represents a table that contains ServiceInformation objects.

Version:
1.0
Author:
Tristan Ferne, BBC Research & Development, Febraury 2003

Constructor Summary
ServiceInformationTable()
          Constructor.
 
Method Summary
 void addServiceInformation(ServiceInformation serviceInformation)
          Add ServiceInformation object to the table.
 java.lang.Object clone()
          Clones itself.
 int getNumServiceInformations()
          Get number of objects in ServiceInformation table.
 ServiceInformation getServiceInformation(int index)
          Return specified ServiceInformation object from table.
 void removeAll()
          Remove all objects from the ServiceInformation table.
 void removeServiceInformation(int index)
          Removes a ServiceInformation object from this ServiceInformationTable
 void removeServiceInformation(ServiceInformation serviceInformation)
          Removes a ServiceInformation object from this ServiceInformationTable
 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

ServiceInformationTable

public ServiceInformationTable()
Constructor.

Method Detail

getServiceInformation

public ServiceInformation getServiceInformation(int index)
Return specified ServiceInformation object from table.

Parameters:
index - Index of ServiceInformation object in table.
Returns:
Specified ServiceInformation object, or null if none exist.

addServiceInformation

public void addServiceInformation(ServiceInformation serviceInformation)
Add ServiceInformation object to the table.

Parameters:
serviceInformation - ServiceInformation object to add.

removeServiceInformation

public void removeServiceInformation(int index)
Removes a ServiceInformation object from this ServiceInformationTable

Parameters:
index - The index to the ServiceInformation object

removeServiceInformation

public void removeServiceInformation(ServiceInformation serviceInformation)
Removes a ServiceInformation object from this ServiceInformationTable

Parameters:
serviceInformation - The ServiceInformation object to remove

getNumServiceInformations

public int getNumServiceInformations()
Get number of objects in ServiceInformation table.

Returns:
Number of objects in ServiceInformation table.

removeAll

public void removeAll()
Remove all objects from the ServiceInformation table.


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.

clone

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

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