|
||||||||||
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 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. |
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, get, getAnnotations, getAssertionType, set |
Methods inherited from class java.lang.Object |
---|
clone, 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 Assertion getAssertion()
public boolean isLeaf()
isLeaf
in interface ExprNode
isLeaf
in class AbstractExprNode
ExprNode.isLeaf()
public java.lang.StringBuilder printRefinementToBuffer(java.lang.StringBuilder buf) throws java.lang.UnsupportedOperationException
AbstractExprNode
printRefinementToBuffer
in interface ExprNode
printRefinementToBuffer
in class AbstractExprNode
buf
- 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 AbstractExprNode
Object.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 AbstractExprNode
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |