public abstract class AbstractDynamicConverter<SOURCE,TARGET> extends java.lang.Object implements Converter<SOURCE,TARGET>, Populator<SOURCE,TARGET>
| Constructor and Description |
|---|
AbstractDynamicConverter(TypeResolver<SOURCE,TARGET> typeResolver) |
| Modifier and Type | Method and Description |
|---|---|
TARGET |
convert(SOURCE source)
Converts the source object, creating a new instance of the destination type
|
TARGET |
convert(SOURCE source,
TARGET prototype)
Convert the source object by filling the prototype
|
protected TARGET |
createTarget(java.lang.Class<? extends TARGET> targetClass) |
protected TARGET |
createTargetFromSource(SOURCE source) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertAll, convertAllIgnoreExceptions, getLoggerpublic AbstractDynamicConverter(TypeResolver<SOURCE,TARGET> typeResolver)
public TARGET convert(SOURCE source) throws ConversionException
Converterconvert in interface Converter<SOURCE,TARGET>source - the source objectConversionException - if an error occurspublic TARGET convert(SOURCE source, TARGET prototype) throws ConversionException
Converterconvert in interface Converter<SOURCE,TARGET>source - the source objectprototype - the prototype to fillConversionException - if an error occursCopyright © 2018 SAP SE. All Rights Reserved.