Package org.openhab.core.thing.dto
Class ThingDTOMapper
java.lang.Object
org.openhab.core.thing.dto.ThingDTOMapper
- Direct Known Subclasses:
EnrichedThingDTOMapper
The
ThingDTOMapper
is a utility class to map things into data transfer objects (DTO).- Author:
- Stefan Bußweiler - Initial contribution, Kai Kreuzer - Added DTO to Thing mapping
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ThingDTOMapper
public ThingDTOMapper()
-
-
Method Details
-
map
Maps thing into thing data transfer object (DTO).- Parameters:
thing
- the thing- Returns:
- the thing DTO object
-
map
Maps thing DTO into thing- Parameters:
thingDTO
- the thingDTOisBridge
- flag if the thing DTO identifies a bridge- Returns:
- the corresponding thing
-