org.htmlparser.filters
Class OrFilter
- Cloneable, NodeFilter, Serializable
Accepts nodes matching any of its predicates filters (OR operation).
OrFilter()- Creates a new instance of an OrFilter.
|
OrFilter(NodeFilter left, NodeFilter right)- Creates an OrFilter that accepts nodes acceptable to either filter.
|
OrFilter(NodeFilter[] predicates)- Creates an OrFilter that accepts nodes acceptable to any of the given filters.
|
mPredicates
protected NodeFilter[] mPredicates
The predicates that are to be or'ed together;
OrFilter
public OrFilter()
Creates a new instance of an OrFilter.
With no predicates, this would always answer
false
to
accept(Node).
OrFilter
public OrFilter(NodeFilter left,
NodeFilter right) Creates an OrFilter that accepts nodes acceptable to either filter.
left - One filter.right - The other filter.
OrFilter
public OrFilter(NodeFilter[] predicates)
Creates an OrFilter that accepts nodes acceptable to any of the given filters.
predicates - The list of filters.
accept
public boolean accept(Node node)
Accept nodes that are acceptable to any of its predicate filters.
- accept in interface NodeFilter
node - The node to check.
true if any of the predicate filters find the node
is acceptable, false otherwise.
getPredicates
public NodeFilter[] getPredicates()
Get the predicates used by this OrFilter.
- The predicates currently in use.
setPredicates
public void setPredicates(NodeFilter[] predicates)
Set the predicates for this OrFilter.
predicates - The list of predidcates to use in accept(Node).
| © 2005 Derrick Oswald Mai 08, 2008 |
| HTML Parser is an open source library released under LGPL. |  |