Class ComparisonImpl

  • All Implemented Interfaces:
    javax.jcr.query.qom.Comparison, javax.jcr.query.qom.Constraint

    public class ComparisonImpl
    extends ConstraintImpl
    implements javax.jcr.query.qom.Comparison
    ComparisonImpl...
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object accept​(QOMTreeVisitor visitor, java.lang.Object data)
      Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
      javax.jcr.query.qom.DynamicOperand getOperand1()
      Gets the first operand.
      javax.jcr.query.qom.StaticOperand getOperand2()
      Gets the second operand.
      java.lang.String getOperator()
      Gets the operator.
      Operator getOperatorInstance()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getOperatorInstance

        public Operator getOperatorInstance()
      • getOperand1

        public javax.jcr.query.qom.DynamicOperand getOperand1()
        Gets the first operand.
        Specified by:
        getOperand1 in interface javax.jcr.query.qom.Comparison
        Returns:
        the operand; non-null
      • getOperator

        public java.lang.String getOperator()
        Gets the operator.
        Specified by:
        getOperator in interface javax.jcr.query.qom.Comparison
        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, or
        • QueryObjectModelConstants.JCR_OPERATOR_LIKE
      • getOperand2

        public javax.jcr.query.qom.StaticOperand getOperand2()
        Gets the second operand.
        Specified by:
        getOperand2 in interface javax.jcr.query.qom.Comparison
        Returns:
        the operand; non-null
      • accept

        public java.lang.Object accept​(QOMTreeVisitor visitor,
                                       java.lang.Object data)
                                throws java.lang.Exception
        Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
        Specified by:
        accept in class AbstractQOMNode
        Parameters:
        visitor - the visitor.
        data - user defined data, which is passed to the visit method.
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object