com.adactus.mpeg21.didl.model
Interface Anchor

All Known Implementing Classes:
AnchorType

public interface Anchor

An anchor binds descriptors to a fragment, which corresponds to a specific location or range within a resource.

An anchor might have a relative precedence over other anchors.


Method Summary
 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.
 java.lang.Integer getPrecedence()
          Get the relative precedence of this anchor.
 boolean hasPrecedence()
          Check whether the precedence of this anchor has been set.
 

Method Detail

getConditions

java.util.List<Condition> getConditions()
Get the Conditions associated with this instance.

Returns:
list of conditions

getDescriptors

java.util.List<Descriptor> getDescriptors()
Get the Descriptors associated with this instance.

Returns:
list of descriptors

getFragments

java.util.List<Fragment> getFragments()
Get the Fragments associated with this instance.

Returns:
list of fragments

getIdentifier

java.lang.String getIdentifier()
Get the identifier of this element. The identifier must be unique within a digital item.

Returns:
an string value

getPrecedence

java.lang.Integer getPrecedence()
Get the relative precedence of this anchor. The precedence must always be a non-negative number.

Returns:
the precendence or null if no precedence is set

hasPrecedence

boolean hasPrecedence()
Check whether the precedence of this anchor has been set.

Returns:
true if the precenence has been set