Class JavaXmlXPathQueryExecutor

java.lang.Object
eu.europa.esig.dss.xml.utils.xpath.AbstractXPathQueryExecutor
eu.europa.esig.dss.xml.utils.xpath.JavaXmlXPathQueryExecutor
All Implemented Interfaces:
XPathQueryExecutor, XPathStringExecutor

public class JavaXmlXPathQueryExecutor extends AbstractXPathQueryExecutor implements XPathStringExecutor
Executes XPath expression query based on the javax.xml.xpath.XPathExpression class.
  • Constructor Details

    • JavaXmlXPathQueryExecutor

      public JavaXmlXPathQueryExecutor()
      Default constructor
  • Method Details

    • getNodeList

      public NodeList getNodeList(Node xmlNode, eu.europa.esig.dss.xml.common.xpath.XPathQuery xPathQuery)
      Description copied from interface: XPathQueryExecutor
      Returns the NodeList corresponding to the XPath query.
      Specified by:
      getNodeList in interface XPathQueryExecutor
      Parameters:
      xmlNode - The node where the search should be performed.
      xPathQuery - XPathQuery
      Returns:
      the NodeList corresponding to the XPath query
    • getNodeList

      public NodeList getNodeList(Node xmlNode, String xPathString)
      Returns the NodeList corresponding to the XPath query.
      Specified by:
      getNodeList in interface XPathStringExecutor
      Parameters:
      xmlNode - The node where the search should be performed.
      xPathString - String XPath query string
      Returns:
      the NodeList corresponding to the XPath query
    • createXPathExpression

      protected XPathExpression createXPathExpression(String xpathString)
      This method creates a new instance of XPathExpression with the given xpath query
      Parameters:
      xpathString - String representing the XPath expression to be executed
      Returns:
      an instance of XPathExpression for the given xpathString