public class ChoiceNameClass extends NameClass
Modifier and Type | Field and Description |
---|---|
NameClass |
nc1 |
NameClass |
nc2 |
ALL, LOCALNAME_WILDCARD, NAMESPACE_WILDCARD, NONE
Constructor and Description |
---|
ChoiceNameClass(NameClass nc1,
NameClass nc2) |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(String namespaceURI,
String localPart)
accepts a name if it is accepted by nc1 or nc2.
|
String |
toString() |
Object |
visit(NameClassVisitor visitor)
visitor pattern support
|
public boolean accepts(String namespaceURI, String localPart)
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.localPart
- 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.