public class NamedAttributeMatcher extends Matcher
.../@name XPath expression.
Matches the named attributes of the current element.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name |
private java.lang.String |
namespace |
| Constructor and Description |
|---|
NamedAttributeMatcher(java.lang.String namespace,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
equals(java.lang.String a,
java.lang.String b) |
boolean |
matchesAttribute(java.lang.String namespace,
java.lang.String name)
Returns
true if the XPath expression matches the named
attribute of the element associated with this evaluation state. |
descend, matchesElement, matchesTextprivate final java.lang.String namespace
private final java.lang.String name
public NamedAttributeMatcher(java.lang.String namespace,
java.lang.String name)
public boolean matchesAttribute(java.lang.String namespace,
java.lang.String name)
Matchertrue if the XPath expression matches the named
attribute of the element associated with this evaluation state.matchesAttribute in class Matchernamespace - attribute namespace or nullname - attribute nameprivate static boolean equals(java.lang.String a,
java.lang.String b)