Class SimpleNode<T>
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.SimpleNode<T>
- Type Parameters:
T- The Value type
- Direct Known Subclasses:
ApproximateNode, EqualityNode, GreaterEqNode, LessEqNode
A simple assertion value node.
- Author:
- Apache Directory Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]The value as a byte[]static final booleanConstants for comparisons : @gt;static final booleanConstants for comparisons : <protected Valuethe valueFields inherited from class LeafNode
attribute, attributeTypeFields inherited from class AbstractExprNode
annotations, assertionType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSimpleNode(String attribute, byte[] bytes, AssertionType assertionType) Creates a new SimpleNode object.protectedSimpleNode(String attribute, String string, AssertionType assertionType) Creates a new SimpleNode object.protectedSimpleNode(AttributeType attributeType, byte[] bytes, AssertionType assertionType) Creates a new SimpleNode object.protectedSimpleNode(AttributeType attributeType, Value value, AssertionType assertionType) Creates a new SimpleNode object. -
Method Summary
Modifier and TypeMethodDescriptionclone()Makes a full clone in new memory space of the current node and childrenbooleanfinal ValuegetValue()Gets the value.inthashCode()Default implementation for this method : just throw an exception.Pretty prints this expression node along with annotation information.voidSets the value of this node.Methods inherited from class LeafNode
accept, escapeFilterValue, escapeFilterValue, getAttribute, getAttributeType, isLeaf, isSchemaAware, setAttribute, setAttributeTypeMethods inherited from class AbstractExprNode
get, getAnnotations, getAssertionType, set, toString
-
Field Details
-
value
the value -
bytes
protected byte[] bytesThe value as a byte[] -
EVAL_GREATER
public static final boolean EVAL_GREATERConstants for comparisons : @gt;- See Also:
-
EVAL_LESSER
public static final boolean EVAL_LESSERConstants for comparisons : <- See Also:
-
-
Constructor Details
-
SimpleNode
Creates a new SimpleNode object.- Parameters:
attribute- the attribute namebytes- the data to injectassertionType- the type of assertion represented by this ExprNode
-
SimpleNode
Creates a new SimpleNode object.- Parameters:
attributeType- the attribute namebytes- the data to injectassertionType- the type of assertion represented by this ExprNode
-
SimpleNode
Creates a new SimpleNode object.- Parameters:
attribute- the attribute namestring- the value to injectassertionType- the type of assertion represented by this ExprNode
-
SimpleNode
Creates a new SimpleNode object.- Parameters:
attributeType- the attribute namevalue- the value to test forassertionType- the type of assertion represented by this ExprNode
-
-
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 cloned expression node
-
getValue
-
getEscapedValue
- Returns:
- representation of value, escaped for use in a filter if required
-
setValue
Sets the value of this node.- Parameters:
value- the value for this node
-
printToBuffer
Pretty prints this expression node along with annotation information.- Parameters:
buf- the buffer to print into- Returns:
- the same buf argument returned for call chaining
-
printRefinementToBuffer
Description copied from class:AbstractExprNodeDefault implementation for this method : just throw an exception.- Specified by:
printRefinementToBufferin interfaceExprNode- Overrides:
printRefinementToBufferin classAbstractExprNode- Parameters:
buf- the buffer to append to.- Returns:
- The buffer in which the refinement has been appended
- Throws:
UnsupportedOperationException- if this node isn't a part of a refinement.- See Also:
-
hashCode
-
equals
-