public static class XPath.NameTest extends XPath.NodeTest
Constructor and Description |
---|
XPath.NameTest(String prefixTest,
String localTest) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLocalTest() |
String |
getPrefixTest() |
int |
hashCode() |
boolean |
isWildcard()
Return whether this represents a wildcard, meaning both
getPrefixTest() and getLocalTest() are null. |
boolean |
matches(String prefix,
String local)
Determine if this name test exactly matches the supplied prefix and local name values.
|
String |
toString() |
collapse
public String getPrefixTest()
public String getLocalTest()
public boolean matches(String prefix, String local)
prefix
- the prefix; may be nulllocal
- the local name; may be nullpublic boolean isWildcard()
getPrefixTest()
and getLocalTest()
are null.Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.