Class XPathNSResolverImpl

java.lang.Object
org.loboevolution.html.dom.xpath.XPathNSResolverImpl
All Implemented Interfaces:
XPathNSResolver

public class XPathNSResolverImpl extends Object implements XPathNSResolver

XPathNSResolverImpl class.

  • Constructor Details

    • XPathNSResolverImpl

      public XPathNSResolverImpl(Node xpathExpressionContext)

      Constructor for XPathNSResolverImpl.

      Parameters:
      xpathExpressionContext - a Node object.
  • Method Details

    • lookupNamespaceURI

      public String lookupNamespaceURI(String prefix)
      Look up the namespace URI associated to the given namespace prefix. The XPath evaluator must never call this with a null or empty argument, because the result of doing this is undefined.
      Specified by:
      lookupNamespaceURI in interface XPathNSResolver
      Parameters:
      prefix - The prefix to look for.
      Returns:
      Returns the associated namespace URI or null if none is found.