com.adactus.mpeg21.didl.entity
Class AnchorType

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

public class AnchorType
extends DIDLParentType
implements Anchor, javolution.lang.Reusable

See Also:
Serialized Form

Field Summary
static java.lang.String ELEMENT_NAME
           
 
Constructor Summary
AnchorType()
           
 
Method Summary
 boolean add(ConditionType o)
           
 boolean add(DescriptorType o)
           
 boolean add(FragmentType o)
           
 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.util.List<Fragment> getFragments()
          Get the Fragments associated with this instance.
 java.lang.String getIdentifier()
          Get the identifier of this element.
 DIDLParentType getParent()
           
 java.lang.Integer getPrecedence()
          Get the relative precedence of this anchor.
 boolean hasPrecedence()
          Check whether the precedence of this anchor has been set.
static AnchorType newInstance()
           
static void recycle(AnchorType type)
           
 boolean remove(ConditionType o)
           
 boolean remove(DescriptorType o)
           
 boolean remove(FragmentType o)
           
 void reset()
           
 void setIdentifier(java.lang.String id)
           
 void setParent(DIDLParentType parent)
           
 void setPrecedence(java.lang.Integer precedence)
           
 
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

AnchorType

public AnchorType()
Method Detail

add

public boolean add(ConditionType o)

add

public boolean add(DescriptorType o)

add

public boolean add(FragmentType o)

getConditions

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

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

getDescriptors

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

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

getFragments

public java.util.List<Fragment> getFragments()
Description copied from interface: Anchor
Get the Fragments associated with this instance.

Specified by:
getFragments in interface Anchor
Returns:
list of fragments

getIdentifier

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

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

getParent

public DIDLParentType getParent()

getPrecedence

public java.lang.Integer getPrecedence()
Description copied from interface: Anchor
Get the relative precedence of this anchor. The precedence must always be a non-negative number.

Specified by:
getPrecedence in interface Anchor
Returns:
the precendence or null if no precedence is set

hasPrecedence

public boolean hasPrecedence()
Description copied from interface: Anchor
Check whether the precedence of this anchor has been set.

Specified by:
hasPrecedence in interface Anchor
Returns:
true if the precenence has been set

newInstance

public static AnchorType newInstance()

recycle

public static void recycle(AnchorType type)

remove

public boolean remove(ConditionType o)

remove

public boolean remove(DescriptorType o)

remove

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

setPrecedence

public void setPrecedence(java.lang.Integer precedence)