|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.namespace.QName
QName
class represents the value of a qualified name
as specified in XML
Schema Part2: Datatypes specification.
The value of a QName contains a namespaceURI and a localPart. The localPart provides the local part of the qualified name. The namespaceURI is a URI reference identifying the namespace.
Constructor Summary | |
QName(String localPart)
Constructor for the QName. |
|
QName(String namespaceURI,
String localPart)
Constructor for the QName. |
Method Summary | |
boolean |
equals(Object obj)
Tests this QName for equality with another object. |
String |
getLocalPart()
Gets the Local part for this QName. |
String |
getNamespaceURI()
Gets the Namespace URI for this QName. |
int |
hashCode()
Returns a hash code value for this QName object. |
String |
toString()
Returns a string representation of this QName. |
static QName |
valueOf(String s)
Returns a QName holding the value of the specified String. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QName(String localPart)
localPart
- Local part of the QName
IllegalArgumentException
- If null
local part is specifiedpublic QName(String namespaceURI, String localPart)
namespaceURI
- Namespace URI for the QNamelocalPart
- Local part of the QName
IllegalArgumentException
- If null
local part is specifiedMethod Detail |
public String getNamespaceURI()
public String getLocalPart()
public String toString()
public static QName valueOf(String s)
s
- - the string to be parsed
IllegalArgumentException
- If the specified String cannot
be parsed as a QNamepublic final int hashCode()
Object.hashCode
method.
public final boolean equals(Object obj)
If the given object is not a QName or is null then this method returns false.
For two QNames to be considered equal requires that both
localPart and namespaceURI must be equal. This method uses
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.
obj
- - the reference object with which to compare.
|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |