Top-level data items

The COBOL importer handles top-level data items differently to lower-level data items.

Each top-level data item creates one Java™ class in the XOM. This Java class has one attribute. The attribute takes the same name as the Java class, except that the first character is in lowercase.

The type of the attribute depends on the data item definition. For example, you might have following top-level data item:

01 TopItem PIC X(20).
This data item maps to the following Java XOM entries:
  • The data item creates a class that is named TopItem.

  • The TopItem class has one attribute, named topItem.

  • The attribute type is java.lang.String.