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