org.apache.chemistry.opencmis.client.mapper
Class AbstractPropertyMapper

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.mapper.AbstractPropertyMapper
All Implemented Interfaces:
PropertyMapper
Direct Known Subclasses:
PropertyMapperExif, PropertyMapperTika

public abstract class AbstractPropertyMapper
extends Object
implements PropertyMapper


Field Summary
protected  String cmisTypeId
           
protected  String[] contentTypes
           
protected  String dateFormat
           
protected  String propPrefix
           
 
Constructor Summary
AbstractPropertyMapper()
           
 
Method Summary
 String[] getContentTypes()
          get all content types handled by this parser
 String getMappedTypeId()
          return the CMIS type id used for this mapper
 boolean initialize(String cfgPrefix, String typeKey, Properties properties)
          initialize a property mapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.chemistry.opencmis.client.mapper.PropertyMapper
convertValue, getMappedPropertyId, reset
 

Field Detail

contentTypes

protected String[] contentTypes

cmisTypeId

protected String cmisTypeId

propPrefix

protected String propPrefix

dateFormat

protected String dateFormat
Constructor Detail

AbstractPropertyMapper

public AbstractPropertyMapper()
Method Detail

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 file
typeKey - type key in configuration used to identify this type
properties - 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.