|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.filter.AbstractExprNode
org.apache.directory.api.ldap.model.filter.BranchNode
org.apache.directory.api.ldap.model.filter.AndNode
public class AndNode
Node representing an AND connector in a filter operation
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.filter.BranchNode |
|---|
children |
| Fields inherited from class org.apache.directory.api.ldap.model.filter.AbstractExprNode |
|---|
annotations, assertionType, isSchemaAware |
| Constructor Summary | |
|---|---|
AndNode()
Creates an empty AndNode |
|
AndNode(ExprNode... childList)
Creates a AndNode using a logical operator and a list of children. |
|
AndNode(List<ExprNode> childList)
Creates a AndNode using a logical operator and a list of children. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
AssertionType |
getOperator()
Gets the operator for this branch node. |
int |
hashCode()
|
boolean |
isConjunction()
Tests whether or not this node is a conjunction (a AND'ed branch). |
boolean |
isDisjunction()
Tests whether or not this node is a disjunction (a OR'ed branch). |
boolean |
isNegation()
Tests whether or not this node is a negation (a NOT'ed branch). |
StringBuilder |
printRefinementToBuffer(StringBuilder buf)
Default implementation for this method : just throw an exception. |
String |
toString()
Gets the recursive prefix string represent of the filter from this node down. |
| Methods inherited from class org.apache.directory.api.ldap.model.filter.BranchNode |
|---|
accept, addNode, addNodeToHead, clone, getChildren, getFirstChild, isLeaf, setChildren |
| Methods inherited from class org.apache.directory.api.ldap.model.filter.AbstractExprNode |
|---|
escapeFilterValue, get, getAnnotations, getAssertionType, isSchemaAware, set |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AndNode(List<ExprNode> childList)
childList - the child nodes under this branch node.public AndNode(ExprNode... childList)
childList - the child nodes under this branch node.public AndNode()
| Method Detail |
|---|
public AssertionType getOperator()
public boolean isDisjunction()
public boolean isConjunction()
public boolean isNegation()
public StringBuilder printRefinementToBuffer(StringBuilder buf)
AbstractExprNode
printRefinementToBuffer in interface ExprNodeprintRefinementToBuffer in class AbstractExprNodebuf - the buffer to append to.
UnsupportedOperationException - if this node isn't a part of a refinement.ExprNode#printRefinementToBuffer(StringBuffer)public String toString()
toString in class AbstractExprNodeObject.toString()public int hashCode()
hashCode in class BranchNodeObject.hashCode()public boolean equals(Object other)
equals in class BranchNodetrue if both objects are equalObject.equals(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||