public class MetadataXpathQuery extends MetadataXpathQueryImpl implements XpathQuery
In the adapter configuration file this class is aliased as metadata-xpath-query which is the preferred alternative to the fully qualified classname when building your configuration.
logR
Constructor and Description |
---|
MetadataXpathQuery() |
MetadataXpathQuery(java.lang.String metadataKey,
java.lang.String xpathMetadataKey) |
Modifier and Type | Method and Description |
---|---|
MetadataElement |
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 MetadataXpathQuery()
public MetadataXpathQuery(java.lang.String metadataKey, java.lang.String xpathMetadataKey)
public MetadataElement resolveXpath(org.w3c.dom.Document doc, XPath xpath, java.lang.String expr) throws java.lang.Exception
XpathQuery
Executes an Xpath query.
resolveXpath
in interface XpathObjectQuery
resolveXpath
in interface XpathQuery
doc
- The XML documentxpath
- the XPath
object to use to resolve any expressions.expr
- the xpath expressionMetadataElement
with the configured key and the extracted text valuejava.lang.Exception