public class TagNameFilter extends java.lang.Object implements NodeFilter
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mName
The tag name to match.
|
Constructor and Description |
---|
TagNameFilter()
Creates a new instance of TagNameFilter.
|
TagNameFilter(java.lang.String name)
Creates a TagNameFilter that accepts tags with the given name.
|
public TagNameFilter()
false
from accept(org.htmlparser.Node)
.public TagNameFilter(java.lang.String name)
name
- The tag name to match.public java.lang.String getName()
public void setName(java.lang.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.HTML Parser is an open source library released under LGPL.