public interface OrderByParser
The current expression parser supports expressions as defined in the OData specification 2.0 with the following restrictions - the methods "cast", "isof" and "replace" are not supported The expression parser can be used with providing an Entity Data Model (EDM) an without providing it.
When a EDM is provided the expression parser will be as strict as possible. That means:
If no EDM is provided the expression parser performs a lax validation
| Modifier and Type | Method and Description |
|---|---|
OrderByExpression |
parseOrderByString(String orderByExpression)
Parses a $orderby expression string and creates an $orderby expression tree
|
OrderByExpression parseOrderByString(String orderByExpression) throws ExpressionParserException, ODataMessageException
orderByExpression - The $orderby expression string ( for example "name asc" ) to be parsedExpressionParserException - Exception thrown due to errors while parsing the $orderby expression stringODataMessageException - Used for extensibilityCopyright © 2020. All rights reserved.