org.apache.jackrabbit.spi.commons.query.qom
Class ComparisonImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
      extended by org.apache.jackrabbit.spi.commons.query.qom.ConstraintImpl
          extended by 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
 Object accept(QOMTreeVisitor visitor, Object data)
          Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
 DynamicOperand getOperand1()
          Gets the first operand.
 StaticOperand getOperand2()
          Gets the second operand.
 String getOperator()
          Gets the operator.
 Operator getOperatorInstance()
           
 String toString()
           
 
Methods inherited from class org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
getJCRName, getJCRPath, protect, quote, quote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getOperatorInstance

public Operator getOperatorInstance()

getOperand1

public DynamicOperand getOperand1()
Gets the first operand.

Specified by:
getOperand1 in interface Comparison
Returns:
the operand; non-null

getOperator

public String getOperator()
Gets the operator.

Specified by:
getOperator in interface Comparison
Returns:
either

getOperand2

public StaticOperand getOperand2()
Gets the second operand.

Specified by:
getOperand2 in interface Comparison
Returns:
the operand; non-null

accept

public Object accept(QOMTreeVisitor visitor,
                     Object data)
              throws 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:
Exception

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.