Interface NamespaceContext

  • All Known Implementing Classes:
    ElementNamespaceContext

    public interface NamespaceContext

    Specification of the interface required by ContextSupport for delegation of namespace prefix binding resolution.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String translateNamespacePrefix​(java.lang.String prefix)
      Translate a namespace prefix into a URI Translate the prefix used in a component of an XPath into its expanded namespace URI.
    • Method Detail

      • translateNamespacePrefix

        java.lang.String translateNamespacePrefix​(java.lang.String prefix)
        Translate a namespace prefix into a URI Translate the prefix used in a component of an XPath into its expanded namespace URI.

        Parameters:
        prefix - The namespace prefix
        Returns:
        The URI matching the prefix
        See Also:
        ContextSupport.setNamespaceContext(com.werken.xpath.NamespaceContext)