public interface PropertyMapper
Modifier and Type | Method and Description |
---|---|
Object |
convertValue(String id,
PropertyDefinition<?> propDef,
String strValue)
Convert a value parsed from the file to the type the corresponding property expects
|
String[] |
getContentTypes()
get all content types handled by this parser
|
String |
getMappedPropertyId(String key)
return the CMIS property id for a found tag in a file
|
String |
getMappedTypeId()
return the CMIS type id used for this mapper
|
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
|
boolean initialize(String cfgPrefix, String typeKey, Properties properties)
cfgPrefix
- prefix for all configuration entries in properties filetypeKey
- type key in configuration used to identify this typeproperties
- all properties read from resource mapping.propertiesvoid reset()
String getMappedTypeId()
String getMappedPropertyId(String key)
key
- tag (usually parsed from Tika) found in fileObject convertValue(String id, PropertyDefinition<?> propDef, String strValue)
id
- CMIS property idpropertyType
- property type from type definitionstrValue
- value read from file (Tika always gives a string)String[] getContentTypes()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.