Interface PageablePopulator<SOURCE,TARGET,OPTION>
- Type Parameters:
SOURCE- the type of the source objectTARGET- the type of the destination objectOPTION- the type of the options list
- All Known Implementing Classes:
CategoryHierarchyPopulator
public interface PageablePopulator<SOURCE,TARGET,OPTION>
Interface for a configurable populator. A populator sets values in a target instance based on values in the source
instance. Populators are similar to converters except that unlike converters the target instance must already exist.
The collection of options is used to control what data is populated.
-
Method Summary
Modifier and TypeMethodDescriptionvoidpopulate(SOURCE source, TARGET target, Collection<? extends OPTION> options, PageOption page) Populate the target instance from the source instance.
-
Method Details
-
populate
void populate(SOURCE source, TARGET target, Collection<? extends OPTION> options, PageOption page) throws ConversionException Populate the target instance from the source instance. The collection of options is used to control what data is populated.- Parameters:
source- the source objecttarget- the target to filloptions- options used to control what data is populated- Throws:
ConversionException- if an error occurs
-