In Java CAPS, message structures are defined as Object Type Definitions (OTDs). Each OTD consists of the following elements:
Physical Hierarchy – The predefined way in which envelopes, segments, and data elements are organized to describe a particular X12 EDI transaction.
Delimiters – The specific predefined characters used to mark the beginning and end of envelopes, segments, and data elements.
Properties – The characteristics of a data element, such as the length of each element, default values, and indicators that specify attributes of a data part, for example, whether it is required, optional, or repeating.
Included with the ASC X12 PM product is the X12 OTD Library. See the X12 OTD Library User’s Guide for details.