|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.htmlparser.filters.NotFilter
Accepts all nodes not acceptable to it's predicate filter.
Field Summary | |
protected NodeFilter |
mPredicate
The filter to gainsay. |
Constructor Summary | |
NotFilter()
Creates a new instance of a NotFilter. |
|
NotFilter(NodeFilter predicate)
Creates a NotFilter that accepts nodes not acceptable to the predicate. |
Method Summary | |
boolean |
accept(Node node)
Accept nodes that are not acceptable to the predicate filter. |
NodeFilter |
getPredicate()
Get the predicate used by this NotFilter. |
void |
setPredicate(NodeFilter predicate)
Set the predicate for this NotFilter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected NodeFilter mPredicate
Constructor Detail |
public NotFilter()
false
from accept(org.htmlparser.Node)
.
setPredicate(org.htmlparser.NodeFilter)
public NotFilter(NodeFilter predicate)
predicate
- The filter to consult.Method Detail |
public NodeFilter getPredicate()
public void setPredicate(NodeFilter predicate)
predicate
- The predidcate to use in accept(org.htmlparser.Node)
.public boolean accept(Node node)
accept
in interface NodeFilter
node
- The node to check.
true
if the node is not acceptable to the
predicate filter, false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |