|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tika.xmp.convert.AbstractConverter
public abstract class AbstractConverter
Base class for Tika Metadata to XMP converter which provides some needed common functionality.
| Field Summary | |
|---|---|
protected com.adobe.xmp.XMPMeta |
meta
|
| Constructor Summary | |
|---|---|
AbstractConverter()
|
|
| Method Summary | |
|---|---|
protected void |
createArrayProperty(org.apache.tika.metadata.Property metadataProperty,
String nsDc,
String arrayProperty,
int arrayType)
|
protected void |
createArrayProperty(String tikaKey,
String ns,
String propertyName,
int arrayType)
Creates an array property from a list of values. |
protected void |
createCommaSeparatedArray(org.apache.tika.metadata.Property metadataProperty,
String nsDc,
String arrayProperty,
int arrayType)
|
protected void |
createCommaSeparatedArray(String tikaKey,
String ns,
String propertyName,
int arrayType)
Creates an array property from a comma separated list. |
protected void |
createLangAltProperty(org.apache.tika.metadata.Property metadataProperty,
String ns,
String propertyName)
|
protected void |
createLangAltProperty(String tikaKey,
String ns,
String propertyName)
Creates a language alternative property in the x-default language |
protected void |
createProperty(org.apache.tika.metadata.Property metadataProperty,
String ns,
String propertyName)
|
protected void |
createProperty(String tikaKey,
String ns,
String propertyName)
Creates a simple property. |
protected abstract 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 |
getXMPMeta()
|
abstract com.adobe.xmp.XMPMeta |
process(org.apache.tika.metadata.Metadata metadata)
Converts a Tika Metadata-object into an XMPMeta containing the useful
properties. |
protected void |
registerNamespaces(Set<Namespace> namespaces)
Registers a number Namespace information with XMPCore. |
void |
setMetadata(org.apache.tika.metadata.Metadata metadata)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.adobe.xmp.XMPMeta meta
| Constructor Detail |
|---|
public AbstractConverter()
throws org.apache.tika.exception.TikaException
org.apache.tika.exception.TikaException| Method Detail |
|---|
public abstract com.adobe.xmp.XMPMeta process(org.apache.tika.metadata.Metadata metadata)
throws com.adobe.xmp.XMPException
ITikaToXMPConverterMetadata-object into an XMPMeta containing the useful
properties.
process in interface ITikaToXMPConvertermetadata - a Tika Metadata object
com.adobe.xmp.XMPException - If an error occurs during the creation of the XMP object.protected abstract Set<Namespace> getAdditionalNamespaces()
public void setMetadata(org.apache.tika.metadata.Metadata metadata)
public com.adobe.xmp.XMPMeta getXMPMeta()
protected void registerNamespaces(Set<Namespace> namespaces)
throws org.apache.tika.exception.TikaException
Namespace information with XMPCore. Any already registered
namespace is not registered again.
namespaces - the list of namespaces to be registered
org.apache.tika.exception.TikaException - in case a namespace oculd not be registered
protected void createProperty(org.apache.tika.metadata.Property metadataProperty,
String ns,
String propertyName)
throws com.adobe.xmp.XMPException
com.adobe.xmp.XMPExceptioncreateProperty(String, String, String)
protected void createProperty(String tikaKey,
String ns,
String propertyName)
throws com.adobe.xmp.XMPException
tikaKey - Key in the Tika metadata mapns - namespace the property should be created inpropertyName - name of the property
com.adobe.xmp.XMPException - if the property could not be created
protected void createLangAltProperty(org.apache.tika.metadata.Property metadataProperty,
String ns,
String propertyName)
throws com.adobe.xmp.XMPException
com.adobe.xmp.XMPExceptioncreateLangAltProperty(String, String, String)
protected void createLangAltProperty(String tikaKey,
String ns,
String propertyName)
throws com.adobe.xmp.XMPException
tikaKey - Key in the Tika metadata mapns - namespace the property should be created inpropertyName - name of the property
com.adobe.xmp.XMPException - if the property could not be created
protected void createArrayProperty(org.apache.tika.metadata.Property metadataProperty,
String nsDc,
String arrayProperty,
int arrayType)
throws com.adobe.xmp.XMPException
com.adobe.xmp.XMPException
protected void createArrayProperty(String tikaKey,
String ns,
String propertyName,
int arrayType)
throws com.adobe.xmp.XMPException
tikaKey - Key in the Tika metadata mapns - namespace the property should be created inpropertyName - name of the propertyarrayType - depicts which kind of array shall be created
com.adobe.xmp.XMPException - if the property could not be created
protected void createCommaSeparatedArray(org.apache.tika.metadata.Property metadataProperty,
String nsDc,
String arrayProperty,
int arrayType)
throws com.adobe.xmp.XMPException
com.adobe.xmp.XMPException
protected void createCommaSeparatedArray(String tikaKey,
String ns,
String propertyName,
int arrayType)
throws com.adobe.xmp.XMPException
tikaKey - Key in the Tika metadata mapns - namespace the property should be created inpropertyName - name of the propertyarrayType - depicts which kind of array shall be created
com.adobe.xmp.XMPException - if the property could not be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||