Package org.openhab.core.config.core.dto
Class ConfigDescriptionDTOMapper
java.lang.Object
org.openhab.core.config.core.dto.ConfigDescriptionDTOMapper
- Direct Known Subclasses:
EnrichedConfigDescriptionDTOMapper
ConfigDescriptionDTOMapper
maps ConfigDescription
s to the data transfer object
ConfigDescriptionDTO
.- Author:
- Dennis Nobel - Initial contribution, Ana Dimova - converting ConfigDescriptionParameterDTO to ConfigDescriptionParameter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<ConfigDescriptionParameter>
map
(List<ConfigDescriptionParameterDTO> parameters) static ConfigDescriptionDTO
map
(ConfigDescription configDescription) Maps configuration description into configuration description DTO object.protected static List<FilterCriteriaDTO>
mapFilterCriteria
(List<FilterCriteria> filterCriteria) protected static List<ParameterOptionDTO>
mapOptions
(List<ParameterOption> options) mapParameterGroups
(List<ConfigDescriptionParameterGroup> parameterGroups) Maps configuration description parameter groups into DTO objects.static List<ConfigDescriptionParameterGroup>
mapParameterGroupsDTO
(List<ConfigDescriptionParameterGroupDTO> parameterGroups) static List<ConfigDescriptionParameterDTO>
mapParameters
(List<ConfigDescriptionParameter> parameters) Maps configuration description parameters into DTO objects.protected static String
toDecodedString
(URI uri)
-
Constructor Details
-
ConfigDescriptionDTOMapper
public ConfigDescriptionDTOMapper()
-
-
Method Details
-
map
Maps configuration description into configuration description DTO object.- Parameters:
configDescription
- the configuration description (not null)- Returns:
- the configuration description DTO object
-
toDecodedString
-
map
-
mapParameterGroupsDTO
public static List<ConfigDescriptionParameterGroup> mapParameterGroupsDTO(List<ConfigDescriptionParameterGroupDTO> parameterGroups) -
mapParameters
public static List<ConfigDescriptionParameterDTO> mapParameters(List<ConfigDescriptionParameter> parameters) Maps configuration description parameters into DTO objects.- Parameters:
parameters
- the configuration description parameters (not null)- Returns:
- the parameter DTO objects (not null)
-
mapParameterGroups
public static List<ConfigDescriptionParameterGroupDTO> mapParameterGroups(List<ConfigDescriptionParameterGroup> parameterGroups) Maps configuration description parameter groups into DTO objects.- Parameters:
parameterGroups
- the configuration description parameter groups (not null)- Returns:
- the parameter group DTO objects (not null)
-
mapFilterCriteria
-
mapOptions
-