Class ParserHelper
java.lang.Object
org.apache.olingo.server.core.uri.parser.ParserHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Map<UriTokenizer.TokenKind,EdmPrimitiveTypeKind> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanbws(UriTokenizer tokenizer) protected static List<UriParameter>compoundKey(UriTokenizer tokenizer, EdmEntityType edmEntityType, Edm edm, EdmType referringType, Map<String, AliasQueryOption> aliases, String protocolType) protected static UriParametercreateUriParameter(EdmProperty edmProperty, String parameterName, String literalValue, Edm edm, EdmType referringType, Map<String, AliasQueryOption> aliases) getParameterNames(List<UriParameter> parameters) protected static EdmTypegetTypeInformation(UriResourcePartTyped resourcePart) protected static UriTokenizer.TokenKindnext(UriTokenizer tokenizer, UriTokenizer.TokenKind... kinds) protected static booleannextPrimitiveTypeValue(UriTokenizer tokenizer, EdmPrimitiveType primitiveType, boolean nullable, String protocolType) protected static UriTokenizer.TokenKindnextPrimitiveValue(UriTokenizer tokenizer) protected static AliasQueryOptionparseAliasValue(String name, EdmType type, boolean isNullable, boolean isCollection, Edm edm, EdmType referringType, Map<String, AliasQueryOption> aliases) protected static List<UriParameter>parseFunctionParameters(UriTokenizer tokenizer, Edm edm, EdmType referringType, boolean withComplex, boolean allowCollections, Map<String, AliasQueryOption> aliases) protected static List<UriParameter>parseFunctionParameters(UriTokenizer tokenizer, Edm edm, EdmType referringType, boolean withComplex, Map<String, AliasQueryOption> aliases) protected static List<UriParameter>parseKeyPredicate(UriTokenizer tokenizer, EdmEntityType edmEntityType, EdmNavigationProperty partner, Edm edm, EdmType referringType, Map<String, AliasQueryOption> aliases) protected static List<UriParameter>parseNavigationKeyPredicate(UriTokenizer tokenizer, EdmNavigationProperty navigationProperty, Edm edm, EdmType referringType, Map<String, AliasQueryOption> aliases, String protocolType) protected static intparseNonNegativeInteger(String optionName, String optionValue, boolean zeroAllowed) protected static EdmStructuredTypeparseTypeCast(UriTokenizer tokenizer, Edm edm, EdmStructuredType referencedType) protected static voidrequireNext(UriTokenizer tokenizer, UriTokenizer.TokenKind required) protected static voidrequireTokenEnd(UriTokenizer tokenizer) protected static voidvalidateFunctionParameterFacets(EdmFunction function, List<UriParameter> parameters, Edm edm, Map<String, AliasQueryOption> aliases) protected static voidvalidateFunctionParameters(EdmFunction function, List<UriParameter> parameters, Edm edm, EdmType referringType) protected static voidvalidateFunctionParameters(EdmFunction function, List<UriParameter> parameters, Edm edm, EdmType referringType, Map<String, AliasQueryOption> aliases)
-
Field Details
-
tokenToPrimitiveType
-
-
Constructor Details
-
ParserHelper
public ParserHelper()
-
-
Method Details
-
requireNext
protected static void requireNext(UriTokenizer tokenizer, UriTokenizer.TokenKind required) throws UriParserException - Throws:
UriParserException
-
requireTokenEnd
- Throws:
UriParserException
-
bws
-
next
protected static UriTokenizer.TokenKind next(UriTokenizer tokenizer, UriTokenizer.TokenKind... kinds) -
nextPrimitiveValue
-
parseFunctionParameters
protected static List<UriParameter> parseFunctionParameters(UriTokenizer tokenizer, Edm edm, EdmType referringType, boolean withComplex, Map<String, AliasQueryOption> aliases) throws UriParserException, UriValidationException -
parseFunctionParameters
protected static List<UriParameter> parseFunctionParameters(UriTokenizer tokenizer, Edm edm, EdmType referringType, boolean withComplex, boolean allowCollections, Map<String, AliasQueryOption> aliases) throws UriParserException, UriValidationException -
validateFunctionParameters
protected static void validateFunctionParameters(EdmFunction function, List<UriParameter> parameters, Edm edm, EdmType referringType, Map<String, AliasQueryOption> aliases) throws UriParserException, UriValidationException -
validateFunctionParameters
protected static void validateFunctionParameters(EdmFunction function, List<UriParameter> parameters, Edm edm, EdmType referringType) throws UriParserException, UriValidationException -
parseAliasValue
protected static AliasQueryOption parseAliasValue(String name, EdmType type, boolean isNullable, boolean isCollection, Edm edm, EdmType referringType, Map<String, AliasQueryOption> aliases) throws UriParserException, UriValidationException -
compoundKey
protected static List<UriParameter> compoundKey(UriTokenizer tokenizer, EdmEntityType edmEntityType, Edm edm, EdmType referringType, Map<String, AliasQueryOption> aliases, String protocolType) throws UriParserException, UriValidationException -
createUriParameter
protected static UriParameter createUriParameter(EdmProperty edmProperty, String parameterName, String literalValue, Edm edm, EdmType referringType, Map<String, AliasQueryOption> aliases) throws UriParserException, UriValidationException -
nextPrimitiveTypeValue
protected static boolean nextPrimitiveTypeValue(UriTokenizer tokenizer, EdmPrimitiveType primitiveType, boolean nullable, String protocolType) -
getParameterNames
-
parseTypeCast
protected static EdmStructuredType parseTypeCast(UriTokenizer tokenizer, Edm edm, EdmStructuredType referencedType) throws UriParserException - Throws:
UriParserException
-
getTypeInformation
-
parseNonNegativeInteger
protected static int parseNonNegativeInteger(String optionName, String optionValue, boolean zeroAllowed) throws UriParserException - Throws:
UriParserException
-
validateFunctionParameterFacets
protected static void validateFunctionParameterFacets(EdmFunction function, List<UriParameter> parameters, Edm edm, Map<String, AliasQueryOption> aliases) throws UriParserException, UriValidationException
-