|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modelmapper.internal.MappingBuilderImpl<S,D>
public class MappingBuilderImpl<S,D>
Builds explicit property mappings.
Method Summary | |
---|---|
S |
getSource()
|
D |
map()
Defines a mapping to a destination. |
D |
map(Object source)
Defines a mapping from the source to a destination. |
D |
skip()
Specifies that mapping for the destination property be skipped during the mapping process. |
ConditionExpression<S,D> |
using(Converter<?,?> converter)
Specifies the converter to use for converting to the destination property hierarchy. |
ConditionExpression<S,D> |
when(Condition<?,?> condition)
Specifies the condition that must apply in order for mapping to take place for a
particular destination property hierarchy. |
ConditionExpression<S,D> |
withProvider(Provider<?> provider)
Specifies the provider to be used for providing instances of the mapped property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public D skip()
SkipExpression
PropertyMap
.
skip
in interface SkipExpression<D>
public D map()
MapExpression
PropertyMap
.
map
in interface MapExpression<D>
public D map(Object source)
MapExpression
source
to a destination. See the EDSL examples at
PropertyMap
.
map
in interface MapExpression<D>
source
- to map frompublic ConditionExpression<S,D> using(Converter<?,?> converter)
ConverterExpression
converter
to use for converting to the destination property hierarchy.
When used with deep mapping the converter
should convert to an instance of the
last destination property. See the EDSL examples
.
using
in interface ConverterExpression<S,D>
converter
- to use when mapping the propertypublic ConditionExpression<S,D> when(Condition<?,?> condition)
ConditionExpression
condition
that must apply in order for mapping to take place for a
particular destination property hierarchy. See the EDSL examples
.
when
in interface ConditionExpression<S,D>
condition
- that must apply when mapping the propertypublic ConditionExpression<S,D> withProvider(Provider<?> provider)
ProviderExpression
provider
to be used for providing instances of the mapped property. When
used with deep mapping the provider
should provide an instance of the last
destination property. See the EDSL examples
.
withProvider
in interface ProviderExpression<S,D>
provider
- to use for providing the destination propertypublic S getSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |