|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.namespace.QName
QName represents an immutable qualified name. The value of a QName contains a Namespace URI, local part and prefix. The prefix is included in QName to retain lexical information when present in an XML input source. The prefix is NOT used in QName.equals(Object) or to compute the QName.hashCode(). Equality and the hash code are defined using only the Namespace URI and local part. If not specified, the Namespace URI is set to "" (the empty string). If not specified, the prefix is set to "" (the empty string).
Constructor Summary | |
QName(java.lang.String localPart)
|
|
QName(java.lang.String namespaceURI,
java.lang.String localPart)
|
|
QName(java.lang.String namespaceURI,
java.lang.String localPart,
java.lang.String prefix)
QName constructor specifying the Namespace URI, local part and prefix. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object obj)
Equality is based on the namespaceURI and localPart |
java.lang.String |
getLocalPart()
|
java.lang.String |
getNamespaceURI()
|
java.lang.String |
getPrefix()
|
int |
hashCode()
Calculate the hash of namespaceURI and localPart |
java.lang.String |
toString()
There is NO standard specification for representing a QName as a String. |
static QName (src) |
valueOf(java.lang.String toStringName)
QName derived from parsing the formatted String. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QName(java.lang.String localPart)
public QName(java.lang.String namespaceURI, java.lang.String localPart)
public QName(java.lang.String namespaceURI, java.lang.String localPart, java.lang.String prefix)
namespaceURI
- - Namespace URI of the QNamelocalPart
- - local part of the QNameprefix
- - prefix of the QNameMethod Detail |
public static QName (src) valueOf(java.lang.String toStringName)
toStringName
- - a QName string in the format of toString().
toString()
public java.lang.String getNamespaceURI()
public java.lang.String getLocalPart()
public java.lang.String getPrefix()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
obj
- the QName to compare too
public int hashCode()
public int compareTo(java.lang.Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |