public interface QueryNode extends Serializable
QueryNode is a interface implemented by all nodes on a QueryNode
tree.| Modifier and Type | Method and Description |
|---|---|
void |
add(List<QueryNode> children) |
void |
add(QueryNode child) |
QueryNode |
cloneTree()
Recursive clone the QueryNode tree The tags are not copied to the new tree
when you call the cloneTree() method
|
boolean |
containsTag(CharSequence tagName)
verify if a node contains a tag
|
List<QueryNode> |
getChildren()
get Children nodes
|
QueryNode |
getParent() |
Object |
getTag(CharSequence tagName) |
Map<CharSequence,Object> |
getTags() |
boolean |
isLeaf()
verify if a node is a Leaf node
|
void |
set(List<QueryNode> children) |
void |
setTag(CharSequence tagName,
Object value)
Associate the specified value with the specified tagName.
|
CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
convert to a query string understood by the query parser
|
String |
toString()
for printing
|
void |
unsetTag(CharSequence tagName)
Unset a tag.
|
CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
boolean isLeaf()
boolean containsTag(CharSequence tagName)
Object getTag(CharSequence tagName)
tagName - QueryNode getParent()
QueryNode cloneTree() throws CloneNotSupportedException
CloneNotSupportedExceptionvoid add(QueryNode child)
void setTag(CharSequence tagName, Object value)
tagName - value - void unsetTag(CharSequence tagName)
tagName - Map<CharSequence,Object> getTags()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.