com.adactus.mpeg21.didl.entity
Class ContainerType
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.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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT_NAME
public static final java.lang.String ELEMENT_NAME
- See Also:
- Constant Field Values
ContainerType
public ContainerType()
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)