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

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
      extended by org.apache.jackrabbit.spi.commons.query.qom.OrderingImpl
All Implemented Interfaces:
Ordering

public class OrderingImpl
extends AbstractQOMNode
implements Ordering

OrderingImpl...


Field Summary
static OrderingImpl[] EMPTY_ARRAY
          Empty OrderingImpl array.
 
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 getOperand()
          The operand by which to order.
 String getOrder()
          Gets the order.
 boolean isAscending()
           
 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
 

Field Detail

EMPTY_ARRAY

public static final OrderingImpl[] EMPTY_ARRAY
Empty OrderingImpl array.

Method Detail

getOperand

public DynamicOperand getOperand()
The operand by which to order.

Specified by:
getOperand in interface Ordering
Returns:
the operand; non-null

getOrder

public String getOrder()
Gets the order.

Specified by:
getOrder in interface Ordering
Returns:
either

isAscending

public boolean isAscending()
Returns:
true if this ordering is ascending. Returns false if ordering is descending.

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.