net.sf.csutils.core.model
Class QName

java.lang.Object
  extended by net.sf.csutils.core.model.QName

public class QName
extends java.lang.Object

Kind of a qualified name, but without the restrictions of NCName on the local part.


Constructor Summary
QName(java.lang.String pLocalPart)
          Creates a new instance with the default namespace and no prefix.
QName(java.lang.String pUri, java.lang.String pLocalPart)
          Creates a new instance without prefix.
QName(java.lang.String pUri, java.lang.String pLocalPart, java.lang.String pPrefix)
          Creates a new instance with the given namespace URI, local part, and prefix.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLocalPart()
          Returns the local part.
 java.lang.String getNamespaceURI()
          Returns the namespace URI.
 java.lang.String getPrefix()
          Returns the namespace prefix.
 int hashCode()
           
 java.lang.String toString()
           
static java.lang.String toString(QName pQName)
           
static QName valueOf(java.lang.String pValue)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QName

public QName(java.lang.String pLocalPart)
Creates a new instance with the default namespace and no prefix.

Parameters:
pLocalPart - The qualified names local part.

QName

public QName(java.lang.String pUri,
             java.lang.String pLocalPart)
Creates a new instance without prefix.

Parameters:
pUri - The qualified names namespace URI.
pLocalPart - The qualified names local part.

QName

public QName(java.lang.String pUri,
             java.lang.String pLocalPart,
             java.lang.String pPrefix)
Creates a new instance with the given namespace URI, local part, and prefix.

Parameters:
pUri - The qualified names namespace URI.
pLocalPart - The qualified names local part.
pPrefix - The qualified names prefix.
Method Detail

getNamespaceURI

public java.lang.String getNamespaceURI()
Returns the namespace URI.

Returns:
The qualified names namespace URI.

getLocalPart

public java.lang.String getLocalPart()
Returns the local part.

Returns:
The qualified names local part.

getPrefix

public java.lang.String getPrefix()
Returns the namespace prefix.

Returns:
The qualified names prefix.

valueOf

public static QName valueOf(java.lang.String pValue)

toString

public static java.lang.String toString(QName pQName)

toString

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2009-2010. All Rights Reserved.