The UML-to-COBOL process provides a model library that contains
business oriented primitive types. These primitive types augment the UML primitive
types that Rational® Software
Architect provides. Their usage is not mandatory for the rest of the tasks,
but they provide a better semantic for the attributes you want to describe.
The transformations to the language related layers take advantage of this
extra semantic.
When you create an UML model, you can specify which model libraries
you want to use. To specify which libraries to add, do the following.
- Open your UML model (.emx file) and, in the editor view, switch
to the Details tab.
- Click Add under Model Libraries.
The Import Model Library window opens.
- In the Import Model Library window, select
the Deployed Library radio button.
- From the Deployed Library drop-down menu,
select Data Types.
- Click Ok.
Attribute types
As shown, from the main view, the Import Model
Library window is opened and Data Types is
selected under the Deployed Library radio button.
The model library provides the following
types for attributes of a class.
- Data
- Binary
- Currency
- Date
- Float
- Integer
- String
As shown, the Select Element for Type window
is open. The attribute types are shown under the Browse tab.