Class XPathNodeScanner

java.lang.Object
org.craftercms.core.util.xml.impl.XPathNodeScanner
All Implemented Interfaces:
NodeScanner

public class XPathNodeScanner extends Object implements NodeScanner
NodeScanner implementation that scans the document by executing XPath queries.
Author:
Alfonso Vásquez
  • Field Details

    • xpathQueries

      protected String[] xpathQueries
  • Constructor Details

    • XPathNodeScanner

      public XPathNodeScanner()
  • Method Details

    • setXPathQueries

      public void setXPathQueries(String... xpathQueries)
    • scan

      public List<org.dom4j.Node> scan(org.dom4j.Document document) throws XmlException
      Description copied from interface: NodeScanner
      Scans the specified document for nodes that fit a certain condition.
      Specified by:
      scan in interface NodeScanner
      Returns:
      the list of nodes that fit the condition
      Throws:
      XmlException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object