Class MessageEvent

java.lang.Object
com.aquima.interactions.process.MessageEvent
All Implemented Interfaces:
IMessageEvent

public class MessageEvent extends Object implements IMessageEvent
Default implementation for the message event.
Since:
9.1
Author:
A. Pragt
  • Constructor Details

    • MessageEvent

      public MessageEvent(String name)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: IMessageEvent
      This method returns the name of the event, may not be null.
      Specified by:
      getName in interface IMessageEvent
      Returns:
      The name of the event, never null.
    • getField

      public IValue getField(String name)
      Description copied from interface: IMessageEvent
      This method returns the value of the datafield, or null if non existing.
      Specified by:
      getField in interface IMessageEvent
      Parameters:
      name - The name of the datafield.
      Returns:
      The value of the data field, or null.
    • addField

      public MessageEvent addField(String name, IValue value)
      Sets a field to a value.
      Parameters:
      name - The name of the field, never null.
      value - The value of the field, never null.
      Returns:
      this message event for method chaining
    • getFields

      public Map<String,IValue> getFields()
      Normally this would be an unmodifiable map, but .NET does not support it.
      Specified by:
      getFields in interface IMessageEvent
      Returns:
      an unmodifiable map of the message event fields.