|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbind.xml.base.QName
Represents a qualified name.
Field Summary | |
protected java.lang.String |
myNamespace
|
Constructor Summary | |
protected |
QName(java.lang.String aPrefix,
java.lang.String aLocalName,
java.lang.String aNamespace)
|
Method Summary | |
static QName |
create(java.lang.String aQName,
java.util.Map aPrefixToNamespaceMapping)
Creates a QName. |
boolean |
equals(java.lang.Object anObject)
Checks equalitiy. |
java.lang.String |
getLocalPart()
Gets the local part. |
static java.lang.String |
getLocalPart(java.lang.String aQName)
Gets the local part of a QName. |
java.lang.String |
getNamespace()
Gets the namespace. |
java.lang.String |
getPrefix()
Gets the prefix. |
int |
hashCode()
Returns the sum of the hash codes of the namespace and the local part. |
java.lang.String |
toString()
Gets the string representation of the QName. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String myNamespace
Constructor Detail |
protected QName(java.lang.String aPrefix, java.lang.String aLocalName, java.lang.String aNamespace)
Method Detail |
public static final java.lang.String getLocalPart(java.lang.String aQName)
aQName
- (required).
public static final QName create(java.lang.String aQName, java.util.Map aPrefixToNamespaceMapping)
aQName
- (optional).aPrefixToNamespaceMapping
- (required).
null
is returned.public java.lang.String getPrefix()
IQName
Attention: If the prefix is null
then this does not mean that the QName has no prefix. It means only that
a prefix for the QName has not yet been determined. The empty string is used
to indicate that the QName has prefix.
getPrefix
in interface IQName
public java.lang.String getLocalPart()
IQName
getLocalPart
in interface IQName
public java.lang.String getNamespace()
IQName
getNamespace
in interface IQName
public java.lang.String toString()
IQName
null
and not equal to the empty string then the concatentation
of the prefix, a colon, and the local part is returned.
If the prefix is null
then the concatentation of "?:" and the
local part is returned.
If the prefix is equal to the empty string then the local part is returned.
toString
in interface IQName
public final boolean equals(java.lang.Object anObject)
IQName
equals
in interface IQName
public final int hashCode()
IQName
hashCode
in interface IQName
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |