Package org.modelmapper
ModelMapper is an intelligent object mapping library.
The principal public APIs in this package are:
ModelMapper
- The class you instantiate to perform object mapping, load mapping definitions and register mappers.
PropertyMap
- The class you extend to define mappings between source and destination properties.
TypeMap
- The interface you use to perform configuration, introspection and mapping between two types.
Converter
- The interface you implement to perform custom mapping between two types or property hierarchies.
Provider
- The interface you implement to provide instances of destination types.
Condition
- The interface you implement to conditionally create a mapping.
-
Interface Summary Interface Description Condition<S,D> Condition that must apply in order for mapping to occur.Converter<S,D> Converts instances of source typeS
to instances of destination typeD
.Converters.ChainableConverter<S,D1> Provides interface to chain another converter or convert to different destination type.Converters.Converter<S,D> Converts source to destination.ExpressionMap<S,D> Represents an operation that acceptsmapping
and use functions defined inConfigurableConditionExpression
to configure aTypeMap
Module Simple interface for extensions that can be registered withModelMapper
to provide some extensions.Provider<T> Provides instances of typeT
.Provider.ProvisionRequest<T> Contains provision request information.TypeMap<S,D> Encapsulates mapping configuration for a source and destination type pair. -
Class Summary Class Description AbstractCondition<S,D> Condition support class.AbstractConverter<S,D> Converter support class.AbstractProvider<T> Provider support class.Conditions Condition
utilities and implementations.Converters Provides helper methods to create converters.Converters.Collection Provides helper methods to create converters for collection.ModelMapper ModelMapper - Performs object mapping, maintainsConfiguration
and storesTypeMaps
.PropertyMap<S,D> A PropertyMap defines mappings between properties for a particular source and destination type.TypeToken<T> Represents a generic typeT
. -
Exception Summary Exception Description ConfigurationException Thrown when invalid configuration is detected.MappingException Indicates that an error has occurred during a mapping operation.ValidationException Indicates that an error has occurred during a validate operation.