Collection type

Collection interface and its concrete implementation classes in Java™ are supported when Java types map to COBOL structures.

In the BOM, you can represent a set of objects as a Collection Collection(java.util.Collection) or as an Array Array

To generate a COBOL copybook from the BOM, the BOM cannot use an abstract class type to implement the Collection interface.

A Java Collection type attribute creates two COBOL data items: a COBOL fixed-length table that holds the contents, and an integer item that indicates the size of the Collection.

In the domain of the Collection, if the maximum length is not set to *, the actual size is used to generate an OCCURS {size} TIMES clause.

The statement the number of elements of maps to the size indicator.