Class QName

  • All Implemented Interfaces:
    Serializable

    public class QName
    extends Object
    implements Serializable
    A qualified name: a combination of an optional namespace prefix and an local name.
    Version:
    $Revision: 652925 $ $Date: 2008-05-02 17:05:41 -0500 (Fri, 02 May 2008) $
    Author:
    Dmitri Plotnikov
    See Also:
    Serialized Form
    • Constructor Detail

      • QName

        public QName​(String qualifiedName)
        Create a new QName.
        Parameters:
        qualifiedName - value
      • QName

        public QName​(String prefix,
                     String localName)
        Create a new QName.
        Parameters:
        prefix - ns
        localName - String
    • Method Detail

      • getPrefix

        public String getPrefix()
        Get the prefix of this QName.
        Returns:
        String
      • getName

        public String getName()
        Get the local name.
        Returns:
        String
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object