Class AndNode
java.lang.Object
org.apache.directory.api.ldap.model.filter.AbstractExprNode
org.apache.directory.api.ldap.model.filter.BranchNode
org.apache.directory.api.ldap.model.filter.AndNode
Node representing an AND connector in a filter operation
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class BranchNode
childrenFields inherited from class AbstractExprNode
annotations, assertionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the operator for this branch node.inthashCode()booleanTests whether or not this node is a conjunction (a AND'ed branch).booleanTests whether or not this node is a disjunction (a OR'ed branch).booleanTests whether or not this node is a negation (a NOT'ed branch).Default implementation for this method : just throw an exception.toString()Gets the recursive prefix string represent of the filter from this node down.Methods inherited from class BranchNode
accept, addNode, addNodeToHead, clone, getChildren, getFirstChild, isLeaf, isSchemaAware, setChildrenMethods inherited from class AbstractExprNode
get, getAnnotations, getAssertionType, set
-
Constructor Details
-
AndNode
-
AndNode
Creates a AndNode using a logical operator and a list of children.- Parameters:
childList- the child nodes under this branch node.
-
AndNode
public AndNode()Creates an empty AndNode
-
-
Method Details
-
getOperator
Gets the operator for this branch node.- Returns:
- the operator constant.
-
isDisjunction
public boolean isDisjunction()Tests whether or not this node is a disjunction (a OR'ed branch).- Returns:
- true if the operation is a OR, false otherwise.
-
isConjunction
public boolean isConjunction()Tests whether or not this node is a conjunction (a AND'ed branch).- Returns:
- true if the operation is a AND, false otherwise.
-
isNegation
public boolean isNegation()Tests whether or not this node is a negation (a NOT'ed branch).- Returns:
- true if the operation is a NOT, false otherwise.
-
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
- Throws:
UnsupportedOperationException- if this node isn't a part of a refinement.- See Also:
-
toString
Gets the recursive prefix string represent of the filter from this node down.- Overrides:
toStringin classAbstractExprNode- Returns:
- A string representing the AndNode
- See Also:
-
hashCode
public int hashCode()- Overrides:
hashCodein classBranchNode- Returns:
- the instance's hash code
- See Also:
-
equals
- Overrides:
equalsin classBranchNode- Returns:
trueif both objects are equal- See Also:
-