|
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.HasAttributeFilter
This class accepts all tags that have a certain attribute, and optionally, with a certain value.
| Field Summary | |
protected String |
mAttribute
The attribute to check for. |
protected String |
mValue
The value to check for. |
| Constructor Summary | |
HasAttributeFilter(String attribute)
Creates a new instance of HasAttributeFilter that accepts tags with the given attribute. |
|
HasAttributeFilter(String attribute,
String value)
Creates a new instance of HasAttributeFilter that accepts tags with the given attribute. |
|
| Method Summary | |
boolean |
accept(Node node)
Accept tags with a certain attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String mAttribute
protected String mValue
| Constructor Detail |
public HasAttributeFilter(String attribute)
attribute - The attribute to search for.
public HasAttributeFilter(String attribute,
String value)
attribute - The attribute to search for.value - The value that must be matched, or null if any value will match.| Method Detail |
public boolean accept(Node node)
accept in interface NodeFilternode - The node to check.
true if the node is to be kept, false
if it is to be discarded.
|
© 2004 Somik Raha Mar 14, 2004
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||