public interface FilterParser
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 |
|---|---|
FilterExpression |
parseFilterString(String expression)
Parses a $filter expression string and creates an $orderby expression tree.
|
FilterExpression parseFilterString(String expression) throws ExpressionParserException, ODataMessageException
expression - The $filter expression string ( for example "city eq 'Sydney'" ) to be parsedExpressionVisitor and
VisitableExpressionParserException - Exception thrown due to errors while parsing the $filter expression stringODataMessageException - Used for extensibilityCopyright © 2020. All rights reserved.