Serializablepublic final class AnyNameClass extends NameClass
| Modifier and Type | Field | Description |
|---|---|---|
static NameClass |
theInstance |
Deprecated.
Use
NameClass.ALL instead. |
ALL, LOCALNAME_WILDCARD, NAMESPACE_WILDCARD, NONE| Modifier | Constructor | Description |
|---|---|---|
protected |
AnyNameClass() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accepts(String namespaceURI,
String localName) |
AnyNameClass accpets any name, as its name suggests.
|
String |
toString() |
|
Object |
visit(NameClassVisitor visitor) |
visitor pattern support
|
public static final NameClass theInstance
NameClass.ALL instead.public boolean accepts(String namespaceURI, String localName)
accepts in class NameClassnamespaceURI - namespace URI to be tested. If this value equals to
NAMESPACE_WILDCARD, implementation must assume that
valid namespace is specified. this twist will be used for
error diagnosis.localName - local part to be tested. As with namespaceURI, LOCALNAME_WILDCARD
will acts as a wild card.public Object visit(NameClassVisitor visitor)
NameClassCopyright © 2019 Oracle Corporation. All rights reserved.