public interface MappingContext<S,D>
S
to a destination object
of type D
.Modifier and Type | Method and Description |
---|---|
<CS,CD> MappingContext<CS,CD> |
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. |
D |
getDestination()
Returns the destination object being mapped to or null if the destination has not yet been
initialized.
|
Class<D> |
getDestinationType()
Returns the destination type being mapped to.
|
Mapping |
getMapping()
Returns the mapping associated with the mapping request else
null if the request did
not originate from a TypeMap . |
MappingEngine |
getMappingEngine()
Returns the MappingEngine that initiated the mapping request.
|
S |
getSource()
Returns the source object being mapped from.
|
Class<S> |
getSourceType()
Returns the source type being mapped from.
|
TypeMap<S,D> |
getTypeMap()
Returns the TypeMap associated with the mapping request else
null if the request did
not originate from a TypeMap. |
<CS,CD> MappingContext<CS,CD> create(CS source, Class<CD> destinationType)
source
and destinationType
which
inherits all other information from the this MappingContext.CS
- child source typeCD
- child destination typesource
- to map fromdestinationType
- to map toIllegalArgumentException
- if source
or destinatinoType
are nullD getDestination()
Mapping getMapping()
null
if the request did
not originate from a TypeMap
.MappingEngine getMappingEngine()
S getSource()
Copyright © 2011-2012. All Rights Reserved.