Class SemanticTagDTOMapper

java.lang.Object
org.openhab.core.semantics.dto.SemanticTagDTOMapper

@NonNullByDefault public class SemanticTagDTOMapper extends Object
The SemanticTagDTOMapper is an utility class to map semantic tags into semantic tag data transfer objects (DTOs).
Author:
Laurent Garnier - Initial contribution
  • Constructor Details

    • SemanticTagDTOMapper

      public SemanticTagDTOMapper()
  • Method Details

    • map

      public static @Nullable SemanticTag map(@Nullable SemanticTagDTO tagDTO)
      Maps semantic tag DTO into semantic tag object.
      Parameters:
      tagDTO - the DTO
      Returns:
      the semantic tag object
    • map

      public static SemanticTagDTO map(SemanticTag tag)
      Maps semantic tag object into semantic tag DTO.
      Parameters:
      tag - the semantic tag
      Returns:
      the semantic tag DTO