Rational Developer for System z

Specifying type properties for the attribute

The attribute primitive types provide semantics about type information.

Before you begin

You can optionally set properties related to these types by applying a dedicated stereotype to the attribute of the class you describe in UML. These properties better refine the way transformation occurs. These stereotypes are contained within the Data profile.

About this task

To use the Data profile in your UML model, complete the following steps:

Procedure

  1. Open the model file in the model editor. In the Details tab of the editor, under Applied Profiles select Add... button, and the Select Profile window opens.
  2. In the Select Profile window, toggle Deployed Profile.
  3. From the Deployed Profile drop-down menu, select Data Profile.
  4. Click Ok.
  5. The data profile is added to the list of profiles to apply to the model.
  6. You can also use the stereotypes with the UML default primitive types provided by Rational® Software Architect. In this case, the transformation ensures that the stereotype chosen is consistent with the primitive type; that is, it ensures that a string stereotype is not applied on an integer primitive type.

Example

In the Applied Profiles view, select Add, and the Select Profile window opens. Under the Deployed Profile radio button, Data Profile is selected.

The stereotypes (contained within the Data Profile profile) that you can apply to the attributes of a class are as follows:

What to do next

The stereotype contains properties that are language independent. These properties define the characteristics of the field more accurately. To apply such a stereotype, complete the following steps:
  1. Select the class attribute that you want to apply the stereotype to, and go to the stereotype pane in the Property view.
  2. Click the Apply Stereotype button. The Apply Stereotype window opens with the list of possible stereotypes.
You now have access to the stereotype properties that you can set.
The property attribute window is shown with Stereotypes attributes highlighted.

Feedback