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

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.ExtensibleNode
All Implemented Interfaces:
ExprNode

public class ExtensibleNode
extends LeafNode

Filter expression tree node for extensible assertions.

Version:
$Revision: 379008 $
Author:
Alex Karasulu, $author$

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
ExtensibleNode(java.lang.String attribute, byte[] value, java.lang.String matchingRuleId, boolean dnAttributes)
          Creates a new ExtensibleNode object.
ExtensibleNode(java.lang.String attribute, java.lang.String value, java.lang.String matchingRuleId, boolean dnAttributes)
          Creates a new ExtensibleNode object.
 
Method Summary
 void accept(FilterVisitor visitor)
          Element/node accept method for visitor pattern.
 boolean dnAttributes()
          Gets the Dn attributes.
 java.lang.String getMatchingRuleId()
          Gets the matching rule id as an OID string.
 byte[] 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.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.directory.shared.ldap.filter.LeafNode
equals, 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

ExtensibleNode

public ExtensibleNode(java.lang.String attribute,
                      java.lang.String value,
                      java.lang.String matchingRuleId,
                      boolean dnAttributes)
Creates a new ExtensibleNode object.

Parameters:
attribute - the attribute used for the extensible assertion
value - the value to match for
matchingRuleId - the OID of the matching rule
dnAttributes - the dn attributes

ExtensibleNode

public ExtensibleNode(java.lang.String attribute,
                      byte[] value,
                      java.lang.String matchingRuleId,
                      boolean dnAttributes)
Creates a new ExtensibleNode object.

Parameters:
attribute - the attribute used for the extensible assertion
value - the value to match for
matchingRuleId - the OID of the matching rule
dnAttributes - the dn attributes
Method Detail

dnAttributes

public boolean dnAttributes()
Gets the Dn attributes.

Returns:
the dn attributes

getMatchingRuleId

public java.lang.String getMatchingRuleId()
Gets the matching rule id as an OID string.

Returns:
the OID

getValue

public final byte[] getValue()
Gets the value.

Returns:
the value

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)


Copyright © 2003-2006 . All Rights Reserved.