com.adactus.mpeg21.didl.entity
Class DIDLType

java.lang.Object
  extended by com.adactus.mpeg21.didl.entity.DIDLBaseType
      extended by com.adactus.mpeg21.didl.entity.DIDLChildType
          extended by com.adactus.mpeg21.didl.entity.DIDLParentType
              extended by com.adactus.mpeg21.didl.entity.DIDLType
All Implemented Interfaces:
DIDL, java.io.Serializable, javolution.lang.Reusable

public class DIDLType
extends DIDLParentType
implements DIDL, java.io.Serializable, javolution.lang.Reusable

The DIDL element is the root element of a DIDL instance document. The DIDL root element may contain an optional DeclarationsType element, followed by exactly one ContainerType or an ItemType.

See Also:
Serialized Form

Field Summary
static java.lang.String DIDLNS
           
static java.lang.String ELEMENT_NAME
           
 
Constructor Summary
DIDLType()
           
 
Method Summary
 boolean add(ContainerType o)
           
 boolean add(DeclarationsType o)
           
 boolean add(DIDLChildType e)
           
 boolean add(DIDLInfoType o)
           
 boolean add(ItemType o)
           
 ContainerType getContainer()
          Get the Container document root instance.
 java.util.List<Declarations> getDeclarations()
          Get the Declarationss associated with this instance.
 java.util.List<DeclarationsType> getDeclarationsTypes()
           
 java.lang.String getDidlDocumentId()
           
 DIDLInfo getDIDLInfo()
          Get the DIDLInfo associated with this instance.
 DIDLInfoType getDIDLInfoType()
           
 Item getItem()
          Get the Item document root instance.
 ItemType getItemType()
           
 DIDLParentType getParent()
           
static DIDLType newInstance()
           
static void recycle(DIDLType type)
           
 void reset()
           
 void setDidlDocumentId(java.lang.String didlDocumentId)
           
 
Methods inherited from class com.adactus.mpeg21.didl.entity.DIDLParentType
getChildren, setChildren
 
Methods inherited from class com.adactus.mpeg21.didl.entity.DIDLChildType
getId, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIDLNS

public static final java.lang.String DIDLNS
See Also:
Constant Field Values

ELEMENT_NAME

public static final java.lang.String ELEMENT_NAME
See Also:
Constant Field Values
Constructor Detail

DIDLType

public DIDLType()
Method Detail

add

public boolean add(ContainerType o)

add

public boolean add(DeclarationsType o)

add

public boolean add(DIDLChildType e)

add

public boolean add(DIDLInfoType o)

add

public boolean add(ItemType o)

getContainer

public ContainerType getContainer()
Description copied from interface: DIDL
Get the Container document root instance.

Specified by:
getContainer in interface DIDL
Returns:
the document root container, null if not set

getDeclarations

public java.util.List<Declarations> getDeclarations()
Description copied from interface: DIDL
Get the Declarationss associated with this instance.

Specified by:
getDeclarations in interface DIDL
Returns:
list of declarations

getDeclarationsTypes

public java.util.List<DeclarationsType> getDeclarationsTypes()

getDidlDocumentId

public java.lang.String getDidlDocumentId()

getDIDLInfo

public DIDLInfo getDIDLInfo()
Description copied from interface: DIDL
Get the DIDLInfo associated with this instance.

Specified by:
getDIDLInfo in interface DIDL
Returns:
the document info, null if not set

getDIDLInfoType

public DIDLInfoType getDIDLInfoType()

getItem

public Item getItem()
Description copied from interface: DIDL
Get the Item document root instance.

Specified by:
getItem in interface DIDL
Returns:
the document root item, null if not set

getItemType

public ItemType getItemType()

getParent

public DIDLParentType getParent()

newInstance

public static DIDLType newInstance()

recycle

public static void recycle(DIDLType type)

reset

public void reset()
Specified by:
reset in interface javolution.lang.Reusable

setDidlDocumentId

public void setDidlDocumentId(java.lang.String didlDocumentId)