Interface OutputTypeTranslator<S,T>

Type Parameters:
S - the source type
T - the target type
All Known Subinterfaces:
Serializer<T>, TypeTranslator<S,T>
All Known Implementing Classes:
AlertSerializer, ByteArraySerializer, GenericJsonSerializer, GenericJsonToStringTranslator, StatusMessageSerializer, StringSerializer, TraceRecordSerializer

public interface OutputTypeTranslator<S,T>
Defines a type translator between two given types. Translation may imply a loss or augmentation of information.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    to(S source)
    Translates a source value into a target value ("output to external").
  • Method Details

    • to

      T to(S source) throws IOException
      Translates a source value into a target value ("output to external").
      Parameters:
      source - the source value to be translated
      Returns:
      the target value
      Throws:
      IOException - in case that translation fails