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

    Modifier and Type
    Method
    Description
    @NonNull D
    toDto(@NonNull N node, @NonNull M mapper)
    Deserializes the specified node into a DTO object.
  • Method Details

    • toDto

      @NonNull D toDto(@NonNull N node, @NonNull M mapper) throws SerializationException
      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.