Class 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 Detail

      • xpathQueries

        protected String[] xpathQueries
    • Constructor Detail

      • XPathNodeScanner

        public XPathNodeScanner()
    • Method Detail

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object