/** * Creates OData parser. * * @param tclass - class of T used to create condition objects in built syntax tree. Class T must have * accessible no-arg constructor and complementary setters to these used in * OData $filter expressions. * @param contextProperties */ public ODataParser(Class<T> tclass, Map<String, String> contextProperties, Map<String, String> beanProperties) { super(tclass, contextProperties, beanProperties); this.parser = new FilterParserImpl(null); }
/** * Creates OData parser. * * @param tclass - class of T used to create condition objects in built syntax tree. Class T must have * accessible no-arg constructor and complementary setters to these used in * OData $filter expressions. * @param contextProperties */ public ODataParser(Class<T> tclass, Map<String, String> contextProperties, Map<String, String> beanProperties) { super(tclass, contextProperties, beanProperties); this.parser = new FilterParserImpl(null); }
@Override public FilterExpression parseFilterString(final EdmEntityType entityType, final String expression) throws ODataMessageException { return new FilterParserImpl(entityType, strictFilter).parseFilterString(expression); }
@Override public FilterExpression parseFilterString(final EdmEntityType entityType, final String expression) throws ExpressionParserException, ODataMessageException { return new FilterParserImpl(entityType).parseFilterString(expression); }
@Override public FilterExpression parseFilterString(final EdmEntityType entityType, final String expression) throws ODataMessageException { return new FilterParserImpl(entityType).parseFilterString(expression); }
private void handleSystemQueryOptionFilter(final String filter) throws UriSyntaxException { final EdmType targetType = uriResult.getTargetType(); if (targetType instanceof EdmEntityType) { try { uriResult.setFilter(new FilterParserImpl((EdmEntityType) targetType).parseFilterString(filter, true)); } catch (ExpressionParserException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } catch (ODataMessageException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } } }
private void handleSystemQueryOptionFilter(final String filter) throws UriSyntaxException { final EdmType targetType = uriResult.getTargetType(); if (targetType instanceof EdmEntityType) { try { uriResult.setFilter(new FilterParserImpl((EdmEntityType) targetType).parseFilterString(filter, true)); } catch (ExpressionParserException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } catch (ODataMessageException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } } }
private void handleSystemQueryOptionFilter(final String filter) throws UriSyntaxException { final EdmType targetType = uriResult.getTargetType(); if (targetType instanceof EdmEntityType) { try { uriResult.setFilter(new FilterParserImpl((EdmEntityType) targetType, strictFilter). parseFilterString(filter, true)); } catch (ExpressionParserException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } catch (ODataMessageException e) { throw new UriSyntaxException(UriSyntaxException.INVALIDFILTEREXPRESSION.addContent(filter), e); } } }