public class XPathQueryExecutor extends Object implements ParametersCallback
| Constructor and Description |
|---|
XPathQueryExecutor(ThreadLocal<Node> context,
Document document,
Resource xpathResource,
scriptella.driver.xpath.XPathExpressionCompiler compiler,
AbstractConnection.StatementCounter counter,
boolean returnArrays)
Crates executor to query document using a specified xpath expression.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(QueryCallback queryCallback,
ParametersCallback parentParameters)
Executes a query and notifies queryCallback for each found node.
|
Object |
getParameter(String name) |
public XPathQueryExecutor(ThreadLocal<Node> context, Document document, Resource xpathResource, scriptella.driver.xpath.XPathExpressionCompiler compiler, AbstractConnection.StatementCounter counter, boolean returnArrays)
context - thread local for sharing current node between queries.
The instance of thread local is shared between all connection queries.document - document to query.xpathResource - resource with xpath expression.compiler - xpath expression compilercounter - statement counter.returnArrays - true if string arrays should be returned for variables.public void execute(QueryCallback queryCallback, ParametersCallback parentParameters)
queryCallback - callback to notify for each found node.parentParameters - parent parameters to inherit.public Object getParameter(String name)
getParameter in interface ParametersCallbackCopyright © 2006–2019. All rights reserved.