org.htmlparser.filters
Class AndFilter
- Cloneable, NodeFilter, Serializable
Accepts nodes matching all of its predicate filters (AND operation).
mPredicates
protected NodeFilter[] mPredicates
The predicates that are to be and'ed together;
AndFilter
public AndFilter()
Creates a new instance of an AndFilter.
With no predicates, this would always answer
true
to
accept(Node)
.
AndFilter
public AndFilter(NodeFilter left,
NodeFilter right)
Creates an AndFilter that accepts nodes acceptable to both filters.
left
- One filter.right
- The other filter.
AndFilter
public AndFilter(NodeFilter[] predicates)
Creates an AndFilter that accepts nodes acceptable to all given filters.
predicates
- The list of filters.
accept
public boolean accept(Node node)
Accept nodes that are acceptable to all of its predicate filters.
- accept in interface NodeFilter
node
- The node to check.
true
if all the predicate filters find the node
is acceptable, false
otherwise.
getPredicates
public NodeFilter[] getPredicates()
Get the predicates used by this AndFilter.
- The predicates currently in use.
setPredicates
public void setPredicates(NodeFilter[] predicates)
Set the predicates for this AndFilter.
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. |  |