|
HTML Parser Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.htmlparser.filters.NodeClassFilter
public class NodeClassFilter
This class accepts all tags of a given class.
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Class mClass
| Constructor Detail |
|---|
public NodeClassFilter()
public NodeClassFilter(Class cls)
cls - The class to match.| Method Detail |
|---|
public Class getMatchClass()
public void setMatchClass(Class cls)
cls - The node class to match.public boolean accept(Node node)
accept in interface NodeFilternode - The node to check.
true if the node is the right class,
false otherwise.
|
© 2006 Derrick Oswald Sep 17, 2006
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| HTML Parser is an open source library released under Common Public License. | |