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
-
-
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 ExprNode
clone()
Makes a full clone in new memory space of the current node and childrenboolean
equals(Object obj)
String
getEscapedValue()
String
getMatchingRuleId()
Gets the matching rule id as an OID string.Value
getValue()
Gets the value.boolean
hasDnAttributes()
Gets the Dn attributes.int
hashCode()
void
setDnAttributes(boolean dnAttributes)
Set the dnAttributes flagvoid
setMatchingRuleId(String matchingRuleId)
Sets the matching rule id as an OID string.void
setValue(Value value)
Sets the value.String
toString()
-
Methods inherited from class org.apache.directory.api.ldap.model.filter.LeafNode
accept, getAttribute, getAttributeType, isLeaf, isSchemaAware, setAttribute, setAttributeType
-
Methods inherited from class org.apache.directory.api.ldap.model.filter.AbstractExprNode
get, 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:
clone
in interfaceExprNode
- Overrides:
clone
in 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
-
getEscapedValue
public String getEscapedValue()
- Returns:
- representation of value, escaped for use in a filter if required
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classLeafNode
- Returns:
true
if both objects are equal- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classLeafNode
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
toString
public String toString()
- Overrides:
toString
in classAbstractExprNode
- Returns:
- A string representing the AndNode
- See Also:
Object.toString()
-
-