Package org.openhab.core.semantics.dto
Class SemanticTagDTOMapper
java.lang.Object
org.openhab.core.semantics.dto.SemanticTagDTOMapper
The
SemanticTagDTOMapper
is an utility class to map semantic tags into
semantic tag data transfer objects (DTOs).- Author:
- Laurent Garnier - Initial contribution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable SemanticTag
map
(@Nullable SemanticTagDTO tagDTO) Maps semantic tag DTO into semantic tag object.static SemanticTagDTO
map
(SemanticTag tag) Maps semantic tag object into semantic tag DTO.
-
Constructor Details
-
SemanticTagDTOMapper
public SemanticTagDTOMapper()
-
-
Method Details
-
map
Maps semantic tag DTO into semantic tag object.- Parameters:
tagDTO
- the DTO- Returns:
- the semantic tag object
-
map
Maps semantic tag object into semantic tag DTO.- Parameters:
tag
- the semantic tag- Returns:
- the semantic tag DTO
-