|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.filter.AbstractExprNode
org.apache.directory.shared.ldap.filter.LeafNode
org.apache.directory.shared.ldap.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.shared.ldap.filter.AbstractExprNode |
|---|
annotations, assertionType |
| Constructor Summary | |
|---|---|
protected |
SimpleNode(java.lang.String attribute,
Value<T> value,
AssertionType assertionType)
Creates a new SimpleNode object. |
| Method Summary | |
|---|---|
ExprNode |
clone()
Clone the Node |
boolean |
equals(java.lang.Object other)
|
Value<?> |
getEscapedValue()
|
Value<T> |
getValue()
Gets the value. |
int |
hashCode()
|
java.lang.StringBuilder |
printRefinementToBuffer(java.lang.StringBuilder buf)
Default implementation for this method : just throw an exception. |
java.lang.StringBuilder |
printToBuffer(java.lang.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.shared.ldap.filter.LeafNode |
|---|
accept, getAttribute, isLeaf, setAttribute |
| Methods inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
|---|
escapeFilterValue, get, getAnnotations, getAssertionType, 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(java.lang.String attribute,
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 LeafNodepublic final Value<T> getValue()
public Value<?> getEscapedValue()
public void setValue(Value<T> value)
value - the value for this nodepublic java.lang.StringBuilder printToBuffer(java.lang.StringBuilder buf)
buf - the buffer to print into
public java.lang.StringBuilder printRefinementToBuffer(java.lang.StringBuilder buf)
AbstractExprNode
printRefinementToBuffer in interface ExprNodeprintRefinementToBuffer in class AbstractExprNodebuf - the buffer to append to.
java.lang.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(java.lang.Object other)
equals in class LeafNodetrue if both objects are equalObject.equals(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||