Class XPathQueryElementItem

java.lang.Object
eu.europa.esig.dss.xml.common.xpath.item.AbstractXPathQueryItem
eu.europa.esig.dss.xml.common.xpath.item.XPathQueryElementItem
All Implemented Interfaces:
XPathQueryItem

public class XPathQueryElementItem extends AbstractXPathQueryItem
Represents a single element to look for within an XPath expression.
  • Constructor Details

    • XPathQueryElementItem

      public XPathQueryElementItem(DSSElement element)
      Default constructor
      Parameters:
      element - DSSElement
  • Method Details

    • getElement

      public DSSElement getElement()
      Gets the DSSElement
      Returns:
      DSSElement
    • process

      protected boolean process(Node node)
      Description copied from class: AbstractXPathQueryItem
      This method executes the XPath query item requirement, and returns whether the node satisfies the rule
      Specified by:
      process in class AbstractXPathQueryItem
      Parameters:
      node - Node to verify
      Returns:
      TRUE if the condition matches, FALSE otherwise
    • isElementRelated

      public boolean isElementRelated()
      Description copied from interface: XPathQueryItem
      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

      public boolean isAttributeRelated()
      Description copied from interface: XPathQueryItem
      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
    • getQueryString

      public String getQueryString()
      Description copied from interface: XPathQueryItem
      Gets a string representation of the XPath expression chain item
      Returns:
      String