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_ARRAY
EmptyOrderingImpl
array.-
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 Object
accept(QOMTreeVisitor visitor, Object data)
Accepts avisitor
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
-
-
-
-
Field Detail
-
EMPTY_ARRAY
public static final OrderingImpl[] EMPTY_ARRAY
EmptyOrderingImpl
array.
-
-
Method Detail
-
getOperand
public DynamicOperand getOperand()
The operand by which to order.- Specified by:
getOperand
in interfaceOrdering
- Returns:
- the operand; non-null
-
getOrder
public String getOrder()
Gets the order.
-
isAscending
public boolean isAscending()
- Returns:
true
if this ordering is ascending. Returnsfalse
if ordering is descending.
-
accept
public Object accept(QOMTreeVisitor visitor, Object data) throws Exception
Accepts avisitor
and calls the appropriate visit method depending on the type of this QOM node.- Specified by:
accept
in classAbstractQOMNode
- Parameters:
visitor
- the visitor.data
- user defined data, which is passed to the visit method.- Throws:
Exception
-
-