public class PropertyMapperTika extends AbstractPropertyMapper
cmisTypeId, contentTypes, dateFormat, propPrefix| Constructor and Description |
|---|
PropertyMapperTika() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertValue(String key,
PropertyDefinition<?> propDef,
String strValueParam)
Convert a value parsed from the file to the type the corresponding property expects
|
String |
getMappedPropertyId(String key)
return the CMIS property id for a found tag in a file
|
boolean |
initialize(String cfgPrefix,
String typeKey,
Properties properties)
initialize a property mapper
|
void |
reset()
Reset all internal data to get ready for a new parsing process
|
getContentTypes, getMappedTypeIdpublic boolean initialize(String cfgPrefix, String typeKey, Properties properties)
PropertyMapperinitialize in interface PropertyMapperinitialize in class AbstractPropertyMappercfgPrefix - prefix for all configuration entries in properties filetypeKey - type key in configuration used to identify this typeproperties - all properties read from resource mapping.propertiespublic void reset()
PropertyMapperpublic String getMappedPropertyId(String key)
PropertyMapperkey - tag (usually parsed from Tika) found in filepublic Object convertValue(String key, PropertyDefinition<?> propDef, String strValueParam)
PropertyMapperkey - CMIS property idstrValueParam - value read from file (Tika always gives a string)Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.