Package com.adobe.xmp.schema.model.rules
Class BooleanRule
- java.lang.Object
-
- com.adobe.xmp.schema.model.rules.BooleanRule
-
- All Implemented Interfaces:
TypeRule
,java.io.Serializable
public class BooleanRule extends java.lang.Object implements TypeRule
The rule for boolean is always an EQUAL rule. Only purpose is a Boolean property that has to be constantly either true or false (or absent).- 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 BooleanRule(boolean value)
Constructs a new BooleanRule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SchemaVisitor schemaVisitor)
boolean
getOperand()
-
-
-
Method Detail
-
getOperand
public boolean getOperand()
- Returns:
- Returns the argument
-
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)
-
-