public final class AnyNameClass extends NameClass
Modifier and Type | Field and Description |
---|---|
static NameClass |
theInstance
Deprecated.
Use
NameClass.ALL instead. |
ALL, LOCALNAME_WILDCARD, NAMESPACE_WILDCARD, NONE
Modifier | Constructor and Description |
---|---|
protected |
AnyNameClass() |
Modifier and Type | Method and 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 NameClass
namespaceURI
- 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)
NameClass
Copyright © 2016 Oracle Corporation. All rights reserved.