The attribute primitive types provide semantics about type
information.
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.
To use the Data profile in your UML model, complete the following
steps:
- 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.
- In the Select Profile window, toggle
Deployed Profile.
- From the Deployed Profile drop-down
menu, select Data Profile.
- Click Ok.
- The data profile is added to the list of profiles to apply
to the model.
- 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.
The stereotypes (contained within
the Data Profile profile) that you can apply to the attributes
of a class are as follows:
- Binary
- Boolean
- Currency
- Date
- Email
- Float
- Integer
- String
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:
- Select the class attribute that you want to apply the stereotype
to, and go to the stereotype pane in the Property view.
- 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.