org.apache.chemistry.opencmis.client.mapper
Class AbstractPropertyMapper
java.lang.Object
org.apache.chemistry.opencmis.client.mapper.AbstractPropertyMapper
- All Implemented Interfaces:
- PropertyMapper
- Direct Known Subclasses:
- PropertyMapperExif, PropertyMapperTika
public abstract class AbstractPropertyMapper
- extends Object
- implements PropertyMapper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentTypes
protected String[] contentTypes
cmisTypeId
protected String cmisTypeId
propPrefix
protected String propPrefix
dateFormat
protected String dateFormat
AbstractPropertyMapper
public AbstractPropertyMapper()
initialize
public boolean initialize(String cfgPrefix,
String typeKey,
Properties properties)
- Description copied from interface:
PropertyMapper
- initialize a property mapper
- Specified by:
initialize
in interface PropertyMapper
- Parameters:
cfgPrefix
- prefix for all configuration entries in properties filetypeKey
- type key in configuration used to identify this typeproperties
- all properties read from resource mapping.properties
- Returns:
- true, if processing should continue, false if not
getMappedTypeId
public String getMappedTypeId()
- Description copied from interface:
PropertyMapper
- return the CMIS type id used for this mapper
- Specified by:
getMappedTypeId
in interface PropertyMapper
- Returns:
- CMIS type id to map this content type to or null if not mappable
getContentTypes
public String[] getContentTypes()
- Description copied from interface:
PropertyMapper
- get all content types handled by this parser
- Specified by:
getContentTypes
in interface PropertyMapper
- Returns:
- array with content types
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.