Class ExtensibleNode

All Implemented Interfaces:
Cloneable, ExprNode

public class ExtensibleNode extends LeafNode
Filter expression tree node for extensible assertions.
Author:
Apache Directory Project
  • Field Details

    • bytes

      protected byte[] bytes
      The value as a byte[]
  • Constructor Details

    • ExtensibleNode

      public ExtensibleNode(AttributeType attributeType)
      Creates a new emptyExtensibleNode object.
      Parameters:
      attributeType - the attributeType associated with this node
    • ExtensibleNode

      public ExtensibleNode(String attribute)
      Creates a new emptyExtensibleNode object.
      Parameters:
      attribute - the attribute associated with this node
    • ExtensibleNode

      public ExtensibleNode(AttributeType attributeType, Value value, String matchingRuleId, boolean dnAttributes)
      Creates a new ExtensibleNode object.
      Parameters:
      attributeType - the attributeType 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(String attribute, Value value, 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 Details

    • clone

      public ExprNode clone()
      Makes a full clone in new memory space of the current node and children
      Specified by:
      clone in interface ExprNode
      Overrides:
      clone in class AbstractExprNode
      Returns:
      the clone
    • 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 String getMatchingRuleId()
      Gets the matching rule id as an OID string.
      Returns:
      the OID
    • setMatchingRuleId

      public void setMatchingRuleId(String matchingRuleId)
      Sets the matching rule id as an OID string.
      Parameters:
      matchingRuleId - The maching rule ID
    • getValue

      public final Value getValue()
      Gets the value.
      Returns:
      the value
    • getEscapedValue

      public String getEscapedValue()
      Returns:
      representation of value, escaped for use in a filter if required
    • setValue

      public final void setValue(Value value)
      Sets the value.
      Parameters:
      value - the value
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class LeafNode
      Returns:
      true if both objects are equal
      See Also:
    • hashCode

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

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