bbc.rd.tvanytime.programInformation
Class AudioAttributes

java.lang.Object
  extended by bbc.rd.tvanytime.programInformation.AudioAttributes
All Implemented Interfaces:
java.lang.Cloneable

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

AudioAttributes: Represents technical audio attributes of a program.

Version:
1.0
Author:
Tristan Ferne, BBC Research & Development, November 2002

Constructor Summary
AudioAttributes()
          Create AudioAttributes object.
AudioAttributes(java.lang.Integer numOfChannels)
          Create AudioAttributes object.
 
Method Summary
 java.lang.Object clone()
          Clones itself.
 java.lang.Integer getNumOfChannels()
          Get number of audio channels.
 void setNumOfChannels(java.lang.Integer numOfChannels)
          Set number of audio channels
 java.lang.String toString()
          Returns string representation of the audio attributes.
 java.lang.String toString(int indent)
          Returns string representation of the audio attributes.
 java.lang.String toXML()
          Returns XML representation of the audio attributes.
 java.lang.String toXML(int indent)
          Returns XML representation of the audio attributes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AudioAttributes

public AudioAttributes(java.lang.Integer numOfChannels)
                throws TVAnytimeException
Create AudioAttributes object.

Parameters:
numOfChannels - Number of audio channels.
Throws:
TVAnytimeException - Thrown if invalid number of channels (must be >=0).

AudioAttributes

public AudioAttributes()
Create AudioAttributes object.

Method Detail

getNumOfChannels

public java.lang.Integer getNumOfChannels()
Get number of audio channels.

Returns:
Number of audio channels

setNumOfChannels

public void setNumOfChannels(java.lang.Integer numOfChannels)
                      throws TVAnytimeException
Set number of audio channels

Parameters:
numOfChannels - Number of audio channels.
Throws:
TVAnytimeException - Thrown if invalid number of channels (must be >=0).

toXML

public java.lang.String toXML()
Returns XML representation of the audio attributes.

Returns:
XML representation of the audio attributes.

toXML

public java.lang.String toXML(int indent)
Returns XML representation of the audio attributes.

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

toString

public java.lang.String toString()
Returns string representation of the audio attributes.

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

toString

public java.lang.String toString(int indent)
Returns string representation of the audio attributes.

Parameters:
indent - Number of tabs with which to indent the string.
Returns:
string representation of the audio attributes.

clone

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

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