|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.filter.AbstractExprNode
org.apache.directory.api.ldap.model.filter.LeafNode
public class LeafNode
Abstract base class for leaf nodes within the expression filter tree.
| Field Summary | |
|---|---|
protected String |
attribute
attribute on which this leaf is based |
protected AttributeType |
attributeType
attributeType on which this leaf is based |
| Fields inherited from class org.apache.directory.api.ldap.model.filter.AbstractExprNode |
|---|
annotations, assertionType, isSchemaAware |
| Constructor Summary | |
|---|---|
protected |
LeafNode(AttributeType attributeType,
AssertionType assertionType)
Creates a leaf node. |
protected |
LeafNode(String attribute,
AssertionType assertionType)
Creates a leaf node. |
| Method Summary | |
|---|---|
Object |
accept(FilterVisitor visitor)
Element/node accept method for visitor pattern. |
boolean |
equals(Object other)
|
String |
getAttribute()
Gets the attribute this leaf node is based on. |
AttributeType |
getAttributeType()
Gets the attributeType 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. |
void |
setAttributeType(AttributeType attributeType)
Sets the attributeType this leaf node is based on. |
| Methods inherited from class org.apache.directory.api.ldap.model.filter.AbstractExprNode |
|---|
clone, escapeFilterValue, get, getAnnotations, getAssertionType, isSchemaAware, printRefinementToBuffer, set, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AttributeType attributeType
protected String attribute
| Constructor Detail |
|---|
protected LeafNode(AttributeType attributeType,
AssertionType assertionType)
attributeType - the attribute this node is based onassertionType - the type of this leaf node
protected LeafNode(String attribute,
AssertionType assertionType)
attributeType - the attribute this node is based onassertionType - the type of this leaf node| Method Detail |
|---|
public final boolean isLeaf()
public final AttributeType getAttributeType()
public final String getAttribute()
public void setAttributeType(AttributeType attributeType)
attributeType - the attributeType that is asserted by this filter nodepublic 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 visitor
ExprNode.accept(
FilterVisitor)public int hashCode()
hashCode in class AbstractExprNodeObject.hashCode()public boolean equals(Object other)
equals in class AbstractExprNodetrue if both objects are equalObject.equals(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||