Class ConnectorTest.ModelOutputTranslator

java.lang.Object
de.iip_ecosphere.platform.connectors.types.AbstractConnectorOutputTypeTranslator<Object,test.de.iip_ecosphere.platform.transport.Product>
test.de.iip_ecosphere.platform.connectors.ConnectorTest.ModelOutputTranslator
All Implemented Interfaces:
de.iip_ecosphere.platform.connectors.model.ModelAccessProvider, de.iip_ecosphere.platform.connectors.types.ConnectorOutputTypeTranslator<Object,test.de.iip_ecosphere.platform.transport.Product>, de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<Object,test.de.iip_ecosphere.platform.transport.Product>
Enclosing class:
ConnectorTest

private static class ConnectorTest.ModelOutputTranslator extends de.iip_ecosphere.platform.connectors.types.AbstractConnectorOutputTypeTranslator<Object,test.de.iip_ecosphere.platform.transport.Product>
Implements an output type translator for information-based tests.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.connectors.model.ModelAccessProvider

    de.iip_ecosphere.platform.connectors.model.ModelAccessProvider.IOModelAccessFunction, de.iip_ecosphere.platform.connectors.model.ModelAccessProvider.IOVoidFunction
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    ModelOutputTranslator(boolean withEvents)
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends Object>
     
    Class<? extends test.de.iip_ecosphere.platform.transport.Product>
     
    void
     
    test.de.iip_ecosphere.platform.transport.Product
    to(Object source)
     

    Methods inherited from class de.iip_ecosphere.platform.connectors.types.AbstractConnectorOutputTypeTranslator

    getModelAccess, setModelAccess

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • withEvents

      private boolean withEvents
  • Constructor Details

    • ModelOutputTranslator

      private ModelOutputTranslator(boolean withEvents)
      Creates an instance.
      Parameters:
      withEvents - for tests with event-based ingestion or for polling (false)
  • Method Details

    • initializeModelAccess

      public void initializeModelAccess() throws IOException
      Throws:
      IOException
    • to

      public test.de.iip_ecosphere.platform.transport.Product to(Object source) throws IOException
      Throws:
      IOException
    • getSourceType

      public Class<? extends Object> getSourceType()
    • getTargetType

      public Class<? extends test.de.iip_ecosphere.platform.transport.Product> getTargetType()