Class AllFromCurrentPositionXPathQuery

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

public class AllFromCurrentPositionXPathQuery extends AbstractXPathQuery
Gets all elements within the current parent matching the XPath expression. The XPath expression will look search for matches within element descendants as well as within the direct children.
  • Constructor Details

    • AllFromCurrentPositionXPathQuery

      public AllFromCurrentPositionXPathQuery()
      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