public final class QualifiedName extends Object
Constructor and Description |
---|
QualifiedName(String localName) |
QualifiedName(String namespaceUri,
String localName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getLocalName() |
String |
getNamespaceURI() |
int |
hashCode() |
String |
toString()
Represents the QualifiedName as {NS-URI}LOCAL-NAME.
|
static QualifiedName |
valueOf(String value)
Parses strings of the form "{NS-URI}LOCAL-NAME" or "prefix:localName" as QualifiedNames.
|
static QualifiedName |
valueOf(String value,
NamespaceContext ctx)
Parses strings of the form "{NS-URI}LOCAL-NAME" or "prefix:localName" as QualifiedNames.
|
public QualifiedName(String localName)
public String getNamespaceURI()
public String getLocalName()
public static QualifiedName valueOf(String value)
When using the prefix-version the prefix must be defined inside the current NamespaceContext.
public String toString()
If the NS-URI is equal to NULL_NS_URI only the local name is returned.
public static QualifiedName valueOf(String value, NamespaceContext ctx)
When using the prefix-version the prefix must be defined inside the NamespaceContext given as argument.
Copyright © 2001–2017 XMLUnit. All rights reserved.