org.modelmapper.internal
Class TypeMapStore

java.lang.Object
  extended by org.modelmapper.internal.TypeMapStore

public final class TypeMapStore
extends Object

Author:
Jonathan Halterman

Method Summary
<S,D> TypeMap<S,D>
create(Class<S> sourceType, Class<D> destinationType, Configuration configuration, MappingEngineImpl engine)
          Gets or creates a TypeMap.
 Collection<TypeMap<?,?>> get()
           
<S,D> TypeMap<S,D>
get(Class<S> sourceType, Class<D> destinationType)
          Returns a TypeMap for the sourceType and destinationType, else null if none exists.
<S,D> TypeMap<S,D>
getOrCreate(Class<S> sourceType, Class<D> destinationType, MappingEngineImpl engine)
          Gets or creates a TypeMap.
<S,D> TypeMap<S,D>
getOrCreate(Class<S> sourceType, Class<D> destinationType, PropertyMap<S,D> propertyMap, Converter<S,D> converter, MappingEngineImpl engine)
          Gets or creates a TypeMap.
 Object lock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public <S,D> TypeMap<S,D> create(Class<S> sourceType,
                                 Class<D> destinationType,
                                 Configuration configuration,
                                 MappingEngineImpl engine)
Gets or creates a TypeMap. If converter is null, the TypeMap is configured with implicit mappings, else the converter is set against the TypeMap.


get

public Collection<TypeMap<?,?>> get()

get

public <S,D> TypeMap<S,D> get(Class<S> sourceType,
                              Class<D> destinationType)
Returns a TypeMap for the sourceType and destinationType, else null if none exists.


getOrCreate

public <S,D> TypeMap<S,D> getOrCreate(Class<S> sourceType,
                                      Class<D> destinationType,
                                      MappingEngineImpl engine)
Gets or creates a TypeMap. If converter is null, the TypeMap is configured with implicit mappings, else the converter is set against the TypeMap.


getOrCreate

public <S,D> TypeMap<S,D> getOrCreate(Class<S> sourceType,
                                      Class<D> destinationType,
                                      PropertyMap<S,D> propertyMap,
                                      Converter<S,D> converter,
                                      MappingEngineImpl engine)
Gets or creates a TypeMap. If converter is null, the TypeMap is configured with implicit mappings, else the converter is set against the TypeMap.

Parameters:
propertyMap - to add mappings for (nullable)
converter - to set (nullable)

lock

public Object lock()


Copyright © 2011. All Rights Reserved.