Package com.adobe.xmp.schema.model.rules
Class LengthRule
- java.lang.Object
 - 
- com.adobe.xmp.schema.model.rules.LengthRule
 
 
- 
- All Implemented Interfaces:
 TypeRule,java.io.Serializable
public class LengthRule extends java.lang.Object implements TypeRule
This rule applies for the type "Text" (string length) and all arrays (number of array items).- See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.adobe.xmp.schema.model.TypeRule
TypeRule.ComparisonOperator, TypeRule.LogicalOperator 
 - 
 
- 
Constructor Summary
Constructors Constructor Description LengthRule(TypeRule.ComparisonOperator operator, int length)Constructs a new LengthRule. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SchemaVisitor schemaVisitor)intgetOperand()TypeRule.ComparisonOperatorgetOperator() 
 - 
 
- 
- 
Constructor Detail
- 
LengthRule
public LengthRule(TypeRule.ComparisonOperator operator, int length)
Constructs a new LengthRule.- Parameters:
 operator- the comparison operatorlength- the length to compare with
 
 - 
 
- 
Method Detail
- 
getOperator
public TypeRule.ComparisonOperator getOperator()
- Returns:
 - Returns the operator.
 
 
- 
getOperand
public int getOperand()
- Returns:
 - Returns the argument.
 
 
- 
accept
public void accept(SchemaVisitor schemaVisitor) throws XMPSchemaException
- Specified by:
 acceptin interfaceTypeRule- Parameters:
 schemaVisitor- a visitor that implements theSchemaVisitor-interface- Throws:
 XMPSchemaException- See Also:
 TypeRule.accept(com.adobe.xmp.schema.model.SchemaVisitor)
 
 - 
 
 -