Interface IMapper<M,V>

Record Components:
M - the model type.
V - the view type to which the model type M is projected.
All Known Subinterfaces:
IViewModelsMapper<M,T>
All Known Implementing Classes:
AefLabelCheckStateMapper, AefLabelMapper, CharacteristicsTableMapper, CommonAttributeContentTreeComponent.CommonAttributeContentMapper, ExchangePlanContentComponent.ExchangePlatContentMapper, NavigatorTableComponent.NavigatorMapper, NavigatorTreeComponent.NavigatorMapper, OneWayLabelMapper, OneWayMapper, PathToStringMapper, PredefinedDataComponent.PredefinedDataMapper

public interface IMapper<M,V>
Generalized mapper interface.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IMapper
    Identity mapper, maps any passed object to itself in both directions.
  • Method Summary

    Modifier and Type
    Method
    Description
    mapModelToView(M modelValue)
    Maps the model value to some projected view value.
    mapViewToModel(V viewValue)
    Maps the view value to associated model value.
  • Field Details

    • IDENTITY

      static final IMapper IDENTITY
      Identity mapper, maps any passed object to itself in both directions.
  • Method Details

    • mapModelToView

      V mapModelToView(M modelValue)
      Maps the model value to some projected view value.
      Parameters:
      modelValue - the model value to map.
      Returns:
      mapped value.
    • mapViewToModel

      M mapViewToModel(V viewValue)
      Maps the view value to associated model value.
      Parameters:
      viewValue - the view value to map.
      Returns:
      mapped value.