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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrismQueryLanguageParserImpl
create(PrismContext prismContext)
Object
parseLiteral(PrismPropertyDefinition<?> propDef, AxiomQueryParser.LiteralValueContext literalValue)
ObjectFilter
parseQuery(PrismContainerDefinition<?> definition, AxiomQuerySource source)
ObjectFilter
parseQuery(PrismContainerDefinition<?> definition, String query)
<C extends Containerable>
ObjectFilterparseQuery(Class<C> typeClass, AxiomQuerySource source)
<C extends Containerable>
ObjectFilterparseQuery(Class<C> typeClass, String query)
protected <T> T
requireLiteral(Class<T> type, String filterName, AxiomQueryParser.SingleValueContext value)
protected <T> Collection<T>
requireLiterals(Class<T> type, String filterName, AxiomQueryParser.SubfilterOrValueContext subfilterOrValue)
-
-
-
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
-
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)
-
-