com.adactus.mpeg21.didl.model
Interface Choice

All Known Implementing Classes:
ChoiceType

public interface Choice

The choice is a simple boolean-algebra-style mechanism for selecting and/or discriminating parts of a digital item.

A choice describes a set of related selections. The selections within a choice are either exclusive (choose exactly one) or inclusive (choose any number, including all or none).


Method Summary
 java.lang.String getChoiceIdentifier()
          Get the identifier of this element.
 java.util.List<Condition> getConditions()
          Get the Conditions associated with this instance.
 java.lang.String[] getDefaultSelections()
          Get default selections, which are used in the absence of info to make a more specific decision.
 java.util.List<Descriptor> getDescriptors()
          Get the Descriptors associated with this instance.
 java.lang.Integer getMaxSelections()
          Get the maximum number of selections of this choice.
 java.lang.Integer getMinSelections()
          Get the minimum number of selections of this choice.
 java.util.List<Selection> getSelections()
          Get the Selections associated with this Choice..
 

Method Detail

getChoiceIdentifier

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

Returns:
an string value

getConditions

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

Returns:
list of conditions

getDefaultSelections

java.lang.String[] getDefaultSelections()
Get default selections, which are used in the absence of info to make a more specific decision.

Returns:
an array of the selections which default to true

getDescriptors

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

Returns:
list of descriptors

getMaxSelections

java.lang.Integer getMaxSelections()
Get the maximum number of selections of this choice. This number must be greater or equal to the minimum selections. If not present, there is no maximum.

Returns:
the max selections, or null if not set

getMinSelections

java.lang.Integer getMinSelections()
Get the minimum number of selections of this choice. This number must be less or equal to the maximum selections. If not present, there is no minimum.

Returns:
the min selections, or null if not set

getSelections

java.util.List<Selection> getSelections()
Get the Selections associated with this Choice..

Returns:
list of selections