public class AttributeMatcher extends Matcher
.../@*
XPath expression.
Matches all attributes of the current element.Constructor and Description |
---|
AttributeMatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
matchesAttribute(String namespace,
String name)
Returns
true if the XPath expression matches the named
attribute of the element associated with this evaluation state. |
descend, matchesElement, matchesText
public static final Matcher INSTANCE
public boolean matchesAttribute(String namespace, String name)
Matcher
true
if the XPath expression matches the named
attribute of the element associated with this evaluation state.matchesAttribute
in class Matcher
namespace
- attribute namespace or null
name
- attribute nameCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.