Class AllXPathQuery

java.lang.Object
eu.europa.esig.dss.xml.common.xpath.AbstractXPathQuery
eu.europa.esig.dss.xml.common.xpath.AllXPathQuery
All Implemented Interfaces:
XPathQuery

public class AllXPathQuery extends AbstractXPathQuery
Gets all elements from the XML document matching the given XPath expression. Starts the execution from the root document element.
  • Constructor Details

    • AllXPathQuery

      public AllXPathQuery()
      Default constructor
  • Method Details

    • getXPathPreamble

      protected String getXPathPreamble()
      Description copied from class: AbstractXPathQuery
      Gets the beginning string of the XPath expression
      Specified by:
      getXPathPreamble in class AbstractXPathQuery
      Returns:
      String
    • isAll

      public boolean isAll()
      Description copied from interface: XPathQuery
      Gets whether all descendants matching the XPath expression are to be returned. If FALSE, only the children of the current element matching the XPath expression are extracted.
      Returns:
      whether all descendants matching the XPath expression are to be returned
    • isFromCurrentPosition

      public boolean isFromCurrentPosition()
      Description copied from interface: XPathQuery
      Gets whether the XPath expression execution starts from a node at the current position. if FALSE, the execution starts from the root element of the XML document.
      Returns:
      whether the XPath expression execution starts from a node at the current position