Package org.openhab.core.items.dto
Class ItemDTOMapper
java.lang.Object
org.openhab.core.items.dto.ItemDTOMapper
The
ItemDTOMapper
is a utility class to map items into item data transfer objects (DTOs).- Author:
- Kai Kreuzer - Initial contribution, Stefan Bußweiler - Moved to core and renamed class to DTO mapper, Dennis Nobel - Removed dynamic data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Item
map
(ItemDTO itemDTO, ItemBuilderFactory itemBuilderFactory) Maps item DTO into item object.static ItemDTO
Maps item into item DTO object.static @Nullable GroupFunctionDTO
mapFunction
(@Nullable GroupFunction function) static GroupFunction
mapFunction
(@Nullable Item baseItem, GroupFunctionDTO function)