Interface NamespaceResolver

    • Method Detail

      • getURI

        String getURI​(String prefix)
               throws NamespaceException
        Returns the URI to which the given prefix is mapped.
        Parameters:
        prefix - namespace prefix
        Returns:
        the namespace URI to which the given prefix is mapped.
        Throws:
        NamespaceException - if the prefix is unknown.
      • getPrefix

        String getPrefix​(String uri)
                  throws NamespaceException
        Returns the prefix which is mapped to the given URI.
        Parameters:
        uri - namespace URI
        Returns:
        the prefix mapped to the given URI.
        Throws:
        NamespaceException - if the URI is unknown.