public class NamespaceNameClass extends NameClass
Modifier and Type | Field and Description |
---|---|
String |
namespaceURI |
ALL, LOCALNAME_WILDCARD, NAMESPACE_WILDCARD, NONE
Constructor and Description |
---|
NamespaceNameClass(String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(String namespaceURI,
String localName)
accepts a name if its namespace URI matches to the namespaceURI field.
|
String |
toString() |
Object |
visit(NameClassVisitor visitor)
visitor pattern support
|
public final String namespaceURI
public NamespaceNameClass(String namespaceURI)
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.