Class PrismQueryLanguageParserImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.query.lang.PrismQueryLanguageParserImpl
-
- All Implemented Interfaces:
PrismQueryLanguageParser
public class PrismQueryLanguageParserImpl extends Object implements PrismQueryLanguageParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PrismQueryLanguageParserImpl.ItemFilterFactory
-
Field Summary
Fields Modifier and Type Field Description static String
MATCHING_RULE_NS
static String
QUERY_NS
-
Constructor Summary
Constructors Constructor Description PrismQueryLanguageParserImpl(PrismContext context)
PrismQueryLanguageParserImpl(PrismContext context, Map<String,String> namespaceContext)
-
Method Summary
-
-
-
Field Detail
-
QUERY_NS
public static final String QUERY_NS
- See Also:
- Constant Field Values
-
MATCHING_RULE_NS
public static final String MATCHING_RULE_NS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrismQueryLanguageParserImpl
public PrismQueryLanguageParserImpl(PrismContext context)
-
PrismQueryLanguageParserImpl
public PrismQueryLanguageParserImpl(PrismContext context, Map<String,String> namespaceContext)
-
-
Method Detail
-
isVariablePath
protected boolean isVariablePath(AxiomQueryParser.SingleValueContext singleValue)
-
isVariablePath
public boolean isVariablePath(AxiomQueryParser.PathContext path)
-
parseLiteral
public Object parseLiteral(PrismPropertyDefinition<?> propDef, AxiomQueryParser.LiteralValueContext literalValue)
-
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
-
parseQuery
public <C extends Containerable> ObjectFilter parseQuery(Class<C> typeClass, String query) throws SchemaException
- Specified by:
parseQuery
in interfacePrismQueryLanguageParser
- Throws:
SchemaException
-
parseQuery
public ObjectFilter parseQuery(PrismContainerDefinition<?> definition, String query) throws SchemaException
- Specified by:
parseQuery
in interfacePrismQueryLanguageParser
- Throws:
SchemaException
-
parseQuery
public <C extends Containerable> ObjectFilter parseQuery(Class<C> typeClass, AxiomQuerySource source) throws SchemaException
- Throws:
SchemaException
-
parseQuery
public ObjectFilter parseQuery(PrismContainerDefinition<?> definition, AxiomQuerySource source) throws SchemaException
- Throws:
SchemaException
-
create
public static PrismQueryLanguageParserImpl create(PrismContext prismContext)
-
-