Interface ChanneledConnectorOutputTypeTranslator<S,​T>

  • Type Parameters:
    S - the source type (see TypeTranslator)
    T - the target type (see TypeTranslator)
    All Superinterfaces:
    de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<S,​T>
    All Known Implementing Classes:
    ChanneledConnectorOutputTypeAdapter

    public interface ChanneledConnectorOutputTypeTranslator<S,​T>
    extends de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<S,​T>
    Refines the TypeTranslator for the use with channeled connectors and actual channel names including a delegating default implementation of the type translator method passing in the default channel name.
    Author:
    Holger Eichelberger, SSE
    • Method Detail

      • to

        T to​(java.lang.String channel,
             S source)
        throws java.io.IOException
        Translates a source value into a target value ("output to external").
        Parameters:
        channel - the channel the value was received on
        source - the source value to be translated
        Returns:
        the target value
        Throws:
        java.io.IOException - in case that translation fails
      • to

        default T to​(S source)
              throws java.io.IOException
        Specified by:
        to in interface de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<S,​T>
        Throws:
        java.io.IOException