Package com.adobe.xmp.schema.model.rules
Class RealRule
- java.lang.Object
-
- com.adobe.xmp.schema.model.rules.RealRule
-
- All Implemented Interfaces:
TypeRule
,java.io.Serializable
public class RealRule extends java.lang.Object implements TypeRule
This rule is a comparison of a Real 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 RealRule(TypeRule.ComparisonOperator operator, double operand)
Constructs a new RealRule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SchemaVisitor schemaVisitor)
double
getOperand()
TypeRule.ComparisonOperator
getOperator()
-
-
-
Constructor Detail
-
RealRule
public RealRule(TypeRule.ComparisonOperator operator, double operand)
Constructs a new RealRule.- Parameters:
operator
- the comparison operatoroperand
- the double value to compare with
-
-
Method Detail
-
getOperator
public TypeRule.ComparisonOperator getOperator()
- Returns:
- Returns the operator.
-
getOperand
public double 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)
-
-