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

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
      extended by org.apache.jackrabbit.spi.commons.query.qom.DynamicOperandImpl
          extended by org.apache.jackrabbit.spi.commons.query.qom.LengthImpl
All Implemented Interfaces:
DynamicOperand, Length, Operand

public class LengthImpl
extends DynamicOperandImpl
implements Length

LengthImpl...


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.
 PropertyValue getPropertyValue()
          Gets the property value for which to compute the length.
 String toString()
           
 
Methods inherited from class org.apache.jackrabbit.spi.commons.query.qom.DynamicOperandImpl
getSelectorName, getSelectorQName
 
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

getPropertyValue

public PropertyValue getPropertyValue()
Gets the property value for which to compute the length.

Specified by:
getPropertyValue in interface Length
Returns:
the property value; 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 © 2004-2010 The Apache Software Foundation. All Rights Reserved.