| Constructor and Description |
|---|
GenericConverter() |
| Modifier and Type | Method and Description |
|---|---|
TARGET |
convert(SOURCE source)
Creates a new type of targetClass and converts all properties from source to this new instance that have the same name and
have compatible types.
|
TARGET |
convert(SOURCE source,
TARGET prototype)
Converts all properties from source to target that have the same name and have compatible types.
|
protected TARGET |
createDestObject() |
void |
setDestClass(Class<TARGET> destClass)
The class of the target.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertAll, convertAllIgnoreExceptions, getLoggerpublic TARGET convert(SOURCE source) throws ConversionException
convert in interface Converter<SOURCE,TARGET>source - the source objectConversionException - if an error occurspublic TARGET convert(SOURCE source, TARGET prototype) throws ConversionException
convert in interface Converter<SOURCE,TARGET>source - the source objectprototype - the prototype to fillConversionException - if an error occurspublic void setDestClass(Class<TARGET> destClass)
convert(Object).destClass - protected TARGET createDestObject() throws ConversionException
ConversionExceptionCopyright © 2017 SAP SE. All Rights Reserved.