public class WithAttribute extends Object implements NodeFilter
NodeFilter.Action| Constructor and Description |
|---|
WithAttribute(String name)
Creates a new filter that accepts only elements that have the specified attribute.
|
WithAttribute(String name,
String value)
Creates a new filter that accepts only elements that have the specified attribute set to the given value.
|
| Modifier and Type | Method and Description |
|---|---|
NodeFilter.Action |
acceptNode(com.google.gwt.dom.client.Node node)
Applies this filter on the given DOM node.
|
public WithAttribute(String name)
name - the name of the attribute to look forpublic WithAttribute(String name, String value)
null then only the presence of the attribute is checked.name - the name of the attribute to look forvalue - the value of the attribute, null to match any valuepublic NodeFilter.Action acceptNode(com.google.gwt.dom.client.Node node)
NodeFilteracceptNode in interface NodeFilternode - the node to be filteredCopyright © 2004–2016 XWiki. All rights reserved.