|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.jcr.xpath.XPathQueryParser
public class XPathQueryParser
A QueryParser
implementation that accepts XPath expressions and converts them to a DNA Abstract
Query Model
representation.
Constructor Summary | |
---|---|
XPathQueryParser()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getLanguage()
Get the name of the language that this parser is able to understand. |
QueryCommand |
parseQuery(String query,
TypeSystem typeSystem)
Parse the supplied query from a string representation into a QueryCommand . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XPathQueryParser()
Method Detail |
---|
public String getLanguage()
getLanguage
in interface QueryParser
QueryParser.getLanguage()
public String toString()
toString
in class Object
Object.toString()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public QueryCommand parseQuery(String query, TypeSystem typeSystem) throws InvalidQueryException, ParsingException
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 null
InvalidQueryException
- if the supplied query can be parsed but is invalid
ParsingException
- if there is an error parsing the supplied queryQueryParser.parseQuery(java.lang.String, org.jboss.dna.graph.query.model.TypeSystem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |