Online Help TEDIDataObject

Unit JclEDI

Types

TEDIDataObject

   The TEDIDataObject is the base class for all descendent EDI data classes. Descendent classes often manage collections of other EDI data object types and override the abstract assemble and disassemble methods.

 Type

TEDIDataObjectType = (ediUnknown, ediElement, ediCompositeElement, ediSegment,   ediLoop, ediTransactionSet, ediMessage, ediFunctionalGroup,   ediInterchangeControl, ediFile, ediCustom);

   This type is used to identify descendent's of TEDIDataObject other than by class type

 Type

TEDIDataObjectDataState = (ediCreated, ediAssembled, ediDissassembled);

 Property

property State: TEDIDataObjectDataState read FState;

   This type is used to determine the state of the TEDIDataObject

 Function

function Assemble: string; virtual; abstract;

   Override this function in a descendent class to provide implementation details that assemble EDI data to be constructed into an EDI file format.

 Procedure

procedure Disassemble; virtual; abstract;

   Override this function in a descendent class to provide implementation details that disassemble EDI data from an EDI file format.

 Type and Property

TEDIDataObjectDataState = (ediCreated, ediAssembled, ediDissassembled); property State: TEDIDataObjectDataState read FState;

   When overriding the Assemble and Disassemble methods in descendent classes the State property should be set accordingly.

 Property

property SpecPointer: TEDIObject read FSpecPointer write FSpecPointer;

   Reserved for use for pointing to EDI specification objects.

 Property

property CustomData1: Pointer read FCustomData1 write FCustomData1;
property CustomData2: Pointer read FCustomData2 write FCustomData2;

   Reserved for use for programmers for any task.

Usage

Notes & Examples

   The source code in JclEDI, JclEDI_ANSIX12, and JclEDI_UNEDIFACT units demonstrate how to build classes from this base class.