Class AssertionNode
java.lang.Object
org.apache.directory.api.ldap.model.filter.AbstractExprNode
org.apache.directory.api.ldap.model.filter.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.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractExprNode
annotations, assertionType -
Constructor Summary
ConstructorsConstructorDescriptionAssertionNode(Assertion assertion) Creates an AssertionNode using an arbitrary candidate assertion.AssertionNode(Assertion assertion, String desc) Creates an AssertionNode using an arbitrary candidate assertion with a descriptions used for filter AST walker dumps. -
Method Summary
Modifier and TypeMethodDescriptionaccept(FilterVisitor visitor) Element/node accept method for visitor pattern.booleanGets the Assertion used by this assertion node.inthashCode()booleanisLeaf()Always returns true since an AssertionNode has no children.booleanTells if this Node is Schema aware.Default implementation for this method : just throw an exception.toString()Methods inherited from class AbstractExprNode
clone, get, getAnnotations, getAssertionType, set
-
Constructor Details
-
AssertionNode
Creates an AssertionNode using an arbitrary candidate assertion.- Parameters:
assertion- the arbitrary selection logic.
-
AssertionNode
-
-
Method Details
-
getAssertion
Gets the Assertion used by this assertion node.- Returns:
- the assertion used by this node
-
isLeaf
public boolean isLeaf()Always returns true since an AssertionNode has no children.- Returns:
- true if the node is a leaf,false otherwise
- See Also:
-
printRefinementToBuffer
Description copied from class:AbstractExprNodeDefault implementation for this method : just throw an exception.- Specified by:
printRefinementToBufferin interfaceExprNode- Overrides:
printRefinementToBufferin classAbstractExprNode- Parameters:
buf- the buffer to append to.- Returns:
- The buffer in which the refinement has been appended
- See Also:
-
isSchemaAware
public boolean isSchemaAware()Tells if this Node is Schema aware.- Returns:
- true if the Node is SchemaAware
-
equals
- Overrides:
equalsin classAbstractExprNode- Returns:
trueif both objects are equal- See Also:
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractExprNode- Returns:
- the instance's hash code
- See Also:
-
accept
Description copied from interface:ExprNodeElement/node accept method for visitor pattern.- Parameters:
visitor- the filter expression tree structure visitor- Returns:
- the modified element
- See Also:
-
toString
- Overrides:
toStringin classAbstractExprNode- Returns:
- A string representing the AndNode
- See Also:
-