Uses of Interface
org.modelmapper.TypeMap
Packages that use TypeMap
Package
Description
ModelMapper is an intelligent object mapping library.
Service Provider Interface
-
Uses of TypeMap in org.modelmapper
Methods in org.modelmapper that return TypeMapModifier and TypeMethodDescriptionTypeMap.addMapping
(SourceGetter<S> sourceGetter, DestinationSetter<D, V> destinationSetter) Adds a mapping intoTypeMap
by definingsourceGetter
->destinationSetter
<S,
D> TypeMap<S, D> ModelMapper.addMappings
(PropertyMap<S, D> propertyMap) Adds mappings from thepropertyMap
into the TypeMap corresponding to source typeS
and destination typeD
.TypeMap.addMappings
(ExpressionMap<S, D> mapper) Add a mapping intoTypeMap
by defining amapper
action You can chainaddMappings
contains only one property mapping likeTypeMap.addMappings
(PropertyMap<S, D> propertyMap) Loads mappings from thepropertyMap
into the TypeMap.<S,
D> TypeMap<S, D> ModelMapper.createTypeMap
(Class<S> sourceType, Class<D> destinationType) Creates a TypeMap for thesourceType
anddestinationType
using the ModelMapper's configuration.<S,
D> TypeMap<S, D> ModelMapper.createTypeMap
(Class<S> sourceType, Class<D> destinationType, String typeMapName) Creates a TypeMap for thesourceType
anddestinationType
identified by thetypeMapName
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 thesourceType
anddestinationType
identified by thetypeMapName
using theconfiguration
.<S,
D> TypeMap<S, D> ModelMapper.createTypeMap
(Class<S> sourceType, Class<D> destinationType, Configuration configuration) Creates a TypeMap for thesourceType
anddestinationType
using theconfiguration
.<S,
D> TypeMap<S, D> ModelMapper.createTypeMap
(S source, Class<D> destinationType) Creates a TypeMap for thesource
's type anddestinationType
using the ModelMapper's configuration.<S,
D> TypeMap<S, D> ModelMapper.createTypeMap
(S source, Class<D> destinationType, String typeMapName) Creates a TypeMap for thesource
's type anddestinationType
identified by thetypeMapName
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 thesource
's type anddestinationType
identified by thetypeMapName
using theconfiguration
.<S,
D> TypeMap<S, D> ModelMapper.createTypeMap
(S source, Class<D> destinationType, Configuration configuration) Creates a TypeMap for thesource
's type anddestinationType
using theconfiguration
.<S,
D> TypeMap<S, D> ModelMapper.emptyTypeMap
(Class<S> sourceType, Class<D> destinationType) Creates an empty TypeMap for thesourceType
,destinationType
.<S,
D> TypeMap<S, D> ModelMapper.emptyTypeMap
(Class<S> sourceType, Class<D> destinationType, String typeMapName) Creates an empty TypeMap for thesourceType
,destinationType
.<S,
D> TypeMap<S, D> ModelMapper.getTypeMap
(Class<S> sourceType, Class<D> destinationType) Returns the TypeMap for thesourceType
anddestinationType
, else returnsnull
if none exists.<S,
D> TypeMap<S, D> ModelMapper.getTypeMap
(Class<S> sourceType, Class<D> destinationType, String typeMapName) Returns the TypeMap for thesourceType
,destinationType
andtypeMapName
, else returnsnull
if none exists.TypeMap.implicitMappings()
Performs implicit mapping.Makes this TypeMap is also supporting on the mapping fromsourceType
tobaseDestinationType
.Constructs a new TypeMap derived fromthis
.TypeMap.include
(TypeSafeSourceGetter<S, P> sourceGetter, Class<P> propertyType) Includesmappings
from property's TypeMap.TypeMap.includeBase
(Class<? super S> sourceType, Class<? super D> destinationType) Includesmappings
from a baseTypeMap
.TypeMap.setCondition
(Condition<?, ?> condition) Sets thecondition
that must apply for the source and destination in order for mapping to take place.TypeMap.setConverter
(Converter<S, D> converter) Sets theconverter
to be used for any conversion requests for the TypeMap's source to destination type.TypeMap.setPostConverter
(Converter<S, D> converter) Sets theconverter
to be used after mapping between the source and destination types.TypeMap.setPreConverter
(Converter<S, D> converter) Sets theconverter
to be used before mapping between the source and destination types.TypeMap.setPropertyCondition
(Condition<?, ?> condition) Sets thecondition
that must apply in order for properties in this TypeMap to be mapped.TypeMap.setPropertyConverter
(Converter<?, ?> converter) Sets theconverter
to be used for converting properties in the TypeMap.TypeMap.setPropertyProvider
(Provider<?> provider) Sets theprovider
to be used for providing instances of properties during mapping.TypeMap.setProvider
(Provider<D> provider) Sets theprovider
to be used for providing instances of destination typeD
during mapping.<S,
D> TypeMap<S, D> Returns the TypeMap for thesourceType
,destinationType
, creates TypeMap automatically if none exists.<S,
D> TypeMap<S, D> Returns the TypeMap for thesourceType
,destinationType
, andtypeMapName
creates TypeMap automatically if none exists.Methods in org.modelmapper that return types with arguments of type TypeMapModifier and TypeMethodDescriptionCollection<TypeMap<?,
?>> ModelMapper.getTypeMaps()
Returns all TypeMaps for the ModelMapper. -
Uses of TypeMap in org.modelmapper.spi
Methods in org.modelmapper.spi that return TypeMapModifier and TypeMethodDescriptionMappingContext.getTypeMap()
Returns the TypeMap associated with the mapping request elsenull
if the request did not originate from a TypeMap.