Interface PageablePopulator<SOURCE,TARGET,OPTION>

Type Parameters:
SOURCE - the type of the source object
TARGET - the type of the destination object
OPTION - 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 Type
    Method
    Description
    void
    populate(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 object
      target - the target to fill
      options - options used to control what data is populated
      Throws:
      ConversionException - if an error occurs