org.htmlparser.filters
public class NotFilter extends Object implements NodeFilter
| 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. |
false
from {@link #accept}.See Also: NotFilter
Parameters: predicate The filter to consult.
Parameters: node The node to check.
Returns: true if the node is not acceptable to the
predicate filter, false otherwise.
Returns: The predicate currently in use.
Parameters: predicate The predidcate to use in {@link #accept}.
| HTML Parser is an open source library released under LGPL. | |