Package 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 theMetadatamap 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.
- 
- 
Field Summary- 
Fields inherited from class org.apache.tika.xmp.convert.AbstractConvertermeta
 
- 
 - 
Constructor SummaryConstructors Constructor Description GenericConverter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method 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.internal.xmp.XMPMetaprocess(Metadata metadata)Converts a TikaMetadata-object into anXMPMetacontaining the useful properties.- 
Methods inherited from class org.apache.tika.xmp.convert.AbstractConvertercreateArrayProperty, createArrayProperty, createCommaSeparatedArray, createCommaSeparatedArray, createLangAltProperty, createLangAltProperty, createProperty, createProperty, getXMPMeta, registerNamespaces, setMetadata
 
- 
 
- 
- 
- 
Constructor Detail- 
GenericConverterpublic GenericConverter() throws TikaException- Throws:
- TikaException
 
 
- 
 - 
Method Detail- 
processpublic com.adobe.internal.xmp.XMPMeta process(Metadata metadata) throws com.adobe.internal.xmp.XMPException Description copied from interface:ITikaToXMPConverterConverts a TikaMetadata-object into anXMPMetacontaining the useful properties.- Specified by:
- processin interface- ITikaToXMPConverter
- Specified by:
- processin class- AbstractConverter
- Parameters:
- metadata- a Tika Metadata object
- Returns:
- Returns an XMPMeta object.
- Throws:
- com.adobe.internal.xmp.XMPException- If an error occurs during the creation of the XMP object.
 
 - 
getAdditionalNamespacespublic Set<Namespace> getAdditionalNamespaces() Description copied from class:AbstractConverterEvery Converter has to provide information about namespaces that are used additionally to the core set of XMP namespaces.- Specified by:
- getAdditionalNamespacesin class- AbstractConverter
- Returns:
- the additional namespace information
 
 
- 
 
-