com.adactus.mpeg21.didl.entity
Class ItemType

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

public class ItemType
extends DIDLParentType
implements Item, javolution.lang.Reusable

See Also:
Serialized Form

Field Summary
static java.lang.String ELEMENT_NAME
           
 
Constructor Summary
ItemType()
           
 
Method Summary
 boolean add(ChoiceType o)
           
 boolean add(ComponentType o)
           
 boolean add(ConditionType o)
           
 boolean add(DescriptorType o)
           
 boolean add(ItemType o)
           
 java.util.List<Choice> getChoices()
          Get the Choices associated with this instance.
 java.util.List<ChoiceType> getChoiceTypes()
           
 java.util.List<Component> getComponents()
          Get the Components associated with this instance.
 java.util.List<ComponentType> getComponentTypes()
           
 java.util.List<Condition> getConditions()
          Get the Conditions associated with this instance.
 java.util.List<ConditionType> getConditionTypes()
           
 java.util.List<Descriptor> getDescriptors()
          Get the Descriptors associated with this instance.
 java.util.List<DescriptorType> getDescriptorTypes()
           
 java.lang.String getIdentifier()
          Get the identifier of this element.
 java.util.List<Item> getItems()
          Get the Items associated with this instance.
 java.util.List<ItemType> getItemTypes()
           
 DIDLParentType getParent()
           
static ItemType newInstance()
           
static void recycle(ItemType type)
           
 boolean remove(ChoiceType o)
           
 boolean remove(ComponentType o)
           
 boolean remove(ConditionType 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

ItemType

public ItemType()
Method Detail

add

public boolean add(ChoiceType o)

add

public boolean add(ComponentType o)

add

public boolean add(ConditionType o)

add

public boolean add(DescriptorType o)

add

public boolean add(ItemType o)

getChoices

public java.util.List<Choice> getChoices()
Description copied from interface: Item
Get the Choices associated with this instance.

Specified by:
getChoices in interface Item
Returns:
list of choices

getChoiceTypes

public java.util.List<ChoiceType> getChoiceTypes()

getComponents

public java.util.List<Component> getComponents()
Description copied from interface: Item
Get the Components associated with this instance.

Specified by:
getComponents in interface Item
Returns:
list of components

getComponentTypes

public java.util.List<ComponentType> getComponentTypes()

getConditions

public java.util.List<Condition> getConditions()
Description copied from interface: Item
Get the Conditions associated with this instance.

Specified by:
getConditions in interface Item
Returns:
list of conditions

getConditionTypes

public java.util.List<ConditionType> getConditionTypes()

getDescriptors

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

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

getDescriptorTypes

public java.util.List<DescriptorType> getDescriptorTypes()

getIdentifier

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

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

getItems

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

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

getItemTypes

public java.util.List<ItemType> getItemTypes()

getParent

public DIDLParentType getParent()

newInstance

public static ItemType newInstance()

recycle

public static void recycle(ItemType type)

remove

public boolean remove(ChoiceType o)

remove

public boolean remove(ComponentType o)

remove

public boolean remove(ConditionType 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)