|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.namespace.QName
public class QName
QName
class represents the value of a qualified name as specified in XML Schema Part2: Datatypes specification.
Constructor Summary | |
---|---|
QName(java.lang.String localPart)
Constructor for the QName. |
|
QName(java.lang.String namespaceURI,
java.lang.String localPart)
Constructor for the QName. |
|
QName(java.lang.String namespaceURI,
java.lang.String localPart,
java.lang.String prefix)
Constructor for the QName. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests this QName for equality with another object. |
java.lang.String |
getLocalPart()
Gets the local part for this QName. |
java.lang.String |
getNamespaceURI()
Gets the namespace URI for this QName. |
java.lang.String |
getPrefix()
Gets the prefix for this QName. |
int |
hashCode()
Returns a hash code value for this QName object. |
java.lang.String |
toString()
Returns a string representation of this QName. |
static QName |
valueOf(java.lang.String s)
Returns a QName holding the value of the specified String. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QName(java.lang.String localPart)
localPart
- local part of the QNamepublic QName(java.lang.String namespaceURI, java.lang.String localPart)
namespaceURI
- namespace URI for the QNamelocalPart
- local part of the QName.public QName(java.lang.String namespaceURI, java.lang.String localPart, java.lang.String prefix)
namespaceURI
- Namespace URI for the QNamelocalPart
- Local part of the QName.prefix
- Prefix of the QName.Method Detail |
---|
public java.lang.String getNamespaceURI()
public java.lang.String getLocalPart()
public java.lang.String getPrefix()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
String.equals
to check equality of localPart and
namespaceURI. Any class that extends QName is required to satisfy this equality contract.
This method satisfies the general contract of the Object.equals
method.
equals
in class java.lang.Object
obj
- the reference object with which to compare
true
if the given object is identical to this QName: false
otherwise.public static QName valueOf(java.lang.String s)
s
- the string to be parsed
java.lang.IllegalArgumentException
- If the specified String cannot be parsed as a QNamepublic int hashCode()
Object.hashCode
method.
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |