Interface NamespaceContext

  • All Known Implementing Classes:
    SimpleNamespaceContext

    public interface NamespaceContext
    Interface used by XpathEngine in order to map prefixes to namespace URIs.

    This is modelled after javax.xml.namespace.NamespaceContext but reduced to our needs.

    • Method Detail

      • getNamespaceURI

        String getNamespaceURI​(String prefix)
        Obtain the URI for a given prefix.

        Unlike the method in javax.xml.namespace.NamespaceContext doesn't have to implement any special handling for predefined prefix values.

        Parameters:
        prefix - prefix to look up
        Returns:
        null if the prefix is unknown.
      • getPrefixes

        Iterator getPrefixes()
        Get all prefixes of this context.
        Returns:
        all prefixes of this context