Class Namespace


  • public class Namespace
    extends java.lang.Object
    Author:
    Ronny Bräunlich
    • Constructor Summary

      Constructors 
      Constructor Description
      Namespace​(java.lang.String namespaceUri)  
      Namespace​(java.lang.String namespaceUri, java.lang.String alternativeUri)
      Creates a namespace with an alternative uri.
    • Constructor Detail

      • Namespace

        public Namespace​(java.lang.String namespaceUri)
      • Namespace

        public Namespace​(java.lang.String namespaceUri,
                         java.lang.String alternativeUri)
        Creates a namespace with an alternative uri.
        Parameters:
        namespaceUri -
        alternativeUri -
    • Method Detail

      • hasAlternativeUri

        public boolean hasAlternativeUri()
        If a namespace has changed over time it could feel responsible for handling the older one.
        Returns:
      • getNamespaceUri

        public java.lang.String getNamespaceUri()
      • getAlternativeUri

        public java.lang.String getAlternativeUri()
      • 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