ISO 10303-21:2016(E)

7 Structured data types

Two list data types are allowed in the exchange structure.

7.1 Parameter list

As defined in Table 3 a LIST is a (possibly empty) sequence of PARAMETERs, each of which may be:

A given LIST may contain more than one of the above forms. In the exchange structure, a LIST begins with a left parenthesis "(" and ends with a matching right parenthesis ")". Instances are separated by commas. LISTs can be nested to any depth.

EXAMPLE

Structured data type Representation
List of Integer (0,1,2,3,7,2,4)
List of String ('CAT', 'HELLO')
List of List of Real ((0.0, 1.0, 2.0), (3.0, 4.0, 5.0))
List of List of Real ((0.0, 1.0, 2.0), ( ))

In the last List of List of Real, the second embedded list is empty.

7.2 Anchor item list

As defined in Table 3 an ANCHOR_ITEM_LIST may be defined in the anchor section. The list shall contain a sequence of values each of which may be:

A given ANCHOR_ITEM_LIST may contain more than one of the above forms. In the exchange structure, an ANCHOR_ITEM_LIST begins with a left parenthesis "(" and ends with a matching right parenthesis ")". Instances are separated by commas. ANCHOR_ITEM_LISTs can be nested to any depth.

EXAMPLE

Structured data type Representation
List of URI (<abc#d>, <def.xml>)
List of integers (1, 2, 3)

© ISO 2016 — All rights reserved