Class XPathQueryNotChildOfParameter

All Implemented Interfaces:
XPathQueryItem, XPathQueryParameter

public class XPathQueryNotChildOfParameter extends AbstractXPathQueryParameter
Represents an item within an XPath expression filtering out elements with a particular parent element.
  • Constructor Details

    • XPathQueryNotChildOfParameter

      public XPathQueryNotChildOfParameter(DSSElement parentElement)
      Default constructor
      Parameters:
      parentElement - DSSElement to be avoided
  • Method Details

    • getParentElement

      public DSSElement getParentElement()
      Gets the parent element to be avoided
      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