|
||||||||||
| 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.AssertionNode
public abstract class AssertionNode
Node used for the application of arbitrary predicates on return candidates. Applies dynamic and programatic criteria for the selection of candidates for return. Nodes of this type may be introduced into the filter expression to provided the opportunity to constrain the search further without altering the search algorithm.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
|---|
annotations, assertionType |
| Constructor Summary | |
|---|---|
AssertionNode(Assertion assertion)
Creates an AssertionNode using an arbitrary candidate assertion. |
|
AssertionNode(Assertion assertion,
java.lang.String desc)
Creates an AssertionNode using an arbitrary candidate assertion with a descriptions used for filter AST walker dumps. |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(FilterVisitor visitor)
Element/node accept method for visitor pattern. |
ExprNode |
clone()
Makes a full clone in new memory space of the current node and children |
Assertion |
getAssertion()
Gets the Assertion used by this assertion node. |
int |
hashCode()
|
boolean |
isLeaf()
Always returns true since an AssertionNode has no children. |
java.lang.StringBuilder |
printRefinementToBuffer(java.lang.StringBuilder buf)
Default implementation for this method : just throw an exception. |
java.lang.String |
toString()
|
| Methods inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
|---|
equals, escapeFilterValue, get, getAnnotations, getAssertionType, set |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AssertionNode(Assertion assertion)
assertion - the arbitrary selection logic.
public AssertionNode(Assertion assertion,
java.lang.String desc)
assertion - the arbitrary selection logic.desc - the printout representation for filter prints.| Method Detail |
|---|
public ExprNode clone()
clone in interface ExprNodeclone in class AbstractExprNodepublic Assertion getAssertion()
public boolean isLeaf()
isLeaf in interface ExprNodeisLeaf in class AbstractExprNodeExprNode.isLeaf()
public java.lang.StringBuilder printRefinementToBuffer(java.lang.StringBuilder buf)
throws java.lang.UnsupportedOperationException
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 AbstractExprNodeObject.hashCode()public java.lang.Object accept(FilterVisitor visitor)
ExprNode
visitor - the filter expression tree structure visitor
TODO - what is this modified element ?
ExprNode.accept(
org.apache.directory.shared.ldap.filter.FilterVisitor)public java.lang.String toString()
toString in class AbstractExprNodeObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||