com.adactus.mpeg21.didl.entity
Class DIDLType
java.lang.Object
com.adactus.mpeg21.didl.entity.DIDLBaseType
com.adactus.mpeg21.didl.entity.DIDLChildType
com.adactus.mpeg21.didl.entity.DIDLParentType
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DIDLType
public DIDLType()
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
Declarations
s 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)