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 java.lang.Object
implements PropertyMapper


Field Summary
protected  java.lang.String cmisTypeId
           
protected  java.lang.String[] contentTypes
           
protected  java.lang.String dateFormat
           
protected  java.lang.String propPrefix
           
 
Constructor Summary
AbstractPropertyMapper()
           
 
Method Summary
 java.lang.String[] getContentTypes()
          get all content types handled by this parser
 java.lang.String getMappedTypeId()
          return the CMIS type id used for this mapper
 boolean initialize(java.lang.String cfgPrefix, java.lang.String typeKey, java.util.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 java.lang.String[] contentTypes

cmisTypeId

protected java.lang.String cmisTypeId

propPrefix

protected java.lang.String propPrefix

dateFormat

protected java.lang.String dateFormat
Constructor Detail

AbstractPropertyMapper

public AbstractPropertyMapper()
Method Detail

initialize

public boolean initialize(java.lang.String cfgPrefix,
                          java.lang.String typeKey,
                          java.util.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 java.lang.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 java.lang.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.