Class QName

  • All Implemented Interfaces:
    Serializable

    public class QName
    extends Object
    implements Serializable
    Represents a qualified name of an XML element or an XML attribute.

    Note: This class allows to carry a namespace prefix but it is not used in the equals() and hashCode() methods.

    See Also:
    Serialized Form
    • Constructor Detail

      • QName

        public QName​(String namespaceURI,
                     String prefix,
                     String localName)
        Main constructor.
        Parameters:
        namespaceURI - the namespace URI
        prefix - the namespace prefix, may be null
        localName - the local name
      • QName

        public QName​(String namespaceURI,
                     String qName)
        Main constructor.
        Parameters:
        namespaceURI - the namespace URI
        qName - the qualified name