org.htmlparser.filters
public class OrFilter extends Object implements NodeFilter
Field Summary | |
---|---|
protected NodeFilter[] | mPredicates
The predicates that are to be or'ed together; |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean | accept(Node node)
Accept nodes that are acceptable to any of its predicate filters. |
NodeFilter[] | getPredicates()
Get the predicates used by this OrFilter. |
void | setPredicates(NodeFilter[] predicates)
Set the predicates for this OrFilter. |
false
to {@link #accept}.See Also: OrFilter
Parameters: left One filter. right The other filter.
Parameters: predicates The list of filters.
Parameters: node The node to check.
Returns: true
if any of the predicate filters find the node
is acceptable, false
otherwise.
Returns: The predicates currently in use.
Parameters: predicates The list of predidcates to use in {@link #accept}.
HTML Parser is an open source library released under LGPL. | |