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
Filter expression tree node for extensible assertions.
- Author:
- Apache Directory Project
-
Field Summary
FieldsFields inherited from class LeafNode
attribute, attributeTypeFields inherited from class AbstractExprNode
annotations, assertionType -
Constructor Summary
ConstructorsConstructorDescriptionExtensibleNode(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
Modifier and TypeMethodDescriptionclone()Makes a full clone in new memory space of the current node and childrenbooleanGets the matching rule id as an OID string.final ValuegetValue()Gets the value.booleanGets the Dn attributes.inthashCode()voidsetDnAttributes(boolean dnAttributes) Set the dnAttributes flagvoidsetMatchingRuleId(String matchingRuleId) Sets the matching rule id as an OID string.final voidSets the value.toString()Methods inherited from class LeafNode
accept, escapeFilterValue, escapeFilterValue, getAttribute, getAttributeType, isLeaf, isSchemaAware, setAttribute, setAttributeTypeMethods inherited from class AbstractExprNode
get, getAnnotations, getAssertionType, printRefinementToBuffer, set
-
Field Details
-
bytes
protected byte[] bytesThe value as a byte[]
-
-
Constructor Details
-
ExtensibleNode
Creates a new emptyExtensibleNode object.- Parameters:
attributeType- the attributeType associated with this node
-
ExtensibleNode
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
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 Details
-
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
-
setMatchingRuleId
Sets the matching rule id as an OID string.- Parameters:
matchingRuleId- The maching rule ID
-
getValue
-
getEscapedValue
- Returns:
- representation of value, escaped for use in a filter if required
-
setValue
-
equals
-
hashCode
-
toString
- Overrides:
toStringin classAbstractExprNode- Returns:
- A string representing the AndNode
- See Also:
-