Previous Table of Contents Next


7.3.6 RecordDef


   A RecordDef is an ordered collection of Fields representing the structure of a Record. Examples of RecordDefs include definitions of

   The internal structure of a RecordDef instance is constructed by adding Field instances as features (using the ElementOwnership association) and pointing each Field instance's inherited type reference to the Classifier instance representing the Field’s data type. The referenced instance can be either a primitive data type (an instance of DataType, such as “integer?) or a structured data type (such as a Group instance).

   Refer to the foregoing example for more details of the relationships between RecordDefs, Fields, Records, and their values.

   Superclasses

    Class

   Contained Elements

   Field

   Attributes

   fieldDelimiter

The value of a fieldDelimiter used to separate field values in an input stream.

type:

multiplicity:

String
zero or one

   isFixedWidth

True if the record is fixed length. Otherwise, the record can be of variable length.

type:

multiplicity:

Boolean
exactly one

   textDelimiter

The delimiter of a text string in the record, such as a quote.

type:

multiplicity:

String
zero or one

   References

   file

Identifies files containing Records described by the RecordDef.

class:

defined by:

multiplicity:

inverse:

RecordFile
RecordToFile::file
zero or more
RecordFile::record