Rational Developer for System z, Version 7.6

Automating stereotypes application on class properties

You can use a UML2 pattern to apply stereotypes on class properties automatically.
To automate stereotypes application on class properties, complete the following steps:
  1. When you are identifying data objects and services, use the Type to Stereotype pattern. From Pattern Explorer view drag Type to Stereotype pattern to your current diagram. See Figure 1.
    Figure 1. Dragging the Type to Stereotype pattern
    The data objects are Order and Customer. The pattern instance is Type to Stereotype, and the service specification is Order Service.
  2. This pattern takes a package as argument. Choose any package from your model to apply stereotypes to all subpackages and subclasses. You can also drag your model root from project explorer to the pattern.
  3. Apply stereotypes in accordance with primitive types. Stereotypes icon appears for each class property. See Figure 2.
    Figure 2. Applying stereotypes
    Information is added to the previous figure to show Stereotype as Integer, Profile as Data Profile, and Required as False.
  4. If you want to remove stereotypes applied by this pattern and only those, click Unapply Stereotypes.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)