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
public abstract class SimpleNode<T> extends LeafNode
A simple assertion value node.- Author:
- Apache Directory Project
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
EVAL_GREATER
Constants for comparisons : @gt;static boolean
EVAL_LESSER
Constants for comparisons : <
-
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 other)
String
getEscapedValue()
Value
getValue()
Gets the value.int
hashCode()
StringBuilder
printRefinementToBuffer(StringBuilder buf)
Default implementation for this method : just throw an exception.StringBuilder
printToBuffer(StringBuilder buf)
Pretty prints this expression node along with annotation information.void
setValue(Value value)
Sets the value of this node.-
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, set, toString
-
-
-
-
Field Detail
-
EVAL_GREATER
public static final boolean EVAL_GREATER
Constants for comparisons : @gt;- See Also:
- Constant Field Values
-
EVAL_LESSER
public static final boolean EVAL_LESSER
Constants for comparisons : <- See Also:
- Constant Field Values
-
-
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 cloned expression node
-
getEscapedValue
public String getEscapedValue()
- Returns:
- representation of value, escaped for use in a filter if required
-
setValue
public void setValue(Value value)
Sets the value of this node.- Parameters:
value
- the value for this node
-
printToBuffer
public StringBuilder printToBuffer(StringBuilder buf)
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
public StringBuilder printRefinementToBuffer(StringBuilder buf)
Description copied from class:AbstractExprNode
Default implementation for this method : just throw an exception.- Specified by:
printRefinementToBuffer
in interfaceExprNode
- Overrides:
printRefinementToBuffer
in 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:
ExprNode.printRefinementToBuffer(StringBuilder)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classLeafNode
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object other)
- Overrides:
equals
in classLeafNode
- Returns:
true
if both objects are equal- See Also:
Object.equals(java.lang.Object)
-
-