eu.etaxonomy.cdm.io.berlinModel
Class CdmOneToManyMapper<ONE extends CdmBase,MANY extends CdmBase,SINGLE_MAPPER extends CdmSingleAttributeMapperBase>

java.lang.Object
  extended by eu.etaxonomy.cdm.io.common.mapping.CdmMapperBase
      extended by eu.etaxonomy.cdm.io.common.mapping.CdmAttributeMapperBase
          extended by eu.etaxonomy.cdm.io.common.mapping.MultipleAttributeMapperBase<SINGLE_MAPPER>
              extended by eu.etaxonomy.cdm.io.berlinModel.CdmOneToManyMapper<ONE,MANY,SINGLE_MAPPER>
Direct Known Subclasses:
CdmOneToManyXmlMapper

public class CdmOneToManyMapper<ONE extends CdmBase,MANY extends CdmBase,SINGLE_MAPPER extends CdmSingleAttributeMapperBase>
extends MultipleAttributeMapperBase<SINGLE_MAPPER>

Version:
1.0
Author:
a.mueller

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.io.common.mapping.MultipleAttributeMapperBase
singleMappers
 
Constructor Summary
CdmOneToManyMapper(Class<ONE> oneClass, Class<MANY> manyClass, String singleAttributeName, SINGLE_MAPPER[] singleAttributesMappers)
           
 
Method Summary
 String getDestinationAttribute(String sourceAttribute)
           
 List<String> getDestinationAttributeList()
           
 Class<MANY> getManyClass()
           
 Class<ONE> getOneClass()
           
 String getSingleAttributeName()
           
 List<SINGLE_MAPPER> getSingleMappers()
           
 List<String> getSourceAttributeList()
           
 
Methods inherited from class eu.etaxonomy.cdm.io.common.mapping.MultipleAttributeMapperBase
getDestinationAttributes, getSourceAttributes, getStringDbValue
 
Methods inherited from class eu.etaxonomy.cdm.io.common.mapping.CdmAttributeMapperBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CdmOneToManyMapper

public CdmOneToManyMapper(Class<ONE> oneClass,
                          Class<MANY> manyClass,
                          String singleAttributeName,
                          SINGLE_MAPPER[] singleAttributesMappers)
Method Detail

getSourceAttributeList

public List<String> getSourceAttributeList()
Overrides:
getSourceAttributeList in class MultipleAttributeMapperBase<SINGLE_MAPPER extends CdmSingleAttributeMapperBase>

getDestinationAttributeList

public List<String> getDestinationAttributeList()
Overrides:
getDestinationAttributeList in class MultipleAttributeMapperBase<SINGLE_MAPPER extends CdmSingleAttributeMapperBase>

getManyClass

public Class<MANY> getManyClass()

getOneClass

public Class<ONE> getOneClass()

getDestinationAttribute

public String getDestinationAttribute(String sourceAttribute)

getSingleMappers

public List<SINGLE_MAPPER> getSingleMappers()

getSingleAttributeName

public String getSingleAttributeName()
Returns:
the singleAttributeName


Copyright © 2007-2013 EDIT. All Rights Reserved.