|
HTML Parser Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.htmlparser.filters.TagNameFilter
public class TagNameFilter
This class accepts all tags matching the tag name.
Field Summary | |
---|---|
protected String |
mName
The tag name to match. |
Constructor Summary | |
---|---|
TagNameFilter()
Creates a new instance of TagNameFilter. |
|
TagNameFilter(String name)
Creates a TagNameFilter that accepts tags with the given name. |
Method Summary | |
---|---|
boolean |
accept(Node node)
Accept nodes that are tags and have a matching tag name. |
String |
getName()
Get the tag name. |
void |
setName(String name)
Set the tag name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String mName
Constructor Detail |
---|
public TagNameFilter()
false
from accept(org.htmlparser.Node)
.
public TagNameFilter(String name)
name
- The tag name to match.Method Detail |
---|
public String getName()
public void setName(String name)
name
- The name of the tag to accept.public boolean accept(Node node)
accept
in interface NodeFilter
node
- The node to check.
true
if the tag name matches,
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. |