bbc.rd.tvanytime.programLocation
Class ProgramURL

java.lang.Object
  extended by bbc.rd.tvanytime.programLocation.ProgramURL
All Implemented Interfaces:
java.lang.Cloneable

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

ProgramURL: A TVAnytime ProgramURL object. This represents the URL of a programme. It may be a URL (i.e. for a streamed programme), a DVB locator or something else. Appropriate toolboxes, for each transport mechanism, that extract information from the URLs are provided in bbc.rd.tvanytime.util

Version:
1.0
Author:
Tim Sargeant, BBC Research & Development, May 2003

Constructor Summary
ProgramURL()
          Default Constructor for objects of type ProgramURL.
ProgramURL(java.lang.String programURL)
          Constructor for objects of type ProgramURL.
 
Method Summary
 java.lang.Object clone()
          Clones itself.
 java.lang.String getProgramURL()
          gets the programURL as a String
 void setProgramURL(java.lang.String programURL)
          sets the programURL Could throw an exception (but never does here).
 java.lang.String toString()
          Returns string representation of this object.
 java.lang.String toString(int indent)
          Returns string representation of this object.
 java.lang.String toXML()
          Returns XML representation of this object.
 java.lang.String toXML(int indent)
          Returns XML representation of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProgramURL

public ProgramURL()
Default Constructor for objects of type ProgramURL.


ProgramURL

public ProgramURL(java.lang.String programURL)
Constructor for objects of type ProgramURL.

Method Detail

setProgramURL

public void setProgramURL(java.lang.String programURL)
sets the programURL Could throw an exception (but never does here). This means that extensions of this class can do validity checking on the programURL string and throw an exception if appropriate.


getProgramURL

public java.lang.String getProgramURL()
gets the programURL as a String


toXML

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

Returns:
XML representation of this object.

toXML

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

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

toString

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

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

toString

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

Parameters:
indent - Number of tabs with which to indent the string.
Returns:
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.