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)
Deprecated.
use
containsTag(String) instead |
boolean |
containsTag(String tagName)
verify if a node contains a tag
|
List<QueryNode> |
getChildren()
get Children nodes
|
QueryNode |
getParent() |
Object |
getTag(CharSequence tagName)
Deprecated.
use
getTag(String) instead |
Object |
getTag(String tagName) |
Map<String,Object> |
getTagMap()
Returns a map containing all tags attached to this query node.
|
Map<CharSequence,Object> |
getTags()
Deprecated.
use
getTagMap() |
boolean |
isLeaf()
verify if a node is a Leaf node
|
void |
set(List<QueryNode> children) |
void |
setTag(CharSequence tagName,
Object value)
Deprecated.
use
setTag(String, Object) instead |
void |
setTag(String 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)
Deprecated.
use
unsetTag(String) instead |
void |
unsetTag(String tagName)
Unset a tag. tagName will be converted to lowercase.
|
CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
boolean isLeaf()
boolean containsTag(String tagName)
@Deprecated boolean containsTag(CharSequence tagName)
containsTag(String)
instead@Deprecated Object getTag(CharSequence tagName)
getTag(String)
insteadtagName
- QueryNode getParent()
QueryNode cloneTree() throws CloneNotSupportedException
CloneNotSupportedException
void add(QueryNode child)
void setTag(String tagName, Object value)
tagName
- value
- @Deprecated void setTag(CharSequence tagName, Object value)
setTag(String, Object)
insteadtagName
- value
- void unsetTag(String tagName)
tagName
- @Deprecated void unsetTag(CharSequence tagName)
unsetTag(String)
insteadtagName
- @Deprecated Map<CharSequence,Object> getTags()
getTagMap()