org.eclipse.viatra.integration.mwe2

## Interface IMessageProcessor<ParameterType,Message extends IMessage<ParameterType>>

- All Known Implementing Classes:
    StringMessageProcessor

      public interface IMessageProcessor<ParameterType,Message extends IMessage<ParameterType>>

  Interface that defines the base functions of a message processor. The message processors are responsible for processing certain typed messages. The type of these events is specified in the template parameter, while the parameter type of these messages is specified in the template parameter.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ITransformationStep` | `getParent()` Returns the parent ITransformationStep object of this particular message processor.
    `void` | `processMessage(IMessage<? extends java.lang.Object> message)` The IMessageProcessor processes the given IMEssage.
    `void` | `setParent(ITransformationStep parent)` Sets the parent reference of the message processor to the given ITransformationStep

- - ### Method Detail

    - #### getParent

          ITransformationStep getParent()

      Returns the parent ITransformationStep object of this particular message processor.

    - #### setParent

          void setParent(ITransformationStep parent)

      Sets the parent reference of the message processor to the given ITransformationStep
      Parameters:
        `parent` -

    - #### processMessage

          void processMessage(IMessage<? extends java.lang.Object> message)
                       throws InvalidParameterTypeException

      The IMessageProcessor processes the given IMEssage. The additional functionality of the processor is added here.
      Parameters:
        `message` -
      Throws:
        `InvalidParameterTypeException`