bbc.rd.mpeg7
Class MPEG7MediaDuration

java.lang.Object
  extended by bbc.rd.mpeg7.MPEG7MediaDuration
All Implemented Interfaces:
java.lang.Cloneable

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

MPEG7MediaDuration: Represents an mpeg7:MediaDuration object

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

Constructor Summary
MPEG7MediaDuration()
          Constructor for objects of type MPEG7MediaDuration
MPEG7MediaDuration(long duration)
          Constructor for objects of type MPEG7MediaDuration
 
Method Summary
 java.lang.Object clone()
          Clones itself.
 long getTime()
          Get the MPEG7MediaDuration
 void setTime(long duration)
          Set the MPEG7MediaDuration
 java.lang.String toString()
           
 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

MPEG7MediaDuration

public MPEG7MediaDuration()
Constructor for objects of type MPEG7MediaDuration


MPEG7MediaDuration

public MPEG7MediaDuration(long duration)
Constructor for objects of type MPEG7MediaDuration

Method Detail

setTime

public void setTime(long duration)
Set the MPEG7MediaDuration

Parameters:
duration - the MPEG7MediaDuration

getTime

public long getTime()
Get the MPEG7MediaDuration

Returns:
duration the MPEG7MediaDuration

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 to put before the string.
Returns:
XML representation of this object.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

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

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

clone

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

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