Class MetadataXpathNodeListQuery
java.lang.Object
com.adaptris.core.services.metadata.xpath.XpathQueryImpl
com.adaptris.core.services.metadata.xpath.MetadataXpathQueryImpl
com.adaptris.core.services.metadata.xpath.MetadataXpathNodeListQuery
- All Implemented Interfaces:
XpathMetadataQuery
,XpathObjectQuery
XpathQuery implementation that retuns a
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.
- See Also:
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.
-
Field Summary
Fields inherited from class com.adaptris.core.services.metadata.xpath.XpathQueryImpl
logR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveXpath
(Document doc, XPath xpath, String expr) Executes an Xpath query.Methods inherited from class com.adaptris.core.services.metadata.xpath.MetadataXpathQueryImpl
createXpathQuery, getXpathMetadataKey, setXpathMetadataKey, verify
Methods inherited from class com.adaptris.core.services.metadata.xpath.XpathQueryImpl
allowEmptyResults, asXmlString, getAllowEmptyResults, getAsXmlString, getMetadataKey, setAllowEmptyResults, setAsXmlString, setMetadataKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.adaptris.core.services.metadata.xpath.XpathMetadataQuery
createXpathQuery, getMetadataKey, verify
-
Constructor Details
-
MetadataXpathNodeListQuery
public MetadataXpathNodeListQuery() -
MetadataXpathNodeListQuery
-
-
Method Details
-
resolveXpath
Description copied from interface:XpathObjectQuery
Executes an Xpath query.
- Specified by:
resolveXpath
in interfaceXpathObjectQuery
- Parameters:
doc
- The XML documentxpath
- the Xpathexpr
- the expression.- Returns:
- the appropriate value.
- Throws:
CoreException
-