public class MultiItemMetadataXpathQuery extends MetadataXpathQueryImpl implements XpathQuery
In the adapter configuration file this class is aliased as multi-item-metadata-xpath-query which is the preferred alternative to the fully qualified classname when building your configuration.
logR
Constructor and Description |
---|
MultiItemMetadataXpathQuery() |
MultiItemMetadataXpathQuery(java.lang.String metadataKey,
java.lang.String xpathMetadataKey) |
MultiItemMetadataXpathQuery(java.lang.String metadataKey,
java.lang.String xpathMetadataKey,
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, getXpathMetadataKey, setXpathMetadataKey, verify
allowEmptyResults, getAllowEmptyResults, getMetadataKey, setAllowEmptyResults, setMetadataKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createXpathQuery, getMetadataKey, verify
public MultiItemMetadataXpathQuery()
public MultiItemMetadataXpathQuery(java.lang.String metadataKey, java.lang.String xpathMetadataKey)
public MultiItemMetadataXpathQuery(java.lang.String metadataKey, java.lang.String xpathMetadataKey, 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 '|'