public class XPathContentWorkerSelector extends java.lang.Object implements ContentWorkerSelector
Currently, the only namespaces supported are those contained in the XML documents being tested.
| Constructor and Description |
|---|
XPathContentWorkerSelector() |
| Modifier and Type | Method and Description |
|---|---|
ContentWorker |
getWorker(org.alfresco.service.cmr.repository.ContentReader reader)
Execute the XPath statements, in order, against the document.
|
void |
init()
Checks the configuration.
|
void |
setSupportedMimetypes(java.util.Set supportedMimetypes)
Optionally set the mimetypes supported.
|
void |
setWorkers(java.util.Map workers)
Set the workers to use.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic void setSupportedMimetypes(java.util.Set supportedMimetypes)
supportedMimetypes - the list of mimetypes. The default is text/xml.public void setWorkers(java.util.Map workers)
workers - a map of ContentWorker instances
keyed by XPath statementspublic void init()
public ContentWorker getWorker(org.alfresco.service.cmr.repository.ContentReader reader)
getWorker in interface ContentWorkerSelectorreader - the content reader, providing the actual stream metadata
and even the stream, if required.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.