Class FUN_XPath.UniversalNamespaceResolver

  • All Implemented Interfaces:
    javax.xml.namespace.NamespaceContext
    Enclosing class:
    FUN_XPath

    public static class FUN_XPath.UniversalNamespaceResolver
    extends java.lang.Object
    implements javax.xml.namespace.NamespaceContext
    • Constructor Summary

      Constructors 
      Constructor Description
      UniversalNamespaceResolver​(org.w3c.dom.Document document)
      This constructor stores the source document to search the namespaces in it.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getNamespaceURI​(java.lang.String prefix)
      The lookup for the namespace uris is delegated to the stored document.
      java.lang.String getPrefix​(java.lang.String namespaceURI)
      This method is not needed in this context, but can be implemented in a similar way.
      java.util.Iterator getPrefixes​(java.lang.String namespaceURI)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UniversalNamespaceResolver

        public UniversalNamespaceResolver​(org.w3c.dom.Document document)
        This constructor stores the source document to search the namespaces in it.
        Parameters:
        document - source document
    • Method Detail

      • getNamespaceURI

        public java.lang.String getNamespaceURI​(java.lang.String prefix)
        The lookup for the namespace uris is delegated to the stored document.
        Specified by:
        getNamespaceURI in interface javax.xml.namespace.NamespaceContext
        Parameters:
        prefix - to search for
        Returns:
        uri
      • getPrefix

        public java.lang.String getPrefix​(java.lang.String namespaceURI)
        This method is not needed in this context, but can be implemented in a similar way.
        Specified by:
        getPrefix in interface javax.xml.namespace.NamespaceContext
      • getPrefixes

        public java.util.Iterator getPrefixes​(java.lang.String namespaceURI)
        Specified by:
        getPrefixes in interface javax.xml.namespace.NamespaceContext