Package com.adobe.xmp.schema.model.rules
Class IntegerRule
- java.lang.Object
-
- com.adobe.xmp.schema.model.rules.IntegerRule
-
- All Implemented Interfaces:
TypeRule
,java.io.Serializable
public class IntegerRule extends java.lang.Object implements TypeRule
This rule models a comparison of an Integer property with a constant argument.- 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 IntegerRule(TypeRule.ComparisonOperator operator, long value)
Constructs a new IntegerRule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SchemaVisitor schemaVisitor)
long
getOperand()
TypeRule.ComparisonOperator
getOperator()
-
-
-
Constructor Detail
-
IntegerRule
public IntegerRule(TypeRule.ComparisonOperator operator, long value)
Constructs a new IntegerRule.- Parameters:
operator
- the comparison operatorvalue
- the integer to compare with
-
-
Method Detail
-
getOperator
public TypeRule.ComparisonOperator getOperator()
- Returns:
- Returns the operator.
-
getOperand
public long getOperand()
- Returns:
- Returns the operand.
-
accept
public void accept(SchemaVisitor schemaVisitor) throws XMPSchemaException
- Specified by:
accept
in interfaceTypeRule
- Parameters:
schemaVisitor
- a visitor that implements theSchemaVisitor
-interface- Throws:
XMPSchemaException
- See Also:
TypeRule.accept(com.adobe.xmp.schema.model.SchemaVisitor)
-
-