Class QualifiedName

    • Constructor Detail

      • QualifiedName

        public QualifiedName​(String namespaceURI,
                             String localPart,
                             String prefix)
    • Method Detail

      • toQName

        public QName toQName()
        Description copied from interface: QualifiedName
        Converts this QualifiedName to a valid xsd:QName by unescaping \-characters in the local names, and _-encoding the local name.
        Specified by:
        toQName in interface QualifiedName
        Returns:
        a valid javax.xml.namespace.QName
        See Also:
        a reversible encoding
      • getLocalPart

        public String getLocalPart()
        Description copied from interface: QualifiedName
        Get the local part of this QualifiedName.
        Specified by:
        getLocalPart in interface QualifiedName
        Returns:
        a string, the local part of this QualifiedName.
      • setLocalPart

        public void setLocalPart​(String local)
        Description copied from interface: QualifiedName
        Set the local part of this QualifiedName.
        Specified by:
        setLocalPart in interface QualifiedName
        Parameters:
        local - the local part
      • getNamespaceURI

        public String getNamespaceURI()
        Description copied from interface: QualifiedName
        Get the Namespace URI of this QualifiedName.
        Specified by:
        getNamespaceURI in interface QualifiedName
        Returns:
        a string, namespace URI of this QualifiedName.
      • setNamespaceURI

        public void setNamespaceURI​(String namespaceURI)
        Description copied from interface: QualifiedName
        Set the Namespace URI of this QualifiedName.
        Specified by:
        setNamespaceURI in interface QualifiedName
        Parameters:
        namespaceURI - the namespace URI
      • getPrefix

        public String getPrefix()
        Description copied from interface: QualifiedName
        Get the prefix of this Qualified Name.
        Specified by:
        getPrefix in interface QualifiedName
        Returns:
        a string, prefix for the Qualifed Name.
      • hashCode

        public final int hashCode()
        Description copied from interface: QualifiedName

        Generate the hash code for this QualifiedName.

        The hash code is calculated using both the Namespace URI and the local part of the QualifiedName. The prefix is NOT used to calculate the hash code.

        This method satisfies the general contract of Object.hashCode().

        Specified by:
        hashCode in interface QualifiedName
        Overrides:
        hashCode in class Object
        Returns:
        hash code for this QualifiedName Object