|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.priha.query.aqt.xpath.XPathQueryBuilder
public class XPathQueryBuilder
Query builder that translates a XPath statement into a query tree structure.
| Field Summary |
|---|
| Method Summary | |
|---|---|
static QueryRootNode |
createQuery(java.lang.String statement,
NamespaceMapper resolver,
QueryNodeFactory factory)
Creates a QueryNode tree from a XPath statement using the
passed query node factory. |
static java.lang.String |
toString(QueryRootNode root,
NamespaceMapper resolver)
Creates a String representation of the query node tree in XPath syntax. |
java.lang.Object |
visit(SimpleNode node,
java.lang.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(java.lang.String statement,
NamespaceMapper resolver,
QueryNodeFactory factory)
throws javax.jcr.query.InvalidQueryException
QueryNode tree from a XPath statement using the
passed query node factory.
statement - the XPath statement.resolver - the name resolver to use.factory - the query node factory.
QueryNode tree for the XPath statement.
javax.jcr.query.InvalidQueryException - if the XPath statement is malformed.
public static java.lang.String toString(QueryRootNode root,
NamespaceMapper resolver)
throws javax.jcr.query.InvalidQueryException
root - the root of the query node tree.resolver - to resolve Names.
javax.jcr.query.InvalidQueryException - if the query node tree cannot be converted
into a String representation due to restrictions in XPath.
public java.lang.Object visit(SimpleNode node,
java.lang.Object data)
XPathVisitor.
visit in interface XPathVisitornode - 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 | ||||||||