public class ClosedChoice extends java.lang.Object implements TypeRule
TypeRule.ComparisonOperator, TypeRule.LogicalOperator
Constructor and Description |
---|
ClosedChoice(Vocable.Type vocablularyType)
Constructor gets the type information of the Vocabulary.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(SchemaVisitor schemaVisitor) |
void |
addVocable(java.lang.Object xmpValue,
java.lang.String label)
Add a vocable.
|
void |
addVocable(Vocable vocable)
Adds a vocable.
|
java.util.List<Vocable> |
getVocabulary() |
public ClosedChoice(Vocable.Type vocablularyType)
public void addVocable(java.lang.Object xmpValue, java.lang.String label) throws XMPSchemaException
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.XMPSchemaException
- Throws an exception if a vocable with the wrong type is addedpublic void addVocable(Vocable vocable) throws XMPSchemaException
vocable
- a VocableXMPSchemaException
- Throws an exception if a vocable with the wrong type is addedpublic java.util.List<Vocable> getVocabulary()
public void accept(SchemaVisitor schemaVisitor) throws XMPSchemaException
accept
in interface TypeRule
schemaVisitor
- a visitor that implements the SchemaVisitor
-interfaceXMPSchemaException
TypeRule.accept(com.adobe.xmp.schema.model.SchemaVisitor)
Copyright © 2010 - 2020 Adobe. All Rights Reserved