public class MultiItemConfiguredXpathQuery extends ConfiguredXpathQueryImpl implements XpathQuery
In the adapter configuration file this class is aliased as multi-item-configured-xpath-query which is the preferred alternative to the fully qualified classname when building your configuration.
logR
Constructor and Description |
---|
MultiItemConfiguredXpathQuery() |
MultiItemConfiguredXpathQuery(java.lang.String metadataKey,
java.lang.String xpath) |
MultiItemConfiguredXpathQuery(java.lang.String metadataKey,
java.lang.String xpath,
java.lang.String separator) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSeparator() |
MetadataElement |
resolveXpath(org.w3c.dom.Document doc,
XPath xpath,
java.lang.String expr)
Executes an Xpath query.
|
void |
setSeparator(java.lang.String s)
Set the separator used to separate items.
|
createXpathQuery, getXpathQuery, setXpathQuery, verify
allowEmptyResults, getAllowEmptyResults, getMetadataKey, setAllowEmptyResults, setMetadataKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createXpathQuery, getMetadataKey, verify
public MultiItemConfiguredXpathQuery()
public MultiItemConfiguredXpathQuery(java.lang.String metadataKey, java.lang.String xpath)
public MultiItemConfiguredXpathQuery(java.lang.String metadataKey, java.lang.String xpath, java.lang.String separator)
public MetadataElement resolveXpath(org.w3c.dom.Document doc, XPath xpath, java.lang.String expr) throws CoreException
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 valueCoreException
public java.lang.String getSeparator()
public void setSeparator(java.lang.String s)
s
- the separator, default '|'