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

java.lang.Object
  extended byorg.apache.directory.shared.ldap.filter.AbstractExprNode
All Implemented Interfaces:
ExprNode
Direct Known Subclasses:
AssertionNode, BranchNode, LeafNode, ScopeNode

public abstract class AbstractExprNode
extends java.lang.Object
implements ExprNode

Abstract implementation of a expression node.

Version:
$Rev: 379008 $
Author:
Apache Directory Project

Field Summary
static int AND
          AND operator constant
static int APPROXIMATE
          approximate assertion node
static int ASSERTION
          Predicate assertion node
static int EQUALITY
          equality assertion node
static int EXTENSIBLE
          extensible match assertion node
static int GREATEREQ
          greater than or equal to assertion node
static int LESSEQ
          less than or equal to assertion node
static int NOT
          NOT operator constant
static int OR
          OR operator constant
static int PRESENCE
          presence assertion node
static int SCOPE
          scope assertion node
static int SUBSTRING
          substring match assertion node
 
Constructor Summary
protected AbstractExprNode(int a_type)
          Creates an node by setting abstract node type.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.Object get(java.lang.Object a_key)
          Gets an annotation on the tree by key.
protected  java.util.Map getAnnotations()
          Gets the annotations as a Map.
 int getAssertionType()
          Gets the assertion type of this leaf node.
static java.lang.String getOperationString(int a_assertionType)
          Returns the filter operator string associated with an assertion type.
 void set(java.lang.Object a_key, java.lang.Object a_value)
          Sets a annotation key to a value.
 
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, isLeaf, printToBuffer
 

Field Detail

EQUALITY

public static final int EQUALITY
equality assertion node

See Also:
Constant Field Values

PRESENCE

public static final int PRESENCE
presence assertion node

See Also:
Constant Field Values

SUBSTRING

public static final int SUBSTRING
substring match assertion node

See Also:
Constant Field Values

GREATEREQ

public static final int GREATEREQ
greater than or equal to assertion node

See Also:
Constant Field Values

LESSEQ

public static final int LESSEQ
less than or equal to assertion node

See Also:
Constant Field Values

APPROXIMATE

public static final int APPROXIMATE
approximate assertion node

See Also:
Constant Field Values

EXTENSIBLE

public static final int EXTENSIBLE
extensible match assertion node

See Also:
Constant Field Values

SCOPE

public static final int SCOPE
scope assertion node

See Also:
Constant Field Values

ASSERTION

public static final int ASSERTION
Predicate assertion node

See Also:
Constant Field Values

OR

public static final int OR
OR operator constant

See Also:
Constant Field Values

AND

public static final int AND
AND operator constant

See Also:
Constant Field Values

NOT

public static final int NOT
NOT operator constant

See Also:
Constant Field Values
Constructor Detail

AbstractExprNode

protected AbstractExprNode(int a_type)
Creates an node by setting abstract node type.

Parameters:
a_type - the type of this leaf node
Method Detail

get

public java.lang.Object get(java.lang.Object a_key)
Description copied from interface: ExprNode
Gets an annotation on the tree by key.

Specified by:
get in interface ExprNode
Parameters:
a_key - the annotation key.
Returns:
the annotation value.
See Also:
ExprNode.get(java.lang.Object)

set

public void set(java.lang.Object a_key,
                java.lang.Object a_value)
Description copied from interface: ExprNode
Sets a annotation key to a value.

Specified by:
set in interface ExprNode
Parameters:
a_key - the annotation key.
a_value - the annotation value.
See Also:
ExprNode.set(java.lang.Object, java.lang.Object)

getAnnotations

protected java.util.Map getAnnotations()
Gets the annotations as a Map.

Returns:
the annotation map.

getAssertionType

public final int getAssertionType()
Gets the assertion type of this leaf node.

Returns:
the assertion or node type

getOperationString

public static final java.lang.String getOperationString(int a_assertionType)
Returns the filter operator string associated with an assertion type.

Parameters:
a_assertionType - the assertion type value
Returns:
the string representation

equals

public boolean equals(java.lang.Object other)


Copyright © 2003-2006 . All Rights Reserved.