|
||||||||||
| 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
public abstract class AbstractExprNode
Abstract implementation of a expression node.
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
annotations
The map of annotations |
protected AssertionType |
assertionType
The node type |
| Constructor Summary | |
|---|---|
protected |
AbstractExprNode(AssertionType assertionType)
Creates a node by setting abstract node type. |
| Method Summary | |
|---|---|
ExprNode |
clone()
Clone the object |
boolean |
equals(java.lang.Object o)
|
protected static Value<?> |
escapeFilterValue(Value<?> value)
Handles the escaping of special characters in LDAP search filter assertion values using the <valueencoding> rule as described in RFC 4515. |
java.lang.Object |
get(java.lang.Object key)
Gets an annotation on the tree by key. |
protected java.util.Map<java.lang.String,java.lang.Object> |
getAnnotations()
Gets the annotations as a Map. |
AssertionType |
getAssertionType()
Gets the assertion type of this node. |
int |
hashCode()
|
abstract boolean |
isLeaf()
Tests to see if this node is a leaf or branch node. |
java.lang.StringBuilder |
printRefinementToBuffer(java.lang.StringBuilder buf)
Default implementation for this method : just throw an exception. |
void |
set(java.lang.String key,
java.lang.Object value)
Sets a annotation key to a value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.filter.ExprNode |
|---|
accept |
| Field Detail |
|---|
protected java.util.Map<java.lang.String,java.lang.Object> annotations
protected final AssertionType assertionType
| Constructor Detail |
|---|
protected AbstractExprNode(AssertionType assertionType)
assertionType - The node's type| Method Detail |
|---|
public AssertionType getAssertionType()
ExprNode
getAssertionType in interface ExprNodeExprNode.getAssertionType()public abstract boolean isLeaf()
isLeaf in interface ExprNodepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecttrue if both objects are equalObject.equals(Object)protected static Value<?> escapeFilterValue(Value<?> value)
ExprNode#printToBuffer(StringBuffer) results in a valid filter string that can be parsed
again (as a way of cloning filters).
value - Right hand side of "attrId=value" assertion occurring in an LDAP search filter.
valuepublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.Object get(java.lang.Object key)
ExprNode
get in interface ExprNodekey - the annotation key.
ExprNode.get(java.lang.Object)
public void set(java.lang.String key,
java.lang.Object value)
ExprNode
set in interface ExprNodekey - the annotation key.value - the annotation value.org.apache.directory.shared.ldap.filter.ExprNode#set(java.lang.Object,
java.lang.Object)protected java.util.Map<java.lang.String,java.lang.Object> getAnnotations()
public java.lang.StringBuilder printRefinementToBuffer(java.lang.StringBuilder buf)
printRefinementToBuffer in interface ExprNodebuf - the buffer to append to.
java.lang.UnsupportedOperationException - if this node isn't a part of a refinement.public ExprNode clone()
clone in interface ExprNodeclone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||