Class AbstractXPathQuery

java.lang.Object
eu.europa.esig.dss.xml.common.xpath.AbstractXPathQuery
All Implemented Interfaces:
XPathQuery
Direct Known Subclasses:
AllFromCurrentPositionXPathQuery, AllXPathQuery, FromCurrentPositionXPathQuery

public abstract class AbstractXPathQuery extends Object implements XPathQuery
Abstract representation of the XPathChain expression. Contains common code and implementation.
  • Constructor Details

    • AbstractXPathQuery

      protected AbstractXPathQuery()
      Default constructor
  • Method Details

    • getFirstXPathQueryItem

      public XPathQueryItem getFirstXPathQueryItem()
      Description copied from interface: XPathQuery
      Gets the first part of the XPath expression (usually the first element of the XPath string)
      Specified by:
      getFirstXPathQueryItem in interface XPathQuery
      Returns:
      XPathQueryItem
    • setNextItem

      public XPathQuery setNextItem(XPathQueryItem nextItem)
      Description copied from interface: XPathQuery
      Sets the next eu.europa.esig.dss.xml.common.definition.xpath.item.XPathItem as part of the XPath expression
      Specified by:
      setNextItem in interface XPathQuery
      Parameters:
      nextItem - XPathQueryItem to set
      Returns:
      this XPathQuery
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: XPathQuery
      Returns whether the XPath expression contains any XPath item definitions
      Specified by:
      isEmpty in interface XPathQuery
      Returns:
      TRUE if the XPath expression is empty, FALSE otherwise
    • getQueryString

      public String getQueryString()
      Description copied from interface: XPathQuery
      Gets a string representation of the XPath expression
      Specified by:
      getQueryString in interface XPathQuery
      Returns:
      String
    • getXPathPreamble

      protected abstract String getXPathPreamble()
      Gets the beginning string of the XPath expression
      Returns:
      String
    • toString

      public String toString()
      Overrides:
      toString in class Object