|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectma.glasnost.orika.converter.Converter.LegacyConverter<S,D>
S - D - public static class Converter.LegacyConverter<S,D>
LegacyConverter provides back-compatible support for the older version of converter.
| Constructor Summary | |
|---|---|
Converter.LegacyConverter(Converter<S,D> delegate)
|
|
| Method Summary | |
|---|---|
boolean |
canConvert(Type<?> sourceClass,
Type<?> destinationType)
Answers whether this converter can be used to handle the conversion of sourceType
to destinationType. |
D |
convert(S source,
Type<? extends D> destinationType)
Perform the conversion of source into a new instance of
destinationType. |
Type<S> |
getAType()
|
Type<D> |
getBType()
|
void |
setMapperFacade(MapperFacade mapper)
Store an instance of the current MapperFacade which may be used in mapping of nested types. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Converter.LegacyConverter(Converter<S,D> delegate)
| Method Detail |
|---|
public boolean canConvert(Type<?> sourceClass,
Type<?> destinationType)
ConvertersourceType
to destinationType.
canConvert in interface Converter<S,D>
public D convert(S source,
Type<? extends D> destinationType)
Convertersource into a new instance of
destinationType.
convert in interface Converter<S,D>source - the source object to be converteddestinationType - the destination type to produce
destinationTypepublic void setMapperFacade(MapperFacade mapper)
Converter
setMapperFacade in interface Converter<S,D>mapper - the current MapperFacadepublic String toString()
toString in class Objectpublic Type<S> getAType()
getAType in interface MappedTypePair<S,D>public Type<D> getBType()
getBType in interface MappedTypePair<S,D>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||