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)
Deprecated.
Since ages. Do not call this method - only call the single argument
convert(Object) method. |
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 occurs@Deprecated public TARGET convert(SOURCE source, TARGET prototype) throws ConversionException
convert(Object) method.Converterconvert in interface Converter<SOURCE,TARGET>source - the source objectprototype - the prototype to fillConversionException - if an error occursCopyright © 2017 SAP SE. All Rights Reserved.