Class EnrichedConfigDescriptionDTOMapper

java.lang.Object
org.openhab.core.config.core.dto.ConfigDescriptionDTOMapper
org.openhab.core.io.rest.core.config.EnrichedConfigDescriptionDTOMapper

@NonNullByDefault public class EnrichedConfigDescriptionDTOMapper extends ConfigDescriptionDTOMapper
The EnrichedConfigDescriptionDTOMapper is a utility class to map ConfigDescriptions to config descriptions data transform objects ConfigDescriptionDTO containing EnrichedConfigDescriptionParameterDTO.
Author:
Christoph Weitkamp - Initial contribution
  • Constructor Details

    • EnrichedConfigDescriptionDTOMapper

      public EnrichedConfigDescriptionDTOMapper()
  • Method Details

    • map

      public static ConfigDescriptionDTO map(ConfigDescription configDescription)
      Maps configuration description into configuration description DTO object.
      Parameters:
      configDescription - the configuration description (not null)
      Returns:
      enriched configuration description DTO object
    • mapEnrichedParameters

      public static List<ConfigDescriptionParameterDTO> mapEnrichedParameters(List<ConfigDescriptionParameter> parameters)
      Maps configuration description parameters into enriched DTO objects.
      Parameters:
      parameters - the configuration description parameters (not null)
      Returns:
      the parameter enriched DTO objects