org.xcmis.search.model.ordering
Class Ordering

java.lang.Object
  extended by org.xcmis.search.model.ordering.Ordering
All Implemented Interfaces:
Serializable, QueryElement

public class Ordering
extends Object
implements QueryElement

A specification of the ordering for the results.

See Also:
Serialized Form

Constructor Summary
Ordering(DynamicOperand operand, Order order)
          Create a new ordering specification, given the supplied operand and order.
 
Method Summary
 void accept(QueryObjectModelVisitor visitor)
          Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
 boolean equals(Object obj)
          
 DynamicOperand getOperand()
          Get the operand being ordered.
 Order getOrder()
          The order type.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ordering

public Ordering(DynamicOperand operand,
                Order order)
Create a new ordering specification, given the supplied operand and order.

Parameters:
operand - the operand being ordered
order - the order type
Method Detail

accept

public void accept(QueryObjectModelVisitor visitor)
            throws VisitException
Description copied from interface: QueryElement
Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.

Specified by:
accept in interface QueryElement
Parameters:
visitor - the visitor.
Throws:
VisitException
See Also:
QueryElement.accept(org.xcmis.search.QueryObjectModelVisitor)

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getOperand

public final DynamicOperand getOperand()
Get the operand being ordered.

Returns:
the operand; never null

getOrder

public final Order getOrder()
The order type.

Returns:
the type; never null

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2010 eXo Platform SAS. All Rights Reserved.