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. |
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 . |
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 |
---|---|
MapExpression<D> |
ConverterExpression.using(Converter<?,?> converter)
Specifies the
converter to use for converting to the destination property hierarchy. |
ReferenceMapExpression<S,D> |
ConfigurableMapExpression.using(Converter<?,?> converter)
Uses
converter to convert a source property to destination property
{@code
using(converter). |
Modifier and Type | Interface and Description |
---|---|
interface |
ConditionalConverter<S,D>
Conditionally converts matching source objects to instances of destination type
D . |
Modifier and Type | Method and Description |
---|---|
Converter<?,?> |
Mapping.getConverter()
Gets the Converter to be used when performing a mapping.
|
Copyright © 2011–2017. All rights reserved.