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

java.lang.Object
  extended by org.apache.directory.shared.ldap.filter.AbstractExprNode
      extended by org.apache.directory.shared.ldap.filter.LeafNode
          extended by org.apache.directory.shared.ldap.filter.ExtensibleNode
All Implemented Interfaces:
ExprNode

public class ExtensibleNode
extends LeafNode

Filter expression tree node for extensible assertions.

Version:
$Revision: 664290 $
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode
annotations, assertionType
 
Constructor Summary
ExtensibleNode(java.lang.String attribute)
          Creates a new emptyExtensibleNode object.
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
 java.lang.String getMatchingRuleId()
          Gets the matching rule id as an OID string.
 byte[] getValue()
          Gets the value.
 boolean hasDnAttributes()
          Gets the Dn attributes.
 int hashCode()
           
 void setDnAttributes(boolean dnAttributes)
          Set the dnAttributes flag
 void setMatchingRuleId(java.lang.String matchingRuleId)
          Sets the matching rule id as an OID string.
 void setValue(java.lang.String value)
          Sets the value.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.directory.shared.ldap.filter.LeafNode
accept, equals, getAttribute, isLeaf, setAttribute
 
Methods inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode
get, getAnnotations, getAssertionType, printRefinementToBuffer, set
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtensibleNode

public ExtensibleNode(java.lang.String attribute)
Creates a new emptyExtensibleNode object.

Parameters:
attribute - the attribute associated with this node

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

hasDnAttributes

public boolean hasDnAttributes()
Gets the Dn attributes.

Returns:
the dn attributes

setDnAttributes

public void setDnAttributes(boolean dnAttributes)
Set the dnAttributes flag

Parameters:
dnAttributes - The flag to set

getMatchingRuleId

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

Returns:
the OID

setMatchingRuleId

public void setMatchingRuleId(java.lang.String matchingRuleId)
Sets the matching rule id as an OID string.

Parameters:
matchingRuleId - The maching rule ID

getValue

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

Returns:
the value

setValue

public final void setValue(java.lang.String value)
Sets the value.

Parameters:
value - the value

hashCode

public int hashCode()
Overrides:
hashCode in class LeafNode
Returns:
the instance's hash code
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class AbstractExprNode
Returns:
A string representing the AndNode
See Also:
Object.toString()


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.