public final class TLcdXMLName extends Object
equals
method should always be used for comparisons, not the direct object reference
test (==
).
No constructors are available for this class; names need to be constructed via the static
getInstance
method.Modifier and Type | Method and Description |
---|---|
QName |
asQName()
Returns a QName instance corresponding to this
TLcdXMLName . |
boolean |
equals(Object obj)
Returns
true if and only if the namespace of the compared objects are equal, and
the local names of both objects are equal. |
static TLcdXMLName |
getInstance(QName aQName)
Returns a
TLcdXMLName instance based on the given QName. |
static TLcdXMLName |
getInstance(String aNamespaceURI,
String aLocalName)
Returns a
TLcdXMLName instance containing the given namespace and local name. |
String |
getLocalName()
Returns the local part of this XML name.
|
String |
getNameSpaceURI()
Returns the namespace part of this XML name.
|
int |
hashCode() |
String |
toString()
Returns a String representation of this XML name (a space-separated concatenation of the
namespace and local name).
|
public static TLcdXMLName getInstance(String aNamespaceURI, String aLocalName)
TLcdXMLName
instance containing the given namespace and local name.aNamespaceURI
- the namespace of the XML name instance to be returned.aLocalName
- the local name of the XML name instance to be returned.TLcdXMLName
instance containing the given namespace and local name.public static TLcdXMLName getInstance(QName aQName)
TLcdXMLName
instance based on the given QName.aQName
- the QName
for which to return an equivalent TLcdXMLName
, never nullTLcdXMLName
instance containing the namespace and local name of the
given QName
.public String getLocalName()
public String getNameSpaceURI()
public QName asQName()
TLcdXMLName
.
If this TLcdXMLName
was originally created from a QName
, the returned
QName
will preserve the prefix of the original one.TLcdXMLName
.public boolean equals(Object obj)
true
if and only if the namespace of the compared objects are equal, and
the local names of both objects are equal.