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) |
java.util.Collection<OPTION> |
getDefaultOptions() |
protected java.util.Map<OPTION,Populator<SOURCE,TARGET>> |
getPopulators() |
java.lang.Class<TARGET> |
getTargetClass() |
TARGET |
getTargetInstance() |
TARGET |
getTargetInstance(SOURCE source) |
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) throws ConversionException
convert in interface ConfigurableConverter<SOURCE,TARGET,OPTION>ConversionExceptionpublic void populate(SOURCE source, TARGET target, java.util.Collection<OPTION> options) throws ConversionException
ConfigurablePopulatorpopulate in interface ConfigurablePopulator<SOURCE,TARGET,OPTION>source - the source objecttarget - the target to filloptions - options used to control what data is populatedConversionException - if an error occurspublic TARGET getTargetInstance(SOURCE source)
getTargetInstance in interface ConfigurableConverter<SOURCE,TARGET,OPTION>public 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()
getDefaultOptions in interface ConfigurableConverter<SOURCE,TARGET,OPTION>Copyright © 2017 SAP SE. All Rights Reserved.