public class NotFilter extends java.lang.Object implements NodeFilter
| Modifier and Type | Field and Description |
|---|---|
protected NodeFilter |
mPredicate
The filter to gainsay.
|
| Constructor and Description |
|---|
NotFilter()
Creates a new instance of a NotFilter.
|
NotFilter(NodeFilter predicate)
Creates a NotFilter that accepts nodes not acceptable to the predicate.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected NodeFilter mPredicate
public NotFilter()
false
from accept(org.htmlparser.Node).setPredicate(org.htmlparser.NodeFilter)public NotFilter(NodeFilter predicate)
predicate - The filter to consult.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 NodeFilternode - The node to check.true if the node is not acceptable to the
predicate filter, false otherwise.HTML Parser is an open source library released under LGPL.