org.htmlparser.filters
Class NotFilter
- Cloneable, NodeFilter, Serializable
Accepts all nodes not acceptable to it's predicate filter.
NotFilter() - Creates a new instance of a NotFilter.
|
NotFilter(NodeFilter predicate) - Creates a NotFilter that accepts nodes not acceptable to the predicate.
|
mPredicate
protected NodeFilter mPredicate
The filter to gainsay.
NotFilter
public NotFilter()
Creates a new instance of a NotFilter.
With no predicates, this would always return
false
from
accept(Node)
.
NotFilter
public NotFilter(NodeFilter predicate)
Creates a NotFilter that accepts nodes not acceptable to the predicate.
predicate
- The filter to consult.
accept
public boolean accept(Node node)
Accept nodes that are not acceptable to the predicate filter.
- accept in interface NodeFilter
node
- The node to check.
true
if the node is not acceptable to the
predicate filter, false
otherwise.
getPredicate
public NodeFilter getPredicate()
Get the predicate used by this NotFilter.
- The predicate currently in use.
setPredicate
public void setPredicate(NodeFilter predicate)
Set the predicate for this NotFilter.
| © 2005 Derrick Oswald Mai 08, 2008 |
HTML Parser is an open source library released under LGPL. |  |