## Uses of Class
cdac.medinfo.sdk.hl7282.baselibs.messages.MessageFactory

- Packages that use MessageFactory
  Package | Description
  --- | ---
  cdac.medinfo.sdk.hl7282.baselibs.messages | Provides Classes necessary to create Message, Acknowledgement and also contains Exception classes which are specific to message operations like serialize, validate & parse.
  cdac.medinfo.sdk.hl7282.hl7net.auxiliaryprotocol.batch | Provides classes for Batch, BatchFile and BatchAgent used for Batch Protocol.
  cdac.medinfo.sdk.hl7282.hl7net.commons | Provides Interfaces which are required to be implemented by Session classes, Network Agents & MessageAgents of Client Server.
  cdac.medinfo.sdk.hl7282.hl7net.communication | Provides classes which are required for Message buffer parsing from network stream.
  cdac.medinfo.sdk.hl7282.hl7net.upperlayer | Provides classes which interact with application layer and base network layer.

- - ### Uses of MessageFactory in cdac.medinfo.sdk.hl7282.baselibs.messages

    Methods in cdac.medinfo.sdk.hl7282.baselibs.messages that return MessageFactory
    Modifier and Type | Method and Description
    --- | ---
    `static MessageFactory` | MessageFactory.`createInstance()`
    `MessageFactory` | HL7MessageValidator.`getMessageFactory()` Retrieves Message Factory.

    Methods in cdac.medinfo.sdk.hl7282.baselibs.messages with parameters of type MessageFactory
    Modifier and Type | Method and Description
    --- | ---
    `void` | HL7MessageValidator.`setMessageFactory(MessageFactory objFactory)` Sets Message Factory.

  - ### Uses of MessageFactory in cdac.medinfo.sdk.hl7282.hl7net.auxiliaryprotocol.batch

    Methods in cdac.medinfo.sdk.hl7282.hl7net.auxiliaryprotocol.batch with parameters of type MessageFactory
    Modifier and Type | Method and Description
    --- | ---
    `IHL7BatchFile` | BatchAgent.`createBatchFile(MessageFactory objMessageFactory, ISegmentSet objSegmentSet)` Creates HL7BatchFile and populate it through provided SegmentSet.
    `IHL7BatchFile` | BatchAgent.`populateBatchFile(MessageFactory objMessageFactory, ISegmentSet objSegmentSet)` Populates HL7BatchFile through provided SegmentSet.
    `IHL7BatchFile` | BatchAgent.`processReceive(MessageFactory objMessageFactory, ISegmentSet objISegmentSet)` Retrieves populated HL7BatchFile through given SegmentSet.

  - ### Uses of MessageFactory in cdac.medinfo.sdk.hl7282.hl7net.commons

    Methods in cdac.medinfo.sdk.hl7282.hl7net.commons with parameters of type MessageFactory
    Modifier and Type | Method and Description
    --- | ---
    `IHL7BatchFile` | IBatchProcessor.`createBatchFile(MessageFactory objMessageFactory, ISegmentSet objSegmentSet)` Creates HL7BatchFile and populate it through provided SegmentSet.
    `IHL7BatchFile` | IBatchProcessor.`populateBatchFile(MessageFactory objMessageFactory, ISegmentSet objSegmentSet)` Populates HL7BatchFile through provided SegmentSet.
    `IHL7BatchFile` | IBatchProcessor.`processReceive(MessageFactory objMessageFactory, ISegmentSet objSegmentSet)` Retrieves populated HL7BatchFile through given SegmentSet.

  - ### Uses of MessageFactory in cdac.medinfo.sdk.hl7282.hl7net.communication

    Methods in cdac.medinfo.sdk.hl7282.hl7net.communication with parameters of type MessageFactory
    Modifier and Type | Method and Description
    --- | ---
    `void` | ServerSideMessageAgent.`setMessageFactory(MessageFactory objMessageFactory)` Sets Message Handler on Message Agent.
    `void` | ClientSideMessageAgent.`setMessageFactory(MessageFactory objMessageFactory)` Sets Message Handler on Message Agent.

  - ### Uses of MessageFactory in cdac.medinfo.sdk.hl7282.hl7net.upperlayer

    Methods in cdac.medinfo.sdk.hl7282.hl7net.upperlayer that return MessageFactory
    Modifier and Type | Method and Description
    --- | ---
    `MessageFactory` | ClientSession.`getMessageFactory()` Retrieves MessageFactory from ClientSession.

    Methods in cdac.medinfo.sdk.hl7282.hl7net.upperlayer with parameters of type MessageFactory
    Modifier and Type | Method and Description
    --- | ---
    `void` | UserSession.`setMessageFactory(MessageFactory objMessageFactory)` Sets Message Factory
    `void` | ClientSession.`setMessageFactory(MessageFactory objMessageFactory)` Sets MessageFactory on ClientSession.