Class PrismQueryLanguageParserImpl
java.lang.Object
com.evolveum.midpoint.prism.impl.query.lang.PrismQueryLanguageParserImpl
- All Implemented Interfaces:
PrismQueryLanguageParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrismQueryLanguageParserImpl(PrismContext context) PrismQueryLanguageParserImpl(PrismContext context, Map<String, String> namespaceContext) PrismQueryLanguageParserImpl(PrismContext context, Map<String, String> namespaceContext, PrismQueryExpressionFactory expressionParser) -
Method Summary
Modifier and TypeMethodDescriptionstatic PrismQueryLanguageParserImplcreate(PrismContext prismContext) protected booleanisVariablePath(AxiomQueryParser.SingleValueContext singleValue) protected PreparedPrismQueryparse(ItemDefinition<?> contextDef, AxiomQuerySource source, boolean placeholdersEnabled) parse(ItemDefinition<?> definition, String query) protected ObjectFilterparseBound(com.evolveum.midpoint.prism.impl.query.lang.QueryParsingContext context) parseFilter(ItemDefinition<?> definition, String query) <T> ObjectFilterparseFilter(Class<T> typeClass, String query) Parses Axiom Query filter with definition derived from the provided type class.protected <T> TrequireLiteral(Class<T> type, String filterName, AxiomQueryParser.SingleValueContext value) protected <T> Collection<T>requireLiterals(Class<T> type, String filterName, AxiomQueryParser.SubfilterOrValueContext subfilterOrValue)
-
Field Details
-
QUERY_NS
- See Also:
-
MATCHING_RULE_NS
- See Also:
-
-
Constructor Details
-
PrismQueryLanguageParserImpl
-
PrismQueryLanguageParserImpl
-
PrismQueryLanguageParserImpl
public PrismQueryLanguageParserImpl(PrismContext context, Map<String, String> namespaceContext, PrismQueryExpressionFactory expressionParser)
-
-
Method Details
-
isVariablePath
-
requireLiterals
protected <T> Collection<T> requireLiterals(Class<T> type, String filterName, AxiomQueryParser.SubfilterOrValueContext subfilterOrValue) throws SchemaException - Throws:
SchemaException
-
requireLiteral
protected <T> T requireLiteral(Class<T> type, String filterName, AxiomQueryParser.SingleValueContext value) throws SchemaException - Throws:
SchemaException
-
parseFilter
Description copied from interface:PrismQueryLanguageParserParses Axiom Query filter with definition derived from the provided type class. For reference search filters use anyReferencableand follow the rules for reference search filter: * exactly one ownedBy to define the reference context, * any number of additional REF on the SELF path, that is `. matches (...)`.- Specified by:
parseFilterin interfacePrismQueryLanguageParser- Throws:
SchemaException
-
parseFilter
- Specified by:
parseFilterin interfacePrismQueryLanguageParser- Throws:
SchemaException
-
parse
- Specified by:
parsein interfacePrismQueryLanguageParser- Throws:
SchemaException
-
parse
- Specified by:
parsein interfacePrismQueryLanguageParser- Throws:
SchemaException
-
parse
protected PreparedPrismQuery parse(ItemDefinition<?> contextDef, AxiomQuerySource source, boolean placeholdersEnabled) throws SchemaException - Throws:
SchemaException
-
parseBound
protected ObjectFilter parseBound(com.evolveum.midpoint.prism.impl.query.lang.QueryParsingContext context) throws SchemaException - Throws:
SchemaException
-
create
-