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:
For Level 88 group items, or if a Level 88 condition is combined with other data items in a group data item. In these cases, no methods are created.
If a Level 88 data item occurs in a table. In this case, no methods are created.
With certain COBOL-specific literals in a Level 88 VALUE clause. For more information see COBOL-specific literals implementation.
If the condition variable to which the Level 88 condition relates has been converted to a Java™ type or domain. For more information see Converted type implementation.