org.apache.directory.shared.ldap.filter
Class LeafNode
java.lang.Object
org.apache.directory.shared.ldap.filter.AbstractExprNode
org.apache.directory.shared.ldap.filter.LeafNode
- All Implemented Interfaces:
- ExprNode
- Direct Known Subclasses:
- ExtensibleNode, PresenceNode, SimpleNode, SubstringNode
public abstract class LeafNode
- extends AbstractExprNode
Abstract base class for leaf nodes within the expression filter tree.
- Version:
- $Rev: 434411 $
- Author:
- Apache Directory Project
Fields inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
AND, APPROXIMATE, ASSERTION, EQUALITY, EXTENSIBLE, GREATEREQ, LESSEQ, NOT, OR, PRESENCE, SCOPE, SUBSTRING |
Constructor Summary |
protected |
LeafNode(java.lang.String attribute,
int type)
Creates a leaf node. |
Method Summary |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getAttribute()
Gets the attribute this leaf node is based on. |
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 java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LeafNode
protected LeafNode(java.lang.String attribute,
int type)
- Creates a leaf node.
- Parameters:
attribute
- the attribute this node is based ontype
- the type of this leaf node
isLeaf
public final boolean isLeaf()
- Gets whether this node is a leaf - the answer is always true here.
- Returns:
- true always
getAttribute
public final java.lang.String getAttribute()
- Gets the attribute this leaf node is based on.
- Returns:
- the attribute asserted
setAttribute
public void setAttribute(java.lang.String attribute)
- Sets the attribute this leaf node is based on.
- Parameters:
attribute
- the attribute that is asserted by this filter node
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class AbstractExprNode
Copyright © 2004-2011. All Rights Reserved.