Class XPathQueryAttributeItem

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

public class XPathQueryAttributeItem extends AbstractXPathQueryItem
Gets XPath expression item allowing to access an attribute value of the current element. This class is normally used for attribute value extraction, as an alternative to XPathQueryByAttribute
  • Constructor Details

    • XPathQueryAttributeItem

      public XPathQueryAttributeItem(DSSAttribute attribute)
      Default constructor to extract an element containing the given attribute (any value is accepted)
      Parameters:
      attribute - DSSAttribute
  • Method Details

    • getAttribute

      public DSSAttribute getAttribute()
      Gets the corresponding DSSAttribute
      Returns:
      DSSAttribute
    • 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