Serializable
public class DifferenceNameClass extends NameClass
Modifier and Type | Field | Description |
---|---|---|
NameClass |
nc1 |
|
NameClass |
nc2 |
ALL, LOCALNAME_WILDCARD, NAMESPACE_WILDCARD, NONE
Constructor | Description |
---|---|
DifferenceNameClass(NameClass nc1,
NameClass nc2) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
accepts(String namespaceURI,
String localPart) |
accepts a name if it is accepted by nc1 and not by 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 © 2019 Oracle Corporation. All rights reserved.