com.caucho.xml
Class QName

java.lang.Object
  extended by com.caucho.xml.QName
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class QName
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected static L10N L
           
 
Constructor Summary
QName(java.lang.String qName)
           
QName(java.lang.String qName, java.lang.String namespace)
           
QName(java.lang.String prefix, java.lang.String localName, java.lang.String namespace)
           
QName(java.lang.String qName, java.lang.String prefix, java.lang.String localName, java.lang.String namespace)
           
 
Method Summary
 int compareTo(java.lang.Object b)
           
 boolean equals(java.lang.Object b)
          Returns true if the two qnames are equivalent.
 java.lang.String getCanonicalName()
           
 java.lang.String getLocalName()
           
 java.lang.String getName()
           
 java.lang.String getNamespace()
           
 java.lang.String getNamespaceURI()
           
 java.lang.String getPrefix()
           
 int hashCode()
          Returns the hashcode of the qname.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

L

protected static L10N L
Constructor Detail

QName

public QName(java.lang.String qName)

QName

public QName(java.lang.String qName,
             java.lang.String namespace)

QName

public QName(java.lang.String prefix,
             java.lang.String localName,
             java.lang.String namespace)

QName

public QName(java.lang.String qName,
             java.lang.String prefix,
             java.lang.String localName,
             java.lang.String namespace)
Method Detail

getName

public java.lang.String getName()

getPrefix

public java.lang.String getPrefix()

getLocalName

public java.lang.String getLocalName()

getCanonicalName

public java.lang.String getCanonicalName()

getNamespace

public java.lang.String getNamespace()

getNamespaceURI

public java.lang.String getNamespaceURI()

hashCode

public int hashCode()
Returns the hashcode of the qname.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object b)
Returns true if the two qnames are equivalent.

Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object b)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object