|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.filter.AbstractExprNode
org.apache.directory.shared.ldap.filter.LeafNode
public class LeafNode
Abstract base class for leaf nodes within the expression filter tree.
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
---|
annotations, assertionType |
Constructor Summary | |
---|---|
protected |
LeafNode(java.lang.String attribute,
AssertionType assertionType)
Creates a leaf node. |
Method Summary | |
---|---|
java.lang.Object |
accept(FilterVisitor visitor)
Element/node accept method for visitor pattern. |
ExprNode |
clone()
Makes a full clone in new memory space of the current node and children |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getAttribute()
Gets the attribute this leaf node is based on. |
int |
hashCode()
|
boolean |
isLeaf()
Gets whether this node is a leaf - the answer is always true here. |
void |
setAttribute(java.lang.String attribute)
Sets the attribute this leaf node is based on. |
Methods inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
---|
escapeFilterValue, get, getAnnotations, getAssertionType, printRefinementToBuffer, set, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected LeafNode(java.lang.String attribute, AssertionType assertionType)
attribute
- the attribute this node is based onassertionType
- the type of this leaf nodeMethod Detail |
---|
public ExprNode clone()
clone
in interface ExprNode
clone
in class AbstractExprNode
public final boolean isLeaf()
isLeaf
in interface ExprNode
isLeaf
in class AbstractExprNode
public final java.lang.String getAttribute()
public void setAttribute(java.lang.String attribute)
attribute
- the attribute that is asserted by this filter nodepublic final java.lang.Object accept(FilterVisitor visitor)
ExprNode
visitor
- the filter expression tree structure visitor
ExprNode.accept(
org.apache.directory.shared.ldap.filter.FilterVisitor)
public int hashCode()
hashCode
in class AbstractExprNode
Object.hashCode()
public boolean equals(java.lang.Object other)
equals
in class AbstractExprNode
true
if both objects are equalObject.equals(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |