com.adactus.mpeg21.didl.entity
Class ContainerType

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.ContainerType
All Implemented Interfaces:
Container, java.io.Serializable, javolution.lang.Reusable

public class ContainerType
extends DIDLParentType
implements Container, javolution.lang.Reusable

Container element may contain any number of Container elements followed by any number of Items.

See Also:
Serialized Form

Field Summary
static java.lang.String ELEMENT_NAME
           
 
Constructor Summary
ContainerType()
           
 
Method Summary
 boolean add(ContainerType o)
           
 boolean add(DescriptorType o)
           
 boolean add(ItemType o)
           
 java.util.List<Container> getContainers()
           
 java.util.List<Descriptor> getDescriptors()
          Get the Descriptors associated with this instance.
 java.lang.String getIdentifier()
          Get the identifier of this element.
 java.util.List<Item> getItems()
          Get the Items associated with this instance.
 DIDLParentType getParent()
           
static ContainerType newInstance()
           
static void recycle(ContainerType type)
           
 boolean remove(ContainerType o)
           
 boolean remove(DescriptorType o)
           
 boolean remove(ItemType o)
           
 void reset()
           
 void setIdentifier(java.lang.String id)
           
 void setParent(DIDLParentType parent)
           
 
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

ELEMENT_NAME

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

ContainerType

public ContainerType()
Method Detail

add

public boolean add(ContainerType o)

add

public boolean add(DescriptorType o)

add

public boolean add(ItemType o)

getContainers

public java.util.List<Container> getContainers()
Specified by:
getContainers in interface Container

getDescriptors

public java.util.List<Descriptor> getDescriptors()
Description copied from interface: Container
Get the Descriptors associated with this instance.

Specified by:
getDescriptors in interface Container
Returns:
list of descriptors

getIdentifier

public java.lang.String getIdentifier()
Description copied from interface: Container
Get the identifier of this element. The identifier must be unique within a digital item.

Specified by:
getIdentifier in interface Container
Returns:
an string value

getItems

public java.util.List<Item> getItems()
Description copied from interface: Container
Get the Items associated with this instance.

Specified by:
getItems in interface Container
Returns:
list of items

getParent

public DIDLParentType getParent()

newInstance

public static ContainerType newInstance()

recycle

public static void recycle(ContainerType type)

remove

public boolean remove(ContainerType o)

remove

public boolean remove(DescriptorType o)

remove

public boolean remove(ItemType o)

reset

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

setIdentifier

public void setIdentifier(java.lang.String id)

setParent

public void setParent(DIDLParentType parent)