public class MetadataXpathNodeListQuery extends MetadataXpathQueryImpl implements XpathObjectQuery
NodeList
from an xpath derived from metadata.
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 metadata-xpath-nodelist-query which is the preferred alternative to the fully qualified classname when building your configuration.
logR
Constructor and Description |
---|
MetadataXpathNodeListQuery() |
MetadataXpathNodeListQuery(java.lang.String metadataKey,
java.lang.String xpathMetadataKey) |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.NodeList |
resolveXpath(org.w3c.dom.Document doc,
XPath xpath,
java.lang.String expr)
Executes an Xpath query.
|
createXpathQuery, getXpathMetadataKey, setXpathMetadataKey, verify
allowEmptyResults, getAllowEmptyResults, getMetadataKey, setAllowEmptyResults, setMetadataKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createXpathQuery, getMetadataKey, verify
public MetadataXpathNodeListQuery()
public MetadataXpathNodeListQuery(java.lang.String metadataKey, java.lang.String xpathMetadataKey)
public org.w3c.dom.NodeList resolveXpath(org.w3c.dom.Document doc, XPath xpath, java.lang.String expr) throws CoreException
XpathObjectQuery
Executes an Xpath query.
resolveXpath
in interface XpathObjectQuery
doc
- The XML documentxpath
- the Xpathexpr
- the expression.CoreException