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

java.lang.Object
  extended byorg.apache.directory.shared.ldap.filter.AbstractExprNode
      extended byorg.apache.directory.shared.ldap.filter.LeafNode
          extended byorg.apache.directory.shared.ldap.filter.SimpleNode
All Implemented Interfaces:
ExprNode

public class SimpleNode
extends LeafNode

A simple assertion value node.

Version:
$Revision: 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
SimpleNode(java.lang.String attribute, byte[] value, int type)
          Creates a new SimpleNode object.
SimpleNode(java.lang.String attribute, java.lang.String value, int type)
          Creates a new SimpleNode object.
 
Method Summary
 void accept(FilterVisitor visitor)
          Element/node accept method for visitor pattern.
 boolean equals(java.lang.Object other)
           
 java.lang.String getValue()
          Gets the value.
 java.lang.StringBuffer printToBuffer(java.lang.StringBuffer buf)
          Recursively appends this String representation of this node and its descendents in prefix notation to a buffer.
 void setValue(java.lang.String value)
          Sets the value of this node.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.directory.shared.ldap.filter.LeafNode
getAttribute, isLeaf
 
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, wait, wait, wait
 

Constructor Detail

SimpleNode

public SimpleNode(java.lang.String attribute,
                  byte[] value,
                  int type)
Creates a new SimpleNode object.

Parameters:
attribute - the attribute name
value - the value to test for
type - the type of the assertion

SimpleNode

public SimpleNode(java.lang.String attribute,
                  java.lang.String value,
                  int type)
Creates a new SimpleNode object.

Parameters:
attribute - the attribute name
value - the value to test for
type - the type of the assertion
Method Detail

getValue

public final java.lang.String getValue()
Gets the value.

Returns:
the value

setValue

public void setValue(java.lang.String value)
Sets the value of this node.

Parameters:
value - the value for this node

printToBuffer

public java.lang.StringBuffer printToBuffer(java.lang.StringBuffer buf)
Description copied from interface: ExprNode
Recursively appends this String representation of this node and its descendents in prefix notation to a buffer.

Parameters:
buf - the buffer to append to.
See Also:
ExprNode.printToBuffer( java.lang.StringBuffer)

toString

public java.lang.String toString()
See Also:
Object.toString()

accept

public void accept(FilterVisitor visitor)
Description copied from interface: ExprNode
Element/node accept method for visitor pattern.

Parameters:
visitor - the filter expression tree structure visitor
See Also:
ExprNode.accept( org.apache.directory.shared.ldap.filter.FilterVisitor)

equals

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


Copyright © 2003-2006 . All Rights Reserved.