org.apache.olingo.odata2.api.uri.expression

## Interface OrderExpression

- All Superinterfaces:
    CommonExpression, Visitable

      public interface OrderExpression
      extends CommonExpression

  Represents a order expression in the expression tree

  A order expression node is inserted in the expression tree for any valid OData order. For example for "$orderby=age desc, name asc" two order expression node will be inserted into the expression tree

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `CommonExpression` | `getExpression()`
    `SortOrder` | `getSortOrder()`

    - ### Methods inherited from interface org.apache.olingo.odata2.api.uri.expression.CommonExpression

      `getEdmType, getKind, getUriLiteral, setEdmType`

    - ### Methods inherited from interface org.apache.olingo.odata2.api.uri.expression.Visitable

      `accept`

- - ### Method Detail

    - #### getSortOrder

          SortOrder getSortOrder()

      Returns:
        Returns the sort order (ascending or descending) of the order expression

    - #### getExpression

          CommonExpression getExpression()

      Returns:
        Returns the expression node which defines the data used to order the output send back to the client. In the simplest case this would be a `PropertyExpression`.
      See Also:
        `CommonExpression`

Copyright © 2013-2023 The Apache Software Foundation. All Rights Reserved.