public class XPathQueryParser extends Object implements QueryParser
QueryParser
implementation that accepts XPath expressions and converts them to a ModeShape
Abstract Query Model
representation.Constructor and Description |
---|
XPathQueryParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLanguage()
Get the name of the language that this parser is able to understand.
|
int |
hashCode() |
QueryCommand |
parseQuery(String query,
TypeSystem typeSystem)
Parse the supplied query from a string representation into a
QueryCommand . |
String |
toString() |
public String getLanguage()
QueryParser
getLanguage
in interface QueryParser
public QueryCommand parseQuery(String query, TypeSystem typeSystem) throws InvalidQueryException, ParsingException
QueryParser
QueryCommand
.parseQuery
in interface QueryParser
query
- the query in string form; may not be nulltypeSystem
- the type system used by the query; may not be nullInvalidQueryException
- if the supplied query can be parsed but is invalidParsingException
- if there is an error parsing the supplied queryCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.