Class EDI::Message
In: lib/edi4r.rb
lib/edi4r/rexml.rb
Parent: Collection_HT

A "Message" is a special "Collection with header and trailer" It collects "Segment" objects.

Methods

add   new   parse_xml   to_xml  

Public Class methods

@@msgCounter = 1

Public Instance methods

Add only Segment objects to a message!

Build an XML document tree from

  a) the linear sequence of segments
  b) metadata from the standards DB (attached to each segment)

Track xml parent element for segments by level

Add ‘header’ and ‘trailer’ wrapper element around

  header and trailer, if any

Trigger segments and their depending segments get wrapped in a ‘SegmentGroup’ element that bears the group name as its name.

[Validate]