|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter
org.alfresco.repo.content.metadata.xml.XmlMetadataExtracter
public class XmlMetadataExtracter
A metadata extractor that selects an appropiate workder for the extraction.
The selectors are used to find an extracter most appropriate of a given XML document. The chosen extracter is then asked to extract the values, passing through the overwrite policy as AbstractMappingMetadataExtracter.setOverwritePolicy(String) on this instance. The overwrite policy of the embedded extracters is not relevant unless they are used separately in another context.
ContentWorkerSelector,
MetadataExtracter| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.alfresco.repo.content.metadata.MetadataExtracter |
|---|
MetadataExtracter.OverwritePolicy |
| Field Summary | |
|---|---|
static java.lang.String[] |
SUPPORTED_MIMETYPES
|
| Fields inherited from class org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter |
|---|
NAMESPACE_PROPERTY_PREFIX, supportedDateFormats |
| Constructor Summary | |
|---|---|
XmlMetadataExtracter()
Default constructor |
|
| Method Summary | |
|---|---|
java.util.Map |
extract(org.alfresco.service.cmr.repository.ContentReader reader,
MetadataExtracter.OverwritePolicy overwritePolicy,
java.util.Map destination,
java.util.Map mapping)
Selects and extracter to perform the work and redirects to it. |
protected java.util.Map |
extractRaw(org.alfresco.service.cmr.repository.ContentReader reader)
This is not required as the |
protected java.util.Map |
getDefaultMapping()
It is not possible to have any default mappings, but something has to be returned. |
protected void |
init()
Provides a hook point for implementations to perform initialization. |
void |
setSelectors(java.util.List selectors)
Sets the list of metadata selectors to use to find the extracter to use, given some content. |
| Methods inherited from class org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter |
|---|
checkIsSupported, extract, extract, getExtractionTime, getMapping, getMimetypeService, getReliability, isSupported, makeDate, newRawMap, putRawValue, readMappingProperties, readMappingProperties, register, setDictionaryService, setFailOnTypeConversion, setInheritDefaultMapping, setMapping, setMappingProperties, setMimetypeService, setOverwritePolicy, setOverwritePolicy, setRegistry, setSupportedDateFormats, setSupportedMimetypes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String[] SUPPORTED_MIMETYPES
| Constructor Detail |
|---|
public XmlMetadataExtracter()
| Method Detail |
|---|
public void setSelectors(java.util.List selectors)
selectors - A list of selectorsprotected void init()
AbstractMappingMetadataExtracterdefault mappings will be requested during
initialization.
init in class AbstractMappingMetadataExtracterprotected java.util.Map getDefaultMapping()
getDefaultMapping in class AbstractMappingMetadataExtracterAbstractMappingMetadataExtracter.setInheritDefaultMapping(boolean inherit)
public java.util.Map extract(org.alfresco.service.cmr.repository.ContentReader reader,
MetadataExtracter.OverwritePolicy overwritePolicy,
java.util.Map destination,
java.util.Map mapping)
extract in interface MetadataExtracterextract in class AbstractMappingMetadataExtracterreader - the source of the contentoverwritePolicy - the policy stipulating how the system properties must be
overwritten if presentdestination - the map of properties to populate (essentially a return value)mapping - a mapping of document-specific properties to system properties.
MetadataExtracter.extract(ContentReader, Map)
protected java.util.Map extractRaw(org.alfresco.service.cmr.repository.ContentReader reader)
throws java.lang.Throwable
extractRaw in class AbstractMappingMetadataExtracterreader - the document to extract the values from. This stream provided by
the reader must be closed if accessed directly.
java.lang.ThrowableAbstractMappingMetadataExtracter.getDefaultMapping()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||