Class Namespace


  • public class Namespace
    extends Object
    Namespace
    • Field Detail

      • EMPTY_NAMESPACE

        public static final Namespace EMPTY_NAMESPACE
      • XML_NAMESPACE

        public static final Namespace XML_NAMESPACE
      • XMLNS_NAMESPACE

        public static final Namespace XMLNS_NAMESPACE
    • Method Detail

      • getPrefix

        public String getPrefix()
      • getURI

        public String getURI()
      • isSame

        public boolean isSame​(String namespaceURI)
        Returns true if the a Namespace built from the specified namespaceURI is equal to this namespace object.
        Parameters:
        namespaceURI - A namespace URI to be compared to this namespace instance.
        Returns:
        true if the a Namespace built from the specified namespaceURI is equal to this namespace object; false otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object