Class DefaultConfigurableConverter<SOURCE,TARGET,OPTION>
java.lang.Object
de.hybris.platform.personalizationfacades.converters.impl.DefaultConfigurableConverter<SOURCE,TARGET,OPTION>
- All Implemented Interfaces:
ConfigurablePopulator<SOURCE,,TARGET, OPTION> ConfigurableConverter<SOURCE,,TARGET, OPTION> Converter<SOURCE,,TARGET> org.springframework.core.convert.converter.Converter<SOURCE,TARGET>
- Direct Known Subclasses:
DefaultConfigurableSubtypeConverter
public class DefaultConfigurableConverter<SOURCE,TARGET,OPTION>
extends Object
implements ConfigurableConverter<SOURCE,TARGET,OPTION>, ConfigurablePopulator<SOURCE,TARGET,OPTION>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(SOURCE source, TARGET target, Collection<OPTION> options) Converts a SOURCE object into a TARGET object using provided Options.Getting default optionsgetTargetInstance(SOURCE source) Getting target instance of source objectvoidpopulate(SOURCE source, TARGET target, Collection<OPTION> options) Populate the target instance from the source instance.voidsetDefaultOptions(Collection<OPTION> defaultOptions) voidvoidsetTargetClass(Class<TARGET> targetClass) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.personalizationfacades.converters.ConfigurableConverter
convert, convert, convert, convertAll, convertAllMethods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLoggerMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
DefaultConfigurableConverter
public DefaultConfigurableConverter()
-
-
Method Details
-
convert
Description copied from interface:ConfigurableConverterConverts a SOURCE object into a TARGET object using provided Options.- Specified by:
convertin interfaceConfigurableConverter<SOURCE,TARGET, OPTION> - Parameters:
source- - the source objecttarget- - the target objectoptions- - the collection of convert options- Returns:
- the TARGET object
-
populate
Description copied from interface:ConfigurablePopulatorPopulate the target instance from the source instance. The collection of options is used to control what data is populated.- Specified by:
populatein interfaceConfigurablePopulator<SOURCE,TARGET, OPTION> - Parameters:
source- the source objecttarget- the target to filloptions- options used to control what data is populated
-
getTargetInstance
Description copied from interface:ConfigurableConverterGetting target instance of source object- Specified by:
getTargetInstancein interfaceConfigurableConverter<SOURCE,TARGET, OPTION> - Parameters:
source- - the source object- Returns:
- the TARGET object
-
getTargetInstance
-
setTargetClass
-
getTargetClass
-
setDefaultOptions
-
getDefaultOptions
Description copied from interface:ConfigurableConverterGetting default options- Specified by:
getDefaultOptionsin interfaceConfigurableConverter<SOURCE,TARGET, OPTION> - Returns:
- the Collection of Options
-
getPopulators
-
setPopulators
-