Class AbstractDocument.XPathNodeNSResolver

  • All Implemented Interfaces:
    org.w3c.dom.xpath.XPathNSResolver
    Enclosing class:
    AbstractDocument

    protected class AbstractDocument.XPathNodeNSResolver
    extends java.lang.Object
    implements org.w3c.dom.xpath.XPathNSResolver
    An XPathNSResolver that uses Node.lookupNamespaceURI.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.w3c.dom.Node contextNode
      The context node for namespace prefix resolution.
    • Constructor Summary

      Constructors 
      Constructor Description
      XPathNodeNSResolver​(org.w3c.dom.Node n)
      Creates a new XPathNodeNSResolver object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String lookupNamespaceURI​(java.lang.String prefix)
      DOM: Implements XPathNSResolver.lookupNamespaceURI(String).
      • Methods inherited from class java.lang.Object

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

      • contextNode

        protected org.w3c.dom.Node contextNode
        The context node for namespace prefix resolution.
    • Constructor Detail

      • XPathNodeNSResolver

        public XPathNodeNSResolver​(org.w3c.dom.Node n)
        Creates a new XPathNodeNSResolver object.
    • Method Detail

      • lookupNamespaceURI

        public java.lang.String lookupNamespaceURI​(java.lang.String prefix)
        DOM: Implements XPathNSResolver.lookupNamespaceURI(String).
        Specified by:
        lookupNamespaceURI in interface org.w3c.dom.xpath.XPathNSResolver