|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder
Query builder that translates a XPath statement into a query tree structure.
Method Summary | |
static QueryRootNode |
createQuery(String statement,
NamespaceResolver resolver)
Creates a QueryNode tree from a XPath statement. |
static String |
toString(QueryRootNode root,
NamespaceResolver resolver)
Creates a String representation of the query node tree in XPath syntax. |
Object |
visit(SimpleNode node,
Object data)
Implements the generic visit method for this XPathVisitor . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static QueryRootNode createQuery(String statement, NamespaceResolver resolver) throws InvalidQueryException
QueryNode
tree from a XPath statement.
statement
- the XPath statement.resolver
- the namespace resolver to use.
QueryNode
tree for the XPath statement.
InvalidQueryException
- if the XPath statement is malformed.public static String toString(QueryRootNode root, NamespaceResolver resolver) throws InvalidQueryException
root
- the root of the query node tree.resolver
- to resolve QNames.
InvalidQueryException
- if the query node tree cannot be converted
into a String representation due to restrictions in XPath.public Object visit(SimpleNode node, Object data)
XPathVisitor
.
node
- the current node as created by the XPath parser.data
- the current QueryNode
created by this
XPathVisitor
.
QueryNode
. Can be different from
data
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |