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, toString
protected LeafNode(String attribute, AssertionType assertionType)
attribute
- the attribute this node is based onassertionType
- the type of this leaf nodepublic ExprNode clone()
clone
in interface ExprNode
clone
in class AbstractExprNode
public final boolean isLeaf()
isLeaf
in interface ExprNode
isLeaf
in class AbstractExprNode
public final String getAttribute()
public void setAttribute(String attribute)
attribute
- the attribute that is asserted by this filter nodepublic final Object accept(FilterVisitor visitor)
ExprNode
visitor
- the filter expression tree structure visitorExprNode.accept(
org.apache.directory.shared.ldap.filter.FilterVisitor)
public int hashCode()
hashCode
in class AbstractExprNode
Object.hashCode()
public boolean equals(Object other)
equals
in class AbstractExprNode
true
if both objects are equalObject.equals(Object)
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.