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 ConfigDescription
s to config
descriptions data transform objects ConfigDescriptionDTO
containing
EnrichedConfigDescriptionParameterDTO
.- Author:
- Christoph Weitkamp - Initial contribution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigDescriptionDTO
map
(ConfigDescription configDescription) Maps configuration description into configuration description DTO object.static List<ConfigDescriptionParameterDTO>
mapEnrichedParameters
(List<ConfigDescriptionParameter> parameters) Maps configuration description parameters into enriched DTO objects.Methods inherited from class org.openhab.core.config.core.dto.ConfigDescriptionDTOMapper
map, mapFilterCriteria, mapOptions, mapParameterGroups, mapParameterGroupsDTO, mapParameters, toDecodedString
-
Constructor Details
-
EnrichedConfigDescriptionDTOMapper
public EnrichedConfigDescriptionDTOMapper()
-
-
Method Details
-
map
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
-