Interface XPathQueryItem

All Known Subinterfaces:
XPathQueryParameter
All Known Implementing Classes:
AbstractXPathQueryItem, AbstractXPathQueryParameter, XPathQueryAnyItem, XPathQueryAttributeItem, XPathQueryAttributeParameter, XPathQueryElementItem, XPathQueryEndItem, XPathQueryIdentifierParameter, XPathQueryNotChildOfParameter

public interface XPathQueryItem
Represents a single XPath expression item.
  • Method Details

    • nextItem

      XPathQueryItem nextItem()
      Gets the next XPath chain item, if any
      Returns:
      XPathQueryItem if next chain item is present, FALSE otherwise
    • setNextItem

      XPathQueryItem setNextItem(XPathQueryItem nextItem)
      Sets the next eu.europa.esig.dss.xml.common.definition.xpath.item.XPathChainItem as part of the XPath expression
      Parameters:
      nextItem - XPathQueryItem to set
      Returns:
      XPathQueryItem that has been set
    • matchNode

      boolean matchNode(Node node)
      This method verifies whether the given node matches the XPathQueryItem
      Parameters:
      node - Node to be evaluated against the XPath Query Item
      Returns:
      TRUE if the Node matches the value, FALSE otherwise
    • addParameter

      void addParameter(XPathQueryParameter parameter)
      Adds a parameter to the given XPath query item
      Parameters:
      parameter - XPathQueryParameter
    • getParameters

      List<XPathQueryParameter> getParameters()
      Gets parameters related to the given XPathQueryItem, if any
      Returns:
      a list of XPathQueryParameters
    • isElementRelated

      boolean isElementRelated()
      Gets whether XPath query item is related to an Element node processing
      Returns:
      TRUE if XPath query item is related to an Element node processing, FALSE otherwise
    • isAttributeRelated

      boolean isAttributeRelated()
      Gets whether XPath query item is related to an Attribute node processing
      Returns:
      TRUE if XPath query item is related to an Attribute node processing, FALSE otherwise
    • isEmpty

      boolean isEmpty()
      Gets whether the XPath query item is empty
      Returns:
      TRUE if the XPath query item is empty, FALSE otherwise
    • getQueryString

      String getQueryString()
      Gets a string representation of the XPath expression chain item
      Returns:
      String