org.apache.wsil
Class QName

java.lang.Object
  extended by org.apache.wsil.QName
All Implemented Interfaces:
java.io.Serializable

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

This class represents a qualified name, which has a local name and a namespace URI.

Version:
1.0
Author:
Peter Brittenham
See Also:
Serialized Form

Field Summary
protected  java.lang.String localName
          Local name.
protected  java.lang.String namespaceURI
          Namespace URI.
 
Constructor Summary
QName(org.w3c.dom.Node node)
          Create a QName using the namespace URI and local name for a node.
QName(java.lang.String namespaceURI, java.lang.String localName)
          Create a QName using a namespace URI and a local name.
 
Method Summary
 boolean equals(org.w3c.dom.Node node)
          Determine if the QName for the input Node equals this QName.
 boolean equals(QName qname)
          Determine if the input QName equals this QName.
 java.lang.String getLocalName()
          Get the local name.
 java.lang.String getNamespaceURI()
          Get the namespace URI.
 java.lang.String toString()
          String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

namespaceURI

protected java.lang.String namespaceURI
Namespace URI.


localName

protected java.lang.String localName
Local name.

Constructor Detail

QName

public QName(java.lang.String namespaceURI,
             java.lang.String localName)
Create a QName using a namespace URI and a local name.

Parameters:
namespaceURI - the namespace URI
localName - the local name

QName

public QName(org.w3c.dom.Node node)
Create a QName using the namespace URI and local name for a node.

Parameters:
node - the node element
Method Detail

getNamespaceURI

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

Returns:
Returns the namespace URI for the QName.

getLocalName

public java.lang.String getLocalName()
Get the local name.

Returns:
Returns the local name part of the QName.

equals

public boolean equals(QName qname)
Determine if the input QName equals this QName.

Parameters:
qname - the QName to compare
Returns:
Returns true if the QNames are equal.

equals

public boolean equals(org.w3c.dom.Node node)
Determine if the QName for the input Node equals this QName.

Parameters:
node - the DOM node
Returns:
Returns true if the specified node was the same QName.

toString

public java.lang.String toString()
String representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
Returns the string representation of this object.


Copyright ? 2001 International Business Machines Corporation. All Rights Reserved.