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()
QueryParsergetLanguage in interface QueryParserpublic QueryCommand parseQuery(String query, TypeSystem typeSystem) throws InvalidQueryException, ParsingException
QueryParserQueryCommand.parseQuery in interface QueryParserquery - 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-2014 JBoss, a division of Red Hat. All Rights Reserved.