Level 88 data items implementation

The import wizard in Rule Designer normally generates methods for Level 88 data items automatically. However, in certain cases it cannot.

When you generate a XOM from a COBOL copybook, Rule Designer can, in most cases, create a XOM implementation for the methods imported with Level 88 items. For example, suppose you have the following copybook items:

01   Borrower.
     05 age                  PIC 9(3).
        88 teenager  VALUE 0  THRU 17.
        88 adult    VALUE 18 THRU 60.
        88 retired  VALUE 61 THRU 150.

The import wizard generates the required getter and setter methods. For example, it creates these two methods for the item teenager:

public class Borrower {
     private int age;

     public boolean ageTeenager() {
           return this.age >= 0 && this.age <= 17;
     }

     public void setAgeTeenager() {
          this.age = 0;
     }
 }

However, in the following cases, the import wizard cannot generate methods for Level 88 data items: