Interface KeyMapper

All Superinterfaces:
LexiconMapper<Key,KeyDTO>
All Known Implementing Classes:
KeyMapperImpl

public interface KeyMapper extends LexiconMapper<Key,KeyDTO>
An interface Mapper for Key to map its object with its value
Author:
European Dynamics SA
  • Method Details

    • mapToDTO

      KeyDTO mapToDTO(Key key, boolean addTranslations)
      Maps an entity Key to DTO
      Parameters:
      key - the Key entity
      addTranslations - an addTranslations check value
      Returns:
      a mapped DTO
    • mapGroup

      default String mapGroup(Group group)
      Maps the Group value
      Parameters:
      group - the group of the key
      Returns:
      the id of the Group
    • mapData

      default Map<String,String> mapData(List<Data> data, boolean addTranslations)
      Maps tha Data
      Parameters:
      data - a list of lexicon data
      addTranslations - checking value
      Returns:
      a new HashMap of data