Package com.adobe.xmp.schema.model.rules
Class ClosedChoice
java.lang.Object
com.adobe.xmp.schema.model.rules.ClosedChoice
- All Implemented Interfaces:
TypeRule,Serializable
- Direct Known Subclasses:
OpenChoice
The rule covers the XMP types "closed choice".
An arbitrary number of vocabulary can be added.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.adobe.xmp.schema.model.TypeRule
TypeRule.ComparisonOperator, TypeRule.LogicalOperator -
Constructor Summary
ConstructorsConstructorDescriptionClosedChoice(Vocable.Type vocablularyType) Constructor gets the type information of the Vocabulary. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(SchemaVisitor schemaVisitor) voidaddVocable(Vocable vocable) Adds a vocable.voidaddVocable(Object xmpValue, String label) Add a vocable.
-
Constructor Details
-
ClosedChoice
Constructor gets the type information of the Vocabulary.
-
-
Method Details
-
addVocable
Add a vocable.- Parameters:
xmpValue- the XMP value, usually a String, but in some cases it can also be of another type.label- the display label for the vocable.- Throws:
XMPSchemaException- Throws an exception if a vocable with the wrong type is added
-
addVocable
Adds a vocable.- Parameters:
vocable- a Vocable- Throws:
XMPSchemaException- Throws an exception if a vocable with the wrong type is added
-
getVocabulary
- Returns:
- Returns all vocabulary.
-
accept
- Specified by:
acceptin interfaceTypeRule- Parameters:
schemaVisitor- a visitor that implements theSchemaVisitor-interface- Throws:
XMPSchemaException- See Also:
-