org.htmlparser.filters
Class NodeClassFilter
- Cloneable, NodeFilter, Serializable
public class NodeClassFilter
This class accepts all tags of a given class.
protected Class | mClass - The class to match.
|
NodeClassFilter() - Creates a NodeClassFilter that accepts Html tags.
|
NodeClassFilter(Class cls) - Creates a NodeClassFilter that accepts tags of the given class.
|
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.
|
mClass
protected Class mClass
The class to match.
NodeClassFilter
public NodeClassFilter()
Creates a NodeClassFilter that accepts Html tags.
NodeClassFilter
public NodeClassFilter(Class cls)
Creates a NodeClassFilter that accepts tags of the given class.
cls
- The class to match.
accept
public boolean accept(Node node)
Accept nodes that are assignable from the class provided in
the constructor.
- accept in interface NodeFilter
node
- The node to check.
true
if the node is the right class,
false
otherwise.
getMatchClass
public Class getMatchClass()
Get the class to match.
setMatchClass
public void setMatchClass(Class cls)
Set the class to match.
cls
- The node class to match.
| © 2005 Derrick Oswald Mai 08, 2008 |
HTML Parser is an open source library released under LGPL. |  |