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

java.lang.Object
  extended byorg.apache.directory.shared.ldap.filter.AbstractExprNode
      extended byorg.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: 379008 $
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 a_attribute, int a_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.
 
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 a_attribute,
                   int a_type)
Creates a leaf node.

Parameters:
a_attribute - the attribute this node is based on
a_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

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class AbstractExprNode


Copyright © 2003-2006 . All Rights Reserved.