|
||||||||||
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.BranchNode
org.apache.directory.shared.ldap.filter.NotNode
public class NotNode
Node representing an Not connector in a filter operation
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.ldap.filter.BranchNode |
---|
children |
Fields inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
---|
annotations, assertionType |
Constructor Summary | |
---|---|
NotNode()
Creates an empty NotNode |
|
NotNode(ExprNode child)
Creates a NotNode using a logical NOT operator and the given child. |
|
NotNode(java.util.List<ExprNode> childList)
Creates a NotNode using a logical NOT operator and a list of children. |
Method Summary | |
---|---|
void |
addNode(ExprNode node)
Adds a child node to this NOT node node |
void |
addNodeToHead(ExprNode node)
Adds a child node to this NOT node at the head rather than the tail. |
ExprNode |
clone()
Clone the Node |
AssertionType |
getOperator()
Gets the operator for this branch node. |
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). |
java.lang.StringBuilder |
printRefinementToBuffer(java.lang.StringBuilder buf)
Default implementation for this method : just throw an exception. |
void |
setChildren(java.util.List<ExprNode> childList)
Sets the list of children under this node. |
java.lang.String |
toString()
Gets the recursive prefix string represent of the filter from this node down. |
Methods inherited from class org.apache.directory.shared.ldap.filter.BranchNode |
---|
accept, equals, getChildren, getFirstChild, hashCode, isLeaf |
Methods inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
---|
escapeFilterValue, get, getAnnotations, getAssertionType, set |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NotNode(java.util.List<ExprNode> childList)
childList
- the child nodes under this branch node.public NotNode(ExprNode child)
child
- the child node under this branch node.public NotNode()
Method Detail |
---|
public ExprNode clone()
clone
in interface ExprNode
clone
in class BranchNode
public void addNode(ExprNode node)
addNode
in class BranchNode
node
- the child expression to add to this NOT nodepublic void addNodeToHead(ExprNode node)
addNodeToHead
in class BranchNode
node
- the child expression to add to this branch nodepublic void setChildren(java.util.List<ExprNode> childList)
setChildren
in class BranchNode
childList
- the list of children to set.public AssertionType getOperator()
public boolean isDisjunction()
public boolean isConjunction()
public boolean isNegation()
public java.lang.StringBuilder printRefinementToBuffer(java.lang.StringBuilder buf)
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(StringBuffer)
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 |