Class OpenChoice

  • All Implemented Interfaces:

    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:
    Serialized Form
    • Constructor Detail

      • OpenChoice

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

      • getRule

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

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