Online Help TEDISegmentSpec

Unit JclEDI_ANSIX12

Types

TEDISegmentSpec

   The TEDISegmentSpec object stores EDI segment specification data.

 Properties

property Id: string read FSegmentId write FSegmentId;
property Position: Integer read FPosition write FPosition;
property Description: string read FDescription write FDescription;
property Notes: string read FNotes write FNotes;
property Section: string read FSection write FSection;
property RequirementDesignator: string read FRequirementDesignator
  write FRequirementDesignator;
property MaximumUsage: Integer read FMaximumUsage write FMaximumUsage;
property OwnerLoopId: string read FOwnerLoopId write FOwnerLoopId;
property ParentLoopId: string read FParentLoopId write FParentLoopId;

   Segment specification properties.

 Procedures and Property

procedure AssembleReservedData(ReservedData: TStrings); virtual; procedure DisassembleReservedData(ReservedData: TStrings); virtual; property ReservedData: TStrings read FReservedData;

   These procedures are used in the Assemble and Disassemble methods to work with TStrings compatible string data from TEDIElementSpec.

 Function

function Assemble: string; override;

   This function implements the assembling of EDI data into EDI specification file format.

 Procedure

procedure Disassemble; override;

   This procedure implements the disassembling of EDI data from EDI specification file format.

   The TEDISegmentSpec stores its specification data with a special element that has the id of "Reserved". This indicates that it is reserved data and should not be treated as element specification data. When the segment is assembled it inserts the "Reserved" data as the first element. When the segment is disassembled it extracts the "Reserved" data from the first element. See TEDIElementSpec for more information.

   See Specification Classes for more general information about EDI specification classes.

Usage

Notes & Examples

< Under Construction >