public abstract class QueryNode
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_AND
Type value for
AndQueryNode |
static int |
TYPE_DEREF
Type value for
DerefQueryNode |
static int |
TYPE_EXACT
Type value for
ExactQueryNode |
static int |
TYPE_LOCATION
Type value for
LocationStepQueryNode |
static int |
TYPE_NODETYPE
Type value for
NodeTypeQueryNode |
static int |
TYPE_NOT
Type value for
NotQueryNode |
static int |
TYPE_OR
Type value for
OrQueryNode |
static int |
TYPE_ORDER
Type value for
OrderQueryNode |
static int |
TYPE_PATH
Type value for
PathQueryNode |
static int |
TYPE_PROP_FUNCTION
Type value for
PropertyFunctionQueryNode |
static int |
TYPE_RELATION
Type value for
RelationQueryNode |
static int |
TYPE_ROOT
Type value for
QueryRootNode |
static int |
TYPE_TEXTSEARCH
Type value for
TextsearchQueryNode |
| Constructor and Description |
|---|
QueryNode(QueryNode parent)
Constructs a new
QueryNode with a reference to it's parent. |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
accept(QueryNodeVisitor visitor,
java.lang.Object data)
Accepts a
QueryNodeVisitor and calls the appropriate visit
method on the visitor depending on the concrete implementation of
this QueryNode. |
java.lang.String |
dump()
Dumps this QueryNode and its child nodes to a String.
|
abstract boolean |
equals(java.lang.Object obj)
Returns
true if obj is the same type of
QueryNode as this node and is equal to
this node. |
QueryNode |
getParent()
Returns the parent
QueryNode or null if this is
the root node of a query tree. |
abstract int |
getType()
Returns the type of this query node.
|
abstract boolean |
needsSystemTree()
Returns
true if this query node needs items under
/jcr:system to be queried. |
public static final int TYPE_ROOT
QueryRootNodepublic static final int TYPE_RELATION
RelationQueryNodepublic static final int TYPE_ORDER
OrderQueryNodepublic static final int TYPE_TEXTSEARCH
TextsearchQueryNodepublic static final int TYPE_EXACT
ExactQueryNodepublic static final int TYPE_NODETYPE
NodeTypeQueryNodepublic static final int TYPE_AND
AndQueryNodepublic static final int TYPE_OR
OrQueryNodepublic static final int TYPE_NOT
NotQueryNodepublic static final int TYPE_LOCATION
LocationStepQueryNodepublic static final int TYPE_PATH
PathQueryNodepublic static final int TYPE_DEREF
DerefQueryNodepublic static final int TYPE_PROP_FUNCTION
PropertyFunctionQueryNodepublic QueryNode(QueryNode parent)
QueryNode with a reference to it's parent.parent - the parent node, or null if this is the root
node of a query tree.public QueryNode getParent()
QueryNode or null if this is
the root node of a query tree.QueryNode or null if this is
the root node of a query tree.public java.lang.String dump()
throws RepositoryException
RepositoryExceptionpublic abstract java.lang.Object accept(QueryNodeVisitor visitor, java.lang.Object data) throws RepositoryException
QueryNodeVisitor and calls the appropriate visit
method on the visitor depending on the concrete implementation of
this QueryNode.visitor - the visitor to call back.data - arbitrary data for the visitor.visitor.visit() call.RepositoryExceptionpublic abstract int getType()
public abstract boolean equals(java.lang.Object obj)
true if obj is the same type of
QueryNode as this node and is equal to
this node.equals in class java.lang.Objectobj - the reference object with which to compare.true if obj is equal to
this; false otherwise.public abstract boolean needsSystemTree()
true if this query node needs items under
/jcr:system to be queried.true if this query node needs content under
/jcr:system to be queried; false otherwise.Copyright © 2010 - 2023 Adobe. All Rights Reserved