org.apache.tika.xmp.convert
Class GenericConverter
java.lang.Object
org.apache.tika.xmp.convert.AbstractConverter
org.apache.tika.xmp.convert.GenericConverter
- All Implemented Interfaces:
- ITikaToXMPConverter
public class GenericConverter
- extends AbstractConverter
Trys to convert as much of the properties in the Metadata map to XMP namespaces.
only those properties will be cnverted where the name contains a prefix and this prefix
correlates with a "known" prefix for a standard namespace. For example "dc:title" would be mapped
to the "title" property in the DublinCore namespace.
|
Method Summary |
Set<Namespace> |
getAdditionalNamespaces()
Every Converter has to provide information about namespaces that are used additionally to the
core set of XMP namespaces. |
com.adobe.xmp.XMPMeta |
process(org.apache.tika.metadata.Metadata metadata)
Converts a Tika Metadata-object into an XMPMeta containing the useful
properties. |
| Methods inherited from class org.apache.tika.xmp.convert.AbstractConverter |
createArrayProperty, createArrayProperty, createCommaSeparatedArray, createCommaSeparatedArray, createLangAltProperty, createLangAltProperty, createProperty, createProperty, getXMPMeta, registerNamespaces, setMetadata |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericConverter
public GenericConverter()
throws org.apache.tika.exception.TikaException
- Throws:
org.apache.tika.exception.TikaException
process
public com.adobe.xmp.XMPMeta process(org.apache.tika.metadata.Metadata metadata)
throws com.adobe.xmp.XMPException
- Description copied from interface:
ITikaToXMPConverter
- Converts a Tika
Metadata-object into an XMPMeta containing the useful
properties.
- Specified by:
process in interface ITikaToXMPConverter- Specified by:
process in class AbstractConverter
- Parameters:
metadata - a Tika Metadata object
- Returns:
- Returns an XMPMeta object.
- Throws:
com.adobe.xmp.XMPException - If an error occurs during the creation of the XMP object.
getAdditionalNamespaces
public Set<Namespace> getAdditionalNamespaces()
- Description copied from class:
AbstractConverter
- Every Converter has to provide information about namespaces that are used additionally to the
core set of XMP namespaces.
- Specified by:
getAdditionalNamespaces in class AbstractConverter
- Returns:
- the additional namespace information
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.