com.adactus.mpeg21.didl.entity
Class ComponentType

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

public class ComponentType
extends DIDLParentType
implements Component, javolution.lang.Reusable

Component element contains one or more Resource elements, followed by any number of Anchor elements. A Component may be conditional.

See Also:
Serialized Form

Field Summary
static java.lang.String ELEMENT_NAME
           
 
Constructor Summary
ComponentType()
           
 
Method Summary
 boolean add(AnchorType o)
           
 boolean add(ConditionType o)
           
 boolean add(DescriptorType o)
           
 boolean add(ResourceType o)
           
 java.util.List<Anchor> getAnchors()
          Get the Anchors associated with this instance.
 java.util.List<Condition> getConditions()
          Get the Conditions associated with this instance.
 java.util.List<Descriptor> getDescriptors()
          Get the Descriptors associated with this instance.
 java.lang.String getIdentifier()
          Get the identifier of this element.
 DIDLParentType getParent()
           
 java.util.List<Resource> getResources()
          Get the Resources associated with this instance.
static ComponentType newInstance()
           
static void recycle(ComponentType type)
           
 boolean remove(AnchorType o)
           
 boolean remove(ConditionType o)
           
 boolean remove(DescriptorType o)
           
 boolean remove(ResourceType 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

ComponentType

public ComponentType()
Method Detail

add

public boolean add(AnchorType o)

add

public boolean add(ConditionType o)

add

public boolean add(DescriptorType o)

add

public boolean add(ResourceType o)

getAnchors

public java.util.List<Anchor> getAnchors()
Description copied from interface: Component
Get the Anchors associated with this instance.

Specified by:
getAnchors in interface Component
Returns:
list of anchors

getConditions

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

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

getDescriptors

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

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

getIdentifier

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

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

getParent

public DIDLParentType getParent()

getResources

public java.util.List<Resource> getResources()
Description copied from interface: Component
Get the Resources associated with this instance.

Specified by:
getResources in interface Component
Returns:
list of resources

newInstance

public static ComponentType newInstance()

recycle

public static void recycle(ComponentType type)

remove

public boolean remove(AnchorType o)

remove

public boolean remove(ConditionType o)

remove

public boolean remove(DescriptorType o)

remove

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