bbc.rd.tvanytime.creditsInformation
Class CreditsList

java.lang.Object
  extended by bbc.rd.tvanytime.creditsInformation.CreditsList
All Implemented Interfaces:
java.lang.Cloneable

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

Represents a TV-Anytime CreditsList object.

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

Constructor Summary
CreditsList()
          Constructor.
 
Method Summary
 void addCreditsItem(CreditsItem creditsItem)
          Adds a CreditsItem object to add to the listt
 java.lang.Object clone()
          Clones itself.
 CreditsItem getCreditsItem(int index)
          Gets the CreditsItem object at the specified index
 int getNumCreditsItems()
          Return number of CreditsItems in list.
 void removeAll()
          removeAll - removes all CreditsItems.
 void removeCreditsItem(int index)
          Removes a CreditsItem object from the list
 java.lang.String toString()
          toString - returns a String representation of this object with the specified number of tab indentations
 java.lang.String toString(int indent)
          toString - returns a String representation of this object with the specified number of tab indentations
 java.lang.String toXML()
          Returns a XML representation of this object with the specified number of tab indentations
 java.lang.String toXML(int indent)
          Returns a XML representation of this object with the specified number of tab indentations
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreditsList

public CreditsList()
Constructor.

Method Detail

getNumCreditsItems

public int getNumCreditsItems()
Return number of CreditsItems in list.

Returns:
Number of CreditsItems in list.

getCreditsItem

public CreditsItem getCreditsItem(int index)
Gets the CreditsItem object at the specified index

Parameters:
index - the index of the required CreditsItem object
Returns:
the CreditsItem object at the specified index

addCreditsItem

public void addCreditsItem(CreditsItem creditsItem)
Adds a CreditsItem object to add to the listt

Parameters:
creditsItem - the CreditsItem object

removeCreditsItem

public void removeCreditsItem(int index)
Removes a CreditsItem object from the list

Parameters:
index - The index of the object to remove.

removeAll

public void removeAll()
removeAll - removes all CreditsItems.


toXML

public java.lang.String toXML(int indent)
Returns a XML representation of this object with the specified number of tab indentations

Returns:
the XML representation of the object

toXML

public java.lang.String toXML()
Returns a XML representation of this object with the specified number of tab indentations

Returns:
the XML representation of the object

toString

public java.lang.String toString(int indent)
toString - returns a String representation of this object with the specified number of tab indentations

Returns:
the String representation of the object

toString

public java.lang.String toString()
toString - returns a String representation of this object with the specified number of tab indentations

Overrides:
toString in class java.lang.Object
Returns:
the String representation of the object

clone

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

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