com.agapple.mapping.process.convertor
类 CollectionAndCollectionConvertor.BaseCollectionConvertor

java.lang.Object
  继承者 com.agapple.mapping.process.convertor.AbastactConvertor
      继承者 com.agapple.mapping.process.convertor.CollectionAndCollectionConvertor.BaseCollectionConvertor
所有已实现的接口:
CollectionConvertor, Convertor
直接已知子类:
CollectionAndCollectionConvertor.ArrayToArray, CollectionAndCollectionConvertor.ArrayToCollection, CollectionAndCollectionConvertor.CollectionToArray, CollectionAndCollectionConvertor.CollectionToCollection
包容类:
CollectionAndCollectionConvertor

public abstract static class CollectionAndCollectionConvertor.BaseCollectionConvertor
extends AbastactConvertor
implements CollectionConvertor


构造方法摘要
CollectionAndCollectionConvertor.BaseCollectionConvertor()
           
 
方法摘要
protected  Object arrayGet(Object src, Class compoentType, int i)
           
protected  void arraySet(Object src, Class compoentType, int i, Object value)
           
 Object convert(Object src, Class destClass)
           
 Object convertCollection(Object src, Class destClass, Class... componentClasses)
          支持多级collection映射,需指定多级的componentClass
protected  Collection createCollection(Class destClass)
           
protected  Map createMap(Class destClass)
           
protected  Object doMapping(Object src, Class targetClass, com.agapple.mapping.process.convertor.MappingConfig config)
           
protected abstract  Class getComponentClass(Object src, Class destClass)
           
protected  com.agapple.mapping.process.convertor.MappingConfig initMapping(BeanMappingField context, Class srcClass, Class targetClass, Class[] componentClasses)
           
 
从类 com.agapple.mapping.process.convertor.AbastactConvertor 继承的方法
convertCollection
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 com.agapple.mapping.process.convertor.CollectionConvertor 继承的方法
convertCollection
 

构造方法详细信息

CollectionAndCollectionConvertor.BaseCollectionConvertor

public CollectionAndCollectionConvertor.BaseCollectionConvertor()
方法详细信息

convert

public Object convert(Object src,
                      Class destClass)
指定者:
接口 Convertor 中的 convert
覆盖:
AbastactConvertor 中的 convert

convertCollection

public Object convertCollection(Object src,
                                Class destClass,
                                Class... componentClasses)
从接口 Convertor 复制的描述
支持多级collection映射,需指定多级的componentClass

指定者:
接口 Convertor 中的 convertCollection
覆盖:
AbastactConvertor 中的 convertCollection

getComponentClass

protected abstract Class getComponentClass(Object src,
                                           Class destClass)

initMapping

protected com.agapple.mapping.process.convertor.MappingConfig initMapping(BeanMappingField context,
                                                                          Class srcClass,
                                                                          Class targetClass,
                                                                          Class[] componentClasses)

doMapping

protected Object doMapping(Object src,
                           Class targetClass,
                           com.agapple.mapping.process.convertor.MappingConfig config)

createMap

protected Map createMap(Class destClass)

createCollection

protected Collection createCollection(Class destClass)

arraySet

protected void arraySet(Object src,
                        Class compoentType,
                        int i,
                        Object value)

arrayGet

protected Object arrayGet(Object src,
                          Class compoentType,
                          int i)


Copyright © 2012. All Rights Reserved.