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
-
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)
-
Constructor Details
-
ItemDTOMapper
public ItemDTOMapper()
-
-
Method Details
-
map
Maps item DTO into item object.- Parameters:
itemDTO
- the DTOitemBuilderFactory
- the item registry- Returns:
- the item object
-
mapFunction
-
map
Maps item into item DTO object.- Parameters:
item
- the item- Returns:
- item DTO object
-
mapFunction
-