public abstract class QueryNodeImpl extends java.lang.Object implements QueryNode, java.lang.Cloneable
QueryNodeImpl is the default implementation of the interface
QueryNode| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PLAINTEXT_FIELD_NAME |
protected boolean |
toQueryStringIgnoreFields
If set to true the the method toQueryString will not write field names
|
| Constructor and Description |
|---|
QueryNodeImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.util.List<QueryNode> children) |
void |
add(QueryNode child) |
protected void |
allocate() |
java.lang.Object |
clone() |
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.CharSequence tagName)
Deprecated.
use
containsTag(String) instead |
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.CharSequence tagName)
Deprecated.
use
getTag(String) instead |
java.lang.Object |
getTag(java.lang.String tagName) |
java.util.Map<java.lang.String,java.lang.Object> |
getTagMap()
Returns a map containing all tags attached to this query node.
|
java.util.Map<java.lang.CharSequence,java.lang.Object> |
getTags()
Deprecated.
use
getTagMap() instead |
protected boolean |
isDefaultField(java.lang.CharSequence fld)
This method is use toQueryString to detect if fld is the default field
|
boolean |
isLeaf()
verify if a node is a Leaf node
|
protected boolean |
isRoot() |
void |
set(java.util.List<QueryNode> children) |
protected void |
setLeaf(boolean isLeaf) |
void |
setTag(java.lang.CharSequence tagName,
java.lang.Object value)
Deprecated.
use
setTag(String, Object) instead |
void |
setTag(java.lang.String tagName,
java.lang.Object value)
Associate the specified value with the specified tagName.
|
java.lang.String |
toString()
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode:
|
void |
unsetTag(java.lang.CharSequence tagName)
Deprecated.
use
unsetTag(String) |
void |
unsetTag(java.lang.String tagName)
Unset a tag.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoQueryStringpublic static final java.lang.String PLAINTEXT_FIELD_NAME
protected boolean toQueryStringIgnoreFields
protected void allocate()
public final void add(java.util.List<QueryNode> children)
public boolean isLeaf()
QueryNodepublic final void set(java.util.List<QueryNode> children)
public QueryNode cloneTree() throws java.lang.CloneNotSupportedException
QueryNodepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionprotected void setLeaf(boolean isLeaf)
public final java.util.List<QueryNode> getChildren()
QueryNodegetChildren in interface QueryNode@Deprecated
public void setTag(java.lang.CharSequence tagName,
java.lang.Object value)
setTag(String, Object) insteadQueryNodepublic void setTag(java.lang.String tagName,
java.lang.Object value)
QueryNodepublic void unsetTag(java.lang.String tagName)
QueryNode@Deprecated public void unsetTag(java.lang.CharSequence tagName)
unsetTag(String)QueryNode@Deprecated public boolean containsTag(java.lang.CharSequence tagName)
containsTag(String) insteadcontainsTag in interface QueryNodepublic boolean containsTag(java.lang.String tagName)
containsTag in interface QueryNode@Deprecated public java.lang.Object getTag(java.lang.CharSequence tagName)
getTag(String) insteadpublic java.lang.Object getTag(java.lang.String tagName)
protected boolean isRoot()
protected boolean isDefaultField(java.lang.CharSequence fld)
fld - - field namepublic java.lang.String toString()
toString in interface QueryNodetoString in class java.lang.ObjectQueryNode.toString()@Deprecated public java.util.Map<java.lang.CharSequence,java.lang.Object> getTags()
getTagMap() insteadQueryNodegetTags in interface QueryNodeQueryNode.getTag(String)Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.