javax.xml.rpc.namespace
Class QName

java.lang.Object
  |
  +--javax.xml.rpc.namespace.QName

public final class QName
extends java.lang.Object

QName class represents a qualified name based on "Namespaces in XML" specification. A QName is represented as: QName ::= (Prefix ':') ? LocalPart


Constructor Summary
QName(java.lang.String localPart)
          Constructor for the QName.
QName(java.lang.String namespaceURI, java.lang.String localPart)
          Constructor for the QName.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this QName object.
 java.lang.String getLocalPart()
          Gets the Local part for this QName.
 java.lang.String getNamespaceURI()
          Gets the Namespace URI 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QName

public QName(java.lang.String localPart)
Constructor for the QName.
Parameters:
localPart - Local part of the QName
Throws:
java.lang.IllegalArgumentException - If null local part is specified

QName

public QName(java.lang.String namespaceURI,
             java.lang.String localPart)
Constructor for the QName.
Parameters:
namespaceURI - Namespace URI for the QName
localPart - Local part of the QName
Throws:
java.lang.IllegalArgumentException - If null local part is specified
Method Detail

getNamespaceURI

public java.lang.String getNamespaceURI()
Gets the Namespace URI for this QName.
Returns:
Namespace URI

getLocalPart

public java.lang.String getLocalPart()
Gets the Local part for this QName.
Returns:
Local part

toString

public java.lang.String toString()
Returns a string representation of this QName.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the QName

hashCode

public int hashCode()
Returns a hash code value for this QName object.
Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this Qname object

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this QName object.
Overrides:
equals in class java.lang.Object
Parameters:
obj - - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.