Class QName

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

public class QName extends Object implements Serializable
This class represents a qualified name, which has a local name and a namespace URI.
Version:
1.0
Author:
Peter Brittenham
See Also:
  • Field Details

    • namespaceURI

      protected String namespaceURI
      Namespace URI.
    • localName

      protected String localName
      Local name.
  • Constructor Details

    • QName

      public QName(String namespaceURI, 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(Node node)
      Create a QName using the namespace URI and local name for a node.
      Parameters:
      node - the node element
  • Method Details

    • getNamespaceURI

      public String getNamespaceURI()
      Get the namespace URI.
      Returns:
      Returns the namespace URI for the QName.
    • getLocalName

      public 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(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 String toString()
      String representation of this object.
      Overrides:
      toString in class Object
      Returns:
      Returns the string representation of this object.