cdac.medinfo.sdk.hl7282.baselibs.segmentfactory

## Class SegmentMapReader

- java.lang.Object
- - cdac.medinfo.sdk.hl7282.baselibs.segmentfactory.SegmentMapReader

- All Implemented Interfaces:
    ISegmentMapReader

      public final class SegmentMapReader
      extends java.lang.Object
      implements ISegmentMapReader

  SegmentMapReader provides implementation to ISegmentMapReader. It uses ISegmentMap to represent segment structure.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static SegmentMapReader` | `createInstance()` Returns instance of Dictionary Reader if not created.
    `ISegmentMap` | `getSegmentMap(java.lang.String strSegmentName)` Retrieves SegmentMap for given name of segment.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### createInstance

          public static SegmentMapReader createInstance()
                                                 throws InvalidDictionaryException

      Returns instance of Dictionary Reader if not created.
      Returns:
        - instance of DictionaryReader
      Throws:
        `InvalidDictionaryException`

    - #### getSegmentMap

          public ISegmentMap getSegmentMap(java.lang.String strSegmentName)

      Retrieves SegmentMap for given name of segment.
      Specified by:
        `getSegmentMap` in interface `ISegmentMapReader`
      Parameters:
        `strSegmentName` - name of segment
      Returns:
        ISegmentMap - instance of SegmentMap