public interface QueryNode
QueryNode
is a interface implemented by all nodes on a QueryNode
tree.Modifier and Type | Method and Description |
---|---|
void |
add(java.util.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(java.lang.String tagName)
verify if a node contains a tag
|
java.util.List<QueryNode> |
getChildren()
get Children nodes
|
QueryNode |
getParent() |
java.lang.Object |
getTag(java.lang.String tagName)
Returns object stored under that tag name
|
java.util.Map<java.lang.String,java.lang.Object> |
getTagMap()
Returns a map containing all tags attached to this query node.
|
boolean |
isLeaf()
verify if a node is a Leaf node
|
void |
removeChildren(QueryNode childNode)
Remove a child node
|
void |
removeFromParent()
Removes this query node from its parent.
|
void |
set(java.util.List<QueryNode> children) |
void |
setTag(java.lang.String tagName,
java.lang.Object value)
Associate the specified value with the specified tagName.
|
java.lang.CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
convert to a query string understood by the query parser
|
java.lang.String |
toString()
for printing
|
void |
unsetTag(java.lang.String tagName)
Unset a tag.
|
java.lang.CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
java.lang.String toString()
toString
in class java.lang.Object
java.util.List<QueryNode> getChildren()
boolean isLeaf()
boolean containsTag(java.lang.String tagName)
java.lang.Object getTag(java.lang.String tagName)
QueryNode getParent()
QueryNode cloneTree() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
void add(QueryNode child)
void add(java.util.List<QueryNode> children)
void set(java.util.List<QueryNode> children)
void setTag(java.lang.String tagName, java.lang.Object value)
void unsetTag(java.lang.String tagName)
java.util.Map<java.lang.String,java.lang.Object> getTagMap()
void removeFromParent()
void removeChildren(QueryNode childNode)
childNode
- Which child to remove