<V> TypeMap<S,D> |
TypeMap.addMapping(SourceGetter<S> sourceGetter,
DestinationSetter<D,V> destinationSetter) |
Adds a mapping into TypeMap by defining sourceGetter -> destinationSetter
|
<S,D> TypeMap<S,D> |
ModelMapper.addMappings(PropertyMap<S,D> propertyMap) |
Adds mappings from the propertyMap into the TypeMap corresponding to source type
S and destination type D .
|
TypeMap<S,D> |
TypeMap.addMappings(ExpressionMap<S,D> mapper) |
Add a mapping into TypeMap by defining a mapper action
You can chain addMappings contains only one property mapping like
|
TypeMap<S,D> |
TypeMap.addMappings(PropertyMap<S,D> propertyMap) |
Loads mappings from the propertyMap into the TypeMap.
|
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(Class<S> sourceType,
Class<D> destinationType) |
Creates a TypeMap for the sourceType and destinationType using the
ModelMapper's configuration.
|
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(Class<S> sourceType,
Class<D> destinationType,
String typeMapName) |
Creates a TypeMap for the sourceType and destinationType identified by the
typeMapName using the ModelMapper's configuration.
|
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(Class<S> sourceType,
Class<D> destinationType,
String typeMapName,
Configuration configuration) |
Creates a TypeMap for the sourceType and destinationType identified by the
typeMapName using the configuration .
|
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(Class<S> sourceType,
Class<D> destinationType,
Configuration configuration) |
Creates a TypeMap for the sourceType and destinationType using the
configuration .
|
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(S source,
Class<D> destinationType) |
Creates a TypeMap for the source 's type and destinationType using the
ModelMapper's configuration.
|
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(S source,
Class<D> destinationType,
String typeMapName) |
Creates a TypeMap for the source 's type and destinationType identified by the
typeMapName using the ModelMapper's configuration.
|
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(S source,
Class<D> destinationType,
String typeMapName,
Configuration configuration) |
Creates a TypeMap for the source 's type and destinationType identified by the
typeMapName using the configuration .
|
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(S source,
Class<D> destinationType,
Configuration configuration) |
Creates a TypeMap for the source 's type and destinationType using the
configuration .
|
<S,D> TypeMap<S,D> |
ModelMapper.emptyTypeMap(Class<S> sourceType,
Class<D> destinationType) |
Creates an empty TypeMap for the sourceType , destinationType .
|
<S,D> TypeMap<S,D> |
ModelMapper.emptyTypeMap(Class<S> sourceType,
Class<D> destinationType,
String typeMapName) |
Creates an empty TypeMap for the sourceType , destinationType .
|
<S,D> TypeMap<S,D> |
ModelMapper.getTypeMap(Class<S> sourceType,
Class<D> destinationType) |
Returns the TypeMap for the sourceType and destinationType , else returns
null if none exists.
|
<S,D> TypeMap<S,D> |
ModelMapper.getTypeMap(Class<S> sourceType,
Class<D> destinationType,
String typeMapName) |
Returns the TypeMap for the sourceType , destinationType and typeMapName
, else returns null if none exists.
|
TypeMap<S,D> |
TypeMap.implicitMappings() |
Performs implicit mapping.
|
TypeMap<S,D> |
TypeMap.include(Class<? super D> baseDestinationType) |
Makes this TypeMap is also supporting on the mapping from sourceType to baseDestinationType .
|
<DS extends S,DD extends D> TypeMap<S,D> |
TypeMap.include(Class<DS> sourceType,
Class<DD> destinationType) |
Constructs a new TypeMap derived from this .
|
<P> TypeMap<S,D> |
TypeMap.include(TypeSafeSourceGetter<S,P> sourceGetter,
Class<P> propertyType) |
Includes mappings from property's TypeMap.
|
TypeMap<S,D> |
TypeMap.includeBase(Class<? super S> sourceType,
Class<? super D> destinationType) |
Includes mappings from a base TypeMap .
|
TypeMap<S,D> |
TypeMap.setCondition(Condition<?,?> condition) |
Sets the condition that must apply for the source and destination in order for mapping
to take place.
|
TypeMap<S,D> |
TypeMap.setConverter(Converter<S,D> converter) |
Sets the converter to be used for any conversion requests for the TypeMap's source to
destination type.
|
TypeMap<S,D> |
TypeMap.setPostConverter(Converter<S,D> converter) |
Sets the converter to be used after mapping between the source and destination types.
|
TypeMap<S,D> |
TypeMap.setPreConverter(Converter<S,D> converter) |
Sets the converter to be used before mapping between the source and destination types.
|
TypeMap<S,D> |
TypeMap.setPropertyCondition(Condition<?,?> condition) |
Sets the condition that must apply in order for properties in this TypeMap to be
mapped.
|
TypeMap<S,D> |
TypeMap.setPropertyConverter(Converter<?,?> converter) |
Sets the converter to be used for converting properties in the TypeMap.
|
TypeMap<S,D> |
TypeMap.setPropertyProvider(Provider<?> provider) |
Sets the provider to be used for providing instances of properties during mapping.
|
TypeMap<S,D> |
TypeMap.setProvider(Provider<D> provider) |
Sets the provider to be used for providing instances of destination type D
during mapping.
|
<S,D> TypeMap<S,D> |
ModelMapper.typeMap(Class<S> sourceType,
Class<D> destinationType) |
Returns the TypeMap for the sourceType , destinationType , creates TypeMap
automatically if none exists.
|
<S,D> TypeMap<S,D> |
ModelMapper.typeMap(Class<S> sourceType,
Class<D> destinationType,
String typeMapName) |
Returns the TypeMap for the sourceType , destinationType , and typeMapName
creates TypeMap automatically if none exists.
|