public class LogicalRule extends java.lang.Object implements TypeRule
TypeRule.ComparisonOperator, TypeRule.LogicalOperator
Constructor and Description |
---|
LogicalRule(TypeRule.LogicalOperator operator)
Constructs a new LogicalRule.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(SchemaVisitor schemaVisitor) |
void |
addOperand(TypeRule rule)
Adds a new operand, for the operator NOT, only one operand is allowed.
|
java.util.List<TypeRule> |
getOperands()
Returns a list of rules that is combined by the logical operator.
|
TypeRule.LogicalOperator |
getOperator() |
public LogicalRule(TypeRule.LogicalOperator operator)
operator
- the logical operator (AND, OR, NOT).public TypeRule.LogicalOperator getOperator()
public void addOperand(TypeRule rule)
rule
- a rule that is added as operandpublic java.util.List<TypeRule> getOperands()
public void accept(SchemaVisitor schemaVisitor) throws XMPSchemaException
accept
in interface TypeRule
schemaVisitor
- a visitor that implements the SchemaVisitor
-interfaceXMPSchemaException
TypeRule.accept(com.adobe.xmp.schema.model.SchemaVisitor)
Copyright © 2010 - 2020 Adobe. All Rights Reserved