cdac.medinfo.sdk.hl7282.baselibs.messages

## Interface IMessageFactory

-     public interface IMessageFactory

  MessageFactory interface implemented by Model Factory class. This helps factories classes to create HL7 Messages of the respective HL7 System.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Message` | `createMessage(EnumMessageCode enumMessageCode, EnumTriggerEvent enumTriggerEvent)` Creates Message with specified enumerations of Trigger Event & Message Structure.
    `boolean` | `isEventSupported(EnumTriggerEvent enumTriggerEvent)` Checks whether Trigger Event specified in Enumeration is Supported.

- - ### Method Detail

    - #### createMessage

          Message createMessage(EnumMessageCode enumMessageCode,
                              EnumTriggerEvent enumTriggerEvent)

      Creates Message with specified enumerations of Trigger Event & Message Structure.
      Parameters:
        `enumMessageCode` - enumerated value of Message Code
        `enumTriggerEvent` - enumerated value of Trigger Event
      Returns:
        Message instance of Message

    - #### isEventSupported

          boolean isEventSupported(EnumTriggerEvent enumTriggerEvent)

      Checks whether Trigger Event specified in Enumeration is Supported.
      Parameters:
        `enumTriggerEvent` - enumerated value of Trigger Event
      Returns:
        boolean shows status as success or failure