org.apache.directory.shared.ldap.filter
Class LeafNode

java.lang.Object
  extended by org.apache.directory.shared.ldap.filter.AbstractExprNode
      extended by 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

Field Summary
 
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 org.apache.directory.shared.ldap.filter.AbstractExprNode
get, getAnnotations, getAssertionType, getOperationString, set
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.filter.ExprNode
accept, printToBuffer
 

Constructor Detail

LeafNode

protected LeafNode(java.lang.String attribute,
                   int type)
Creates a leaf node.

Parameters:
attribute - the attribute this node is based on
type - the type of this leaf node
Method Detail

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-2009. All Rights Reserved.