org.htmlparser.filters
public class TagNameFilter extends Object implements NodeFilter
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. |
false
from TagNameFilter.Parameters: name The tag name to match.
Parameters: node The node to check.
Returns: true
if the tag name matches,
false
otherwise.
Returns: Returns the name of acceptable tags.
Parameters: name The name of the tag to accept.
HTML Parser is an open source library released under LGPL. | |