bbc.rd.mpeg7
Class MPEG7MediaIncrDuration

java.lang.Object
  extended by bbc.rd.mpeg7.MPEG7MediaIncrDuration

public class MPEG7MediaIncrDuration
extends java.lang.Object

MPEG7MediaIncrDuration: Represents an mpeg7:MediaIncrDuration object

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

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

MPEG7MediaIncrDuration

public MPEG7MediaIncrDuration()
Constructor for objects of type MPEG7MediaIncrDuration


MPEG7MediaIncrDuration

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

Method Detail

setTime

public void setTime(long duration)
Set the MPEG7MediaIncrDuration

Parameters:
duration - the MPEG7MediaIncrDuration

getTime

public long getTime()
Get the MPEG7MediaIncrDuration

Returns:
duration the MPEG7MediaIncrDuration

setTimeUnit

public void setTimeUnit(java.lang.String timeUnit)
setTimeUnit - sets the timeUnit

Parameters:
timeUnit - the time unit

getTimeUnit

public java.lang.String getTimeUnit()
getTimeUnit - gets the timeUnit

Returns:
the timeUnit

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.