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 Summary
Fields Modifier and Type Field Description protected String[]
xpathQueries
-
Constructor Summary
Constructors Constructor Description XPathNodeScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
List<org.dom4j.Node>
scan(org.dom4j.Document document)
Scans the specified document for nodes that fit a certain condition.void
setXPathQueries(String... xpathQueries)
-
-
-
Field Detail
-
xpathQueries
protected String[] xpathQueries
-
-
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 interfaceNodeScanner
- Returns:
- the list of nodes that fit the condition
- Throws:
XmlException
-
-