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, getMappedTypeId
public boolean initialize(String cfgPrefix, String typeKey, Properties properties)
PropertyMapper
initialize
in interface PropertyMapper
initialize
in class AbstractPropertyMapper
cfgPrefix
- 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()
PropertyMapper
public String getMappedPropertyId(String key)
PropertyMapper
key
- tag (usually parsed from Tika) found in filepublic Object convertValue(String key, PropertyDefinition<?> propDef, String strValueParam)
PropertyMapper
key
- CMIS property idstrValueParam
- value read from file (Tika always gives a string)Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.