Package | Description |
---|---|
org.modelmapper |
ModelMapper is an intelligent object mapping library.
|
org.modelmapper.builder |
Expression types for building Mappings and TypeMaps
|
org.modelmapper.spi |
Service Provider Interface
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractConverter<S,D>
Converter support class.
|
Modifier and Type | Method and Description |
---|---|
Converter<S,D> |
TypeMap.getConverter()
Returns the Converter configured for this TypeMap, else
null if no Converter has been
configured. |
Converter<S,D> |
TypeMap.getPostConverter()
Returns the converter to be used after mapping between the source and destination types, else
null if no post-Converter has been configured. |
Converter<S,D> |
TypeMap.getPreConverter()
Returns the converter to be used before mapping between the source and destination types, else
null if no post-Converter has been configured. |
Converter<?,?> |
TypeMap.getPropertyConverter()
Returns the Converter used for converting properties in the TypeMap, else
null if no
Converter has been configured. |
<D2> Converter<S,D2> |
Converters.ChainableConverter.map(Converter<D1,D2> converter)
Chains a converter of
S -> D1 to S -> D2 with given converter. |
static <S,D> Converter<Collection<S>,Collection<D>> |
Converters.Collection.map(Converters.Converter<S,D> elementConverter)
Provides a helper method to create a collection converter that will map each element based on the
elementConverter . |
<D2> Converter<S,D2> |
Converters.ChainableConverter.to(Class<D2> destinationType)
Chains a converter of
S -> D1 to S -> D2 . |
Modifier and Type | Method and Description |
---|---|
<S,D> void |
ModelMapper.addConverter(Converter<S,D> converter)
Registers the
converter to use when mapping instances of types S to D . |
<S,D> void |
ModelMapper.addConverter(Converter<S,D> converter,
Class<S> sourceType,
Class<D> destinationType)
Registers the
converter to use when mapping instances of types S to D . |
<D2> Converter<S,D2> |
Converters.ChainableConverter.map(Converter<D1,D2> converter)
Chains a converter of
S -> D1 to S -> D2 with given converter. |
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.setPropertyConverter(Converter<?,?> converter)
Sets the
converter to be used for converting properties in the TypeMap. |
protected MapExpression<D> |
PropertyMap.using(Converter<?,?> converter)
Specifies the
converter to use for converting to the destination property hierarchy. |
Modifier and Type | Method and Description |
---|---|
ReferenceMapExpression<S,D> |
ConfigurableConverterExpression.using(Converter<?,?> converter)
Uses
converter to convert a source property to destination property |
MapExpression<D> |
ConverterExpression.using(Converter<?,?> converter)
Specifies the
converter to use for converting to the destination property hierarchy. |
Modifier and Type | Interface and Description |
---|---|
interface |
ConditionalConverter<S,D>
Conditionally converts matching source objects to instances of destination type
D . |
Modifier and Type | Class and Description |
---|---|
class |
StrongTypeConditionalConverter<S,D> |
Modifier and Type | Method and Description |
---|---|
Converter<?,?> |
Mapping.getConverter()
Gets the Converter to be used when performing a mapping.
|
Modifier and Type | Method and Description |
---|---|
static <S,D> ConditionalConverter<S,D> |
StrongTypeConditionalConverter.wrap(Class<S> sourceType,
Class<D> destinationType,
Converter<S,D> converter) |
Constructor and Description |
---|
StrongTypeConditionalConverter(Class<S> sourceType,
Class<D> destinationType,
Converter<S,D> converter) |
Copyright © 2011–2024. All rights reserved.