Class Namespace


  • public class Namespace
    extends java.lang.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

      • getNamespace

        public static Namespace getNamespace​(java.lang.String prefix,
                                             java.lang.String uri)
      • getNamespace

        public static Namespace getNamespace​(java.lang.String uri)
      • getPrefix

        public java.lang.String getPrefix()
      • getURI

        public java.lang.String getURI()
      • isSame

        public boolean isSame​(java.lang.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object