org.htmlparser.filters
public class NodeClassFilter extends Object implements NodeFilter
| Field Summary | |
|---|---|
| protected Class | mClass
The class to match. |
| Constructor Summary | |
|---|---|
| NodeClassFilter()
Creates a NodeClassFilter that accepts Html tags. | |
| NodeClassFilter(Class cls)
Creates a NodeClassFilter that accepts tags of the given class. | |
| Method Summary | |
|---|---|
| boolean | accept(Node node)
Accept nodes that are assignable from the class provided in
the constructor. |
| Class | getMatchClass()
Get the class to match. |
| void | setMatchClass(Class cls)
Set the class to match. |
Parameters: cls The class to match.
Parameters: node The node to check.
Returns: true if the node is the right class,
false otherwise.
Returns: Returns the class.
Parameters: cls The node class to match.
| HTML Parser is an open source library released under LGPL. | |