Class OpenChoice

java.lang.Object
com.adobe.xmp.schema.model.rules.ClosedChoice
com.adobe.xmp.schema.model.rules.OpenChoice
All Implemented Interfaces:
TypeRule, Serializable

public class OpenChoice extends ClosedChoice
The rule covers the XMP types "open choice". An arbitrary number of vocabulary can be added. Additionally, this rule allows for arbitrary values, while the vocabulary is rather a guidance for the UI.
See Also:
  • Constructor Details

    • OpenChoice

      public OpenChoice(Vocable.Type vocablularyType)
      Constructor gets the type information of the Vocabulary.
  • Method Details

    • getRule

      public TypeRule getRule()
      Returns:
      Returns the rule which constrains the values for the open values.
    • setRule

      public void setRule(TypeRule rule)
      Parameters:
      rule - Sets the rule for the open values. This rule has to be type-compatible with the vocabulary of the rule