Package org.openhab.core.thing.dto
Class ChannelDTOMapper
java.lang.Object
org.openhab.core.thing.dto.ChannelDTOMapper
The
ChannelDTOMapper is a utility class to map channels into channel data transfer objects (DTOs).- Author:
- Stefan Bußweiler - Initial contribution, Kai Kreuzer - added DTO to channel mapping
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelDTOMaps channel into channel DTO object.static Channelmap(ChannelDTO channelDTO) Maps channel DTO into channel object.
-
Constructor Details
-
ChannelDTOMapper
public ChannelDTOMapper()
-
-
Method Details
-
map
Maps channel into channel DTO object.- Parameters:
channel- the channel- Returns:
- the channel DTO object
-
map
Maps channel DTO into channel object.- Parameters:
channelDTO- the channel DTO- Returns:
- the channel object
-