Package | Description |
---|---|
org.modelmapper |
ModelMapper is an intelligent object mapping library.
|
org.modelmapper.spi |
Service Provider Interface
|
Modifier and Type | Method and Description |
---|---|
<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 . |
<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,
Configuration configuration)
Creates a TypeMap for the
sourceType and destinationType using the
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(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,
Configuration configuration)
Creates a TypeMap for the
source 's type and destinationType using the
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.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.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. |
Modifier and Type | Method and Description |
---|---|
Collection<TypeMap<?,?>> |
ModelMapper.getTypeMaps()
Returns all TypeMaps for the ModelMapper.
|
Modifier and Type | Method and Description |
---|---|
TypeMap<S,D> |
MappingContext.getTypeMap()
Returns the TypeMap associated with the mapping request else
null if the request did
not originate from a TypeMap. |
Copyright © 2011-2013. All Rights Reserved.