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