|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.htmlparser.filters.NodeClassFilter
This class accepts all tags of a given class.
Field Summary | |
protected java.lang.Class |
mClass
The class to match. |
Constructor Summary | |
NodeClassFilter()
Creates a NodeClassFilter that accepts Html tags. |
|
NodeClassFilter(java.lang.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. |
java.lang.Class |
getMatchClass()
Get the class to match. |
void |
setMatchClass(java.lang.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 java.lang.Class mClass
Constructor Detail |
public NodeClassFilter()
public NodeClassFilter(java.lang.Class cls)
cls
- The class to match.Method Detail |
public java.lang.Class getMatchClass()
public void setMatchClass(java.lang.Class cls)
cls
- The node class to match.public boolean accept(Node node)
accept
in interface NodeFilter
node
- The node to check.
true
if the node is the right class,
false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |