Package com.adobe.xmp.schema.model.rules
Class LengthRule
java.lang.Object
com.adobe.xmp.schema.model.rules.LengthRule
- All Implemented Interfaces:
TypeRule,Serializable
This rule applies for the type "Text" (string length) and
all arrays (number of array items).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.adobe.xmp.schema.model.TypeRule
TypeRule.ComparisonOperator, TypeRule.LogicalOperator -
Constructor Summary
ConstructorsConstructorDescriptionLengthRule(TypeRule.ComparisonOperator operator, int length) Constructs a new LengthRule. -
Method Summary
-
Constructor Details
-
LengthRule
Constructs a new LengthRule.- Parameters:
operator- the comparison operatorlength- the length to compare with
-
-
Method Details
-
getOperator
- Returns:
- Returns the operator.
-
getOperand
public int getOperand()- Returns:
- Returns the argument.
-
accept
- Specified by:
acceptin interfaceTypeRule- Parameters:
schemaVisitor- a visitor that implements theSchemaVisitor-interface- Throws:
XMPSchemaException- See Also:
-