scriptella.driver.xpath
Class XPathQueryExecutor
java.lang.Object
scriptella.driver.xpath.XPathQueryExecutor
- All Implemented Interfaces:
- scriptella.spi.ParametersCallback
public class XPathQueryExecutor
- extends java.lang.Object
- implements scriptella.spi.ParametersCallback
Executor for XPath queries.
- Version:
- 1.0
- Author:
- Fyodor Kupolov
|
Constructor Summary |
XPathQueryExecutor(org.w3c.dom.Document document,
scriptella.spi.Resource xpathResource,
scriptella.driver.xpath.XPathExpressionCompiler compiler,
scriptella.spi.AbstractConnection.StatementCounter counter)
Crates executor to query document using a specified xpath expression. |
|
Method Summary |
void |
execute(scriptella.spi.QueryCallback queryCallback,
scriptella.spi.ParametersCallback parentParameters)
Executes a query and notifies queryCallback for each found node. |
java.lang.Object |
getParameter(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathQueryExecutor
public XPathQueryExecutor(org.w3c.dom.Document document,
scriptella.spi.Resource xpathResource,
scriptella.driver.xpath.XPathExpressionCompiler compiler,
scriptella.spi.AbstractConnection.StatementCounter counter)
- Crates executor to query document using a specified xpath expression.
- Parameters:
document - document to query.xpathResource - resource with xpath expression.counter - statement counter.
execute
public void execute(scriptella.spi.QueryCallback queryCallback,
scriptella.spi.ParametersCallback parentParameters)
- Executes a query and notifies queryCallback for each found node.
- Parameters:
queryCallback - callback to notify for each found node.parentParameters - parent parameters to inherit.
getParameter
public java.lang.Object getParameter(java.lang.String name)
- Specified by:
getParameter in interface scriptella.spi.ParametersCallback
Copyright © Copyright 2006-2009 The Scriptella Project Team.