Class OrderingImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
-
- org.apache.jackrabbit.spi.commons.query.qom.OrderingImpl
-
- All Implemented Interfaces:
javax.jcr.query.qom.Ordering
public class OrderingImpl extends AbstractQOMNode implements javax.jcr.query.qom.Ordering
OrderingImpl...
-
-
Field Summary
Fields Modifier and Type Field Description static OrderingImpl[]EMPTY_ARRAYEmptyOrderingImplarray.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(QOMTreeVisitor visitor, java.lang.Object data)Accepts avisitorand calls the appropriate visit method depending on the type of this QOM node.javax.jcr.query.qom.DynamicOperandgetOperand()The operand by which to order.java.lang.StringgetOrder()Gets the order.booleanisAscending()java.lang.StringtoString()
-
-
-
Field Detail
-
EMPTY_ARRAY
public static final OrderingImpl[] EMPTY_ARRAY
EmptyOrderingImplarray.
-
-
Method Detail
-
getOperand
public javax.jcr.query.qom.DynamicOperand getOperand()
The operand by which to order.- Specified by:
getOperandin interfacejavax.jcr.query.qom.Ordering- Returns:
- the operand; non-null
-
getOrder
public java.lang.String getOrder()
Gets the order.- Specified by:
getOrderin interfacejavax.jcr.query.qom.Ordering- Returns:
- either
QueryObjectModelConstants.JCR_ORDER_ASCENDINGorQueryObjectModelConstants.JCR_ORDER_DESCENDING
-
isAscending
public boolean isAscending()
- Returns:
trueif this ordering is ascending. Returnsfalseif ordering is descending.
-
accept
public java.lang.Object accept(QOMTreeVisitor visitor, java.lang.Object data) throws java.lang.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:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-