|
HTML Parser Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.htmlparser.filters.NotFilter
public class 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 NodeFilternode - The node to check.
true if the node is not acceptable to the
predicate filter, false otherwise.
|
© 2005 Derrick Oswald Jun 10, 2006
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| HTML Parser is an open source library released under LGPL. | |