As explained in the previous section (
Mapping Top-level Types), the CHOICE
at
the top level is effectively ignored: the elements of the
CHOICE
are used to generate the output of a file
instead. In the routine case where the CHOICE
is
contained in another data type or stands alone, the mapping is
slightly different.
Take for example the following CHOICE
:
C ::= CHOICE { i INTEGER, b BOOLEAN, s UTF8String }
The elements contained in the CHOICE
will be used
as the column names. The name of the CHOICE
itself will
be ignored. The resulting column names from this example would look
like this:
i,b,s