public class ConfiguredXpathNodeListQuery extends ConfiguredXpathQueryImpl implements XpathObjectQuery
XpathObjectQuery
implementation that returns a NodeList
.
Note that depending on the XPath engine; it is possible that
XpathQueryImpl.setAllowEmptyResults(Boolean)
may have no effect, as it may return a zero length
NodeList.
XpathObjectMetadataService
In the adapter configuration file this class is aliased as configured-xpath-nodelist-query which is the preferred alternative to the fully qualified classname when building your configuration.
logR
Constructor and Description |
---|
ConfiguredXpathNodeListQuery() |
ConfiguredXpathNodeListQuery(java.lang.String metadataKey,
java.lang.String xpath) |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.NodeList |
resolveXpath(org.w3c.dom.Document doc,
XPath xpath,
java.lang.String expression)
Executes an Xpath query.
|
createXpathQuery, getXpathQuery, setXpathQuery, verify
allowEmptyResults, getAllowEmptyResults, getMetadataKey, setAllowEmptyResults, setMetadataKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createXpathQuery, getMetadataKey, verify
public ConfiguredXpathNodeListQuery()
public ConfiguredXpathNodeListQuery(java.lang.String metadataKey, java.lang.String xpath)
public org.w3c.dom.NodeList resolveXpath(org.w3c.dom.Document doc, XPath xpath, java.lang.String expression) throws java.lang.Exception
XpathObjectQuery
Executes an Xpath query.
resolveXpath
in interface XpathObjectQuery
doc
- The XML documentxpath
- the Xpathexpression
- the expression.java.lang.Exception