|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.filter.AbstractExprNode
org.apache.directory.api.ldap.model.filter.LeafNode
org.apache.directory.api.ldap.model.filter.SimpleNode<T>
public abstract class SimpleNode<T>
A simple assertion value node.
| Field Summary | |
|---|---|
static boolean |
EVAL_GREATER
Constants for comparisons : > |
static boolean |
EVAL_LESSER
Constants for comparisons : < |
protected Value<T> |
value
the value |
| 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, isSchemaAware |
| Constructor Summary | |
|---|---|
protected |
SimpleNode(AttributeType attributeType,
Value<T> value,
AssertionType assertionType)
Creates a new SimpleNode object. |
protected |
SimpleNode(String attribute,
Value<T> value,
AssertionType assertionType)
Creates a new SimpleNode object. |
| Method Summary | |
|---|---|
ExprNode |
clone()
Makes a full clone in new memory space of the current node and children |
boolean |
equals(Object other)
|
Value<?> |
getEscapedValue()
|
Value<T> |
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<T> value)
Sets the value of this node. |
| Methods inherited from class org.apache.directory.api.ldap.model.filter.LeafNode |
|---|
accept, getAttribute, getAttributeType, isLeaf, setAttribute, setAttributeType |
| Methods inherited from class org.apache.directory.api.ldap.model.filter.AbstractExprNode |
|---|
escapeFilterValue, get, getAnnotations, getAssertionType, isSchemaAware, set, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Value<T> value
public static final boolean EVAL_GREATER
public static final boolean EVAL_LESSER
| Constructor Detail |
|---|
protected SimpleNode(String attribute,
Value<T> value,
AssertionType assertionType)
attribute - the attribute namevalue - the value to test forassertionType - the type of assertion represented by this ExprNode
protected SimpleNode(AttributeType attributeType,
Value<T> value,
AssertionType assertionType)
attribute - the attribute namevalue - the value to test forassertionType - the type of assertion represented by this ExprNode| Method Detail |
|---|
public ExprNode clone()
clone in interface ExprNodeclone in class AbstractExprNodepublic final Value<T> getValue()
public Value<?> getEscapedValue()
public void setValue(Value<T> value)
value - the value for this nodepublic StringBuilder printToBuffer(StringBuilder buf)
buf - the buffer to print into
public StringBuilder printRefinementToBuffer(StringBuilder buf)
AbstractExprNode
printRefinementToBuffer in interface ExprNodeprintRefinementToBuffer in class AbstractExprNodebuf - the buffer to append to.
UnsupportedOperationException - if this node isn't a part of a refinement.ExprNode.printRefinementToBuffer(StringBuilder)public int hashCode()
hashCode in class LeafNodeObject.hashCode()public boolean equals(Object other)
equals in class LeafNodetrue if both objects are equalObject.equals(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||