public class DefaultConfigurableConverter<SOURCE,TARGET,OPTION> extends java.lang.Object implements ConfigurableConverter<SOURCE,TARGET,OPTION>, ConfigurablePopulator<SOURCE,TARGET,OPTION>
| Constructor and Description |
|---|
DefaultConfigurableConverter() |
| Modifier and Type | Method and Description |
|---|---|
TARGET |
convert(SOURCE source,
TARGET target,
java.util.Collection<OPTION> options)
Converts a SOURCE object into a TARGET object using provided Options.
|
java.util.Collection<OPTION> |
getDefaultOptions()
Getting default options
|
protected java.util.Map<OPTION,Populator<SOURCE,TARGET>> |
getPopulators() |
java.lang.Class<TARGET> |
getTargetClass() |
TARGET |
getTargetInstance() |
TARGET |
getTargetInstance(SOURCE source)
Getting target instance of source object
|
void |
populate(SOURCE source,
TARGET target,
java.util.Collection<OPTION> options)
Populate the target instance from the source instance.
|
void |
setDefaultOptions(java.util.Collection<OPTION> defaultOptions) |
void |
setPopulators(java.util.Map<OPTION,Populator<SOURCE,TARGET>> populators) |
void |
setTargetClass(java.lang.Class<TARGET> targetClass) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, convert, convert, convertAll, convertAllconvertAll, convertAllIgnoreExceptions, getLoggerpublic TARGET convert(SOURCE source, TARGET target, java.util.Collection<OPTION> options)
ConfigurableConverterconvert in interface ConfigurableConverter<SOURCE,TARGET,OPTION>source - - the source objecttarget - - the target objectoptions - - the collection of convert optionspublic void populate(SOURCE source, TARGET target, java.util.Collection<OPTION> options)
ConfigurablePopulatorpopulate in interface ConfigurablePopulator<SOURCE,TARGET,OPTION>source - the source objecttarget - the target to filloptions - options used to control what data is populatedpublic TARGET getTargetInstance(SOURCE source)
ConfigurableConvertergetTargetInstance in interface ConfigurableConverter<SOURCE,TARGET,OPTION>source - - the source objectpublic TARGET getTargetInstance()
public void setTargetClass(java.lang.Class<TARGET> targetClass)
public java.lang.Class<TARGET> getTargetClass()
public void setDefaultOptions(java.util.Collection<OPTION> defaultOptions)
public java.util.Collection<OPTION> getDefaultOptions()
ConfigurableConvertergetDefaultOptions in interface ConfigurableConverter<SOURCE,TARGET,OPTION>Copyright © 2018 SAP SE. All Rights Reserved.