Class ExtensibleNode
- java.lang.Object
-
- org.apache.directory.api.ldap.model.filter.AbstractExprNode
-
- org.apache.directory.api.ldap.model.filter.LeafNode
-
- org.apache.directory.api.ldap.model.filter.ExtensibleNode
-
public class ExtensibleNode extends LeafNode
Filter expression tree node for extensible assertions.- Author:
- Apache Directory Project
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]bytesThe value as a byte[]-
Fields inherited from class org.apache.directory.api.ldap.model.filter.LeafNode
attribute, attributeType
-
Fields inherited from class org.apache.directory.api.ldap.model.filter.AbstractExprNode
annotations, assertionType
-
-
Constructor Summary
Constructors Constructor Description ExtensibleNode(String attribute)Creates a new emptyExtensibleNode object.ExtensibleNode(String attribute, Value value, String matchingRuleId, boolean dnAttributes)Creates a new ExtensibleNode object.ExtensibleNode(AttributeType attributeType)Creates a new emptyExtensibleNode object.ExtensibleNode(AttributeType attributeType, Value value, String matchingRuleId, boolean dnAttributes)Creates a new ExtensibleNode object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExprNodeclone()Makes a full clone in new memory space of the current node and childrenbooleanequals(Object obj)StringgetEscapedValue()StringgetMatchingRuleId()Gets the matching rule id as an OID string.ValuegetValue()Gets the value.booleanhasDnAttributes()Gets the Dn attributes.inthashCode()voidsetDnAttributes(boolean dnAttributes)Set the dnAttributes flagvoidsetMatchingRuleId(String matchingRuleId)Sets the matching rule id as an OID string.voidsetValue(Value value)Sets the value.StringtoString()-
Methods inherited from class org.apache.directory.api.ldap.model.filter.LeafNode
accept, escapeFilterValue, escapeFilterValue, getAttribute, getAttributeType, isLeaf, isSchemaAware, setAttribute, setAttributeType
-
Methods inherited from class org.apache.directory.api.ldap.model.filter.AbstractExprNode
get, getAnnotations, getAssertionType, printRefinementToBuffer, set
-
-
-
-
Constructor Detail
-
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 assertionvalue- the value to match formatchingRuleId- the OID of the matching rulednAttributes- 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 assertionvalue- the value to match formatchingRuleId- the OID of the matching rulednAttributes- the dn attributes
-
-
Method Detail
-
clone
public ExprNode clone()
Makes a full clone in new memory space of the current node and children- Specified by:
clonein interfaceExprNode- Overrides:
clonein classAbstractExprNode- 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:
equalsin classLeafNode- Returns:
trueif both objects are equal- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classLeafNode- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
toString
public String toString()
- Overrides:
toStringin classAbstractExprNode- Returns:
- A string representing the AndNode
- See Also:
Object.toString()
-
-