public class GenericConverter extends AbstractConverter
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.meta
Constructor and Description |
---|
GenericConverter() |
Modifier and Type | Method and Description |
---|---|
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(Metadata metadata)
Converts a Tika
Metadata -object into an XMPMeta containing the useful
properties. |
createArrayProperty, createArrayProperty, createCommaSeparatedArray, createCommaSeparatedArray, createLangAltProperty, createLangAltProperty, createProperty, createProperty, getXMPMeta, registerNamespaces, setMetadata
public GenericConverter() throws TikaException
TikaException
public com.adobe.xmp.XMPMeta process(Metadata metadata) throws com.adobe.xmp.XMPException
ITikaToXMPConverter
Metadata
-object into an XMPMeta
containing the useful
properties.process
in interface ITikaToXMPConverter
process
in class AbstractConverter
metadata
- a Tika Metadata objectcom.adobe.xmp.XMPException
- If an error occurs during the creation of the XMP object.public Set<Namespace> getAdditionalNamespaces()
AbstractConverter
getAdditionalNamespaces
in class AbstractConverter
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.