Package org.openhab.core.io.dto
Interface ModularDTO<D,M,N>
- Type Parameters:
D- the DTO type.M- the mapper/helper type, e.g.ObjectMapper.N- the tree-node type, e.g.JsonNode.
public interface ModularDTO<D,M,N>
A DTO that can handle the deserialization from "tree form" itself, allowing more flexible, multi-step processing.
- Author:
- Ravi Nadahar - Initial contribution
-
Method Summary
-
Method Details
-
toDto
Deserializes the specified node into a DTO object.- Parameters:
node- the node to deserialize.mapper- the mapper/helper object to use for deserialization.- Returns:
- The resulting DTO instance.
- Throws:
SerializationException- If an error occurs during deserialization.
-