|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.query.QueryNode
Implements an abstract base class for nodes of a query tree that represents a query. The query tree is independent from the query syntax which is used to search the repository.
Field Summary | |
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_RELATION
Type value for RelationQueryNode |
static int |
TYPE_ROOT
Type value for QueryRootNode |
static int |
TYPE_TEXTSEARCH
Type value for TextsearchQueryNode |
Constructor Summary | |
QueryNode(QueryNode parent)
Constructs a new QueryNode with a reference to it's parent. |
Method Summary | |
abstract Object |
accept(QueryNodeVisitor visitor,
Object data)
Accepts a QueryNodeVisitor and calls the apropriate visit
method on the visitor depending on the concrete implementation of
this QueryNode . |
String |
dump()
Dumps this QueryNode and its child nodes to a String. |
abstract boolean |
equals(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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_ROOT
QueryRootNode
public static final int TYPE_RELATION
RelationQueryNode
public static final int TYPE_ORDER
OrderQueryNode
public static final int TYPE_TEXTSEARCH
TextsearchQueryNode
public static final int TYPE_EXACT
ExactQueryNode
public static final int TYPE_NODETYPE
NodeTypeQueryNode
public static final int TYPE_AND
AndQueryNode
public static final int TYPE_OR
OrQueryNode
public static final int TYPE_NOT
NotQueryNode
public static final int TYPE_LOCATION
LocationStepQueryNode
public static final int TYPE_PATH
PathQueryNode
public static final int TYPE_DEREF
DerefQueryNode
Constructor Detail |
public 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.Method Detail |
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 String dump()
public abstract Object accept(QueryNodeVisitor visitor, Object data)
QueryNodeVisitor
and calls the apropriate 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.public abstract int getType()
public abstract boolean equals(Object obj)
true
if obj
is the same type of
QueryNode
as this
node and is equal to
this
node.
obj
- the reference object with which to compare.
true
if obj
is equal to
this
; false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |