public class LeafNode extends AbstractExprNode
annotations, assertionType| Modifier | Constructor and Description |
|---|---|
protected |
LeafNode(String attribute,
AssertionType assertionType)
Creates a leaf node.
|
| Modifier and Type | Method and Description |
|---|---|
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(Object other) |
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(String attribute)
Sets the attribute this leaf node is based on.
|
escapeFilterValue, get, getAnnotations, getAssertionType, printRefinementToBuffer, set, toStringprotected LeafNode(String attribute, AssertionType assertionType)
attribute - the attribute this node is based onassertionType - the type of this leaf nodepublic ExprNode clone()
clone in interface ExprNodeclone in class AbstractExprNodepublic final boolean isLeaf()
isLeaf in interface ExprNodeisLeaf in class AbstractExprNodepublic final String getAttribute()
public void setAttribute(String attribute)
attribute - the attribute that is asserted by this filter nodepublic final Object accept(FilterVisitor visitor)
ExprNodevisitor - the filter expression tree structure visitorExprNode.accept(
org.apache.directory.shared.ldap.filter.FilterVisitor)public int hashCode()
hashCode in class AbstractExprNodeObject.hashCode()public boolean equals(Object other)
equals in class AbstractExprNodetrue if both objects are equalObject.equals(Object)Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.