| Package | Description |
|---|---|
| org.modelmapper |
ModelMapper is an intelligent object mapping library.
|
| org.modelmapper.spi |
Service Provider Interface
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Condition.applies(MappingContext<S,D> context)
Specifies whether the condition applies to the
context. |
D |
Converter.convert(MappingContext<S,D> context)
Converts the
getSource() to an instance of
getDestinationType(). |
D |
AbstractConverter.convert(MappingContext<S,D> context)
Delegates conversion to
AbstractConverter.convert(Object). |
| Modifier and Type | Method and Description |
|---|---|
<CS,CD> MappingContext<CS,CD> |
MappingContext.create(CS source,
CD destination)
Creates a new child MappingContext for the
source and destination which
inherits all other information from the this MappingContext. |
<CS,CD> MappingContext<CS,CD> |
MappingContext.create(CS source,
Class<CD> destinationType)
Creates a new child MappingContext for the
source and destinationType which
inherits all other information from the this MappingContext. |
<CS,CD> MappingContext<CS,CD> |
MappingContext.create(CS source,
Type destinationType)
Creates a new child MappingContext for the
source and destinationType which
inherits all other information from the this MappingContext. |
MappingContext<?,?> |
MappingContext.getParent()
Returns the parent MappingContext from which the current MappingContext was created, else
null if there is no parent context. |
| Modifier and Type | Method and Description |
|---|---|
<S,D> D |
MappingEngine.createDestination(MappingContext<S,D> context)
Creates an instance of the destination type for the
context, capturing any errors that
may occur during instantiation. |
<S,D> D |
MappingEngine.map(MappingContext<S,D> context)
Maps an instance of type
D for the context. |
Copyright © 2011–2018. All rights reserved.