Class ComparisonImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
-
- org.apache.jackrabbit.spi.commons.query.qom.ConstraintImpl
-
- org.apache.jackrabbit.spi.commons.query.qom.ComparisonImpl
-
- All Implemented Interfaces:
Comparison,Constraint
public class ComparisonImpl extends ConstraintImpl implements Comparison
ComparisonImpl...
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
resolver
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(QOMTreeVisitor visitor, Object data)Accepts avisitorand calls the appropriate visit method depending on the type of this QOM node.DynamicOperandgetOperand1()Gets the first operand.StaticOperandgetOperand2()Gets the second operand.StringgetOperator()Gets the operator.OperatorgetOperatorInstance()StringtoString()-
Methods inherited from class org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
getJCRName, getJCRPath, protect, quote, quote
-
-
-
-
Method Detail
-
getOperatorInstance
public Operator getOperatorInstance()
-
getOperand1
public DynamicOperand getOperand1()
Gets the first operand.- Specified by:
getOperand1in interfaceComparison- Returns:
- the operand; non-null
-
getOperator
public String getOperator()
Gets the operator.- Specified by:
getOperatorin interfaceComparison- Returns:
- either
QueryObjectModelConstants.JCR_OPERATOR_EQUAL_TO,QueryObjectModelConstants.JCR_OPERATOR_NOT_EQUAL_TO,QueryObjectModelConstants.JCR_OPERATOR_LESS_THAN,QueryObjectModelConstants.JCR_OPERATOR_LESS_THAN_OR_EQUAL_TO,QueryObjectModelConstants.JCR_OPERATOR_GREATER_THAN,QueryObjectModelConstants.JCR_OPERATOR_GREATER_THAN_OR_EQUAL_TO, orQueryObjectModelConstants.JCR_OPERATOR_LIKE
-
getOperand2
public StaticOperand getOperand2()
Gets the second operand.- Specified by:
getOperand2in interfaceComparison- Returns:
- the operand; non-null
-
accept
public Object accept(QOMTreeVisitor visitor, Object data) throws Exception
Accepts avisitorand calls the appropriate visit method depending on the type of this QOM node.- Specified by:
acceptin classAbstractQOMNode- Parameters:
visitor- the visitor.data- user defined data, which is passed to the visit method.- Throws:
Exception
-
-