Defining stereotypes

Defined stereotypes are displayed in the browser. Stereotypes can be owned by both packages and profiles.

Procedure

  1. In the IBM® Rational® Rhapsody® browser, right-click the profile or package that owns the stereotype and then select Add New > Stereotype. The product creates a stereotype called stereotype_n under the Stereotypes category.
    Browser showing Stereotypes category
  2. Enter a name for the new stereotype.
  3. Double-click the new stereotype to open its Features window.
  4. Select one or more metaclasses to which the stereotype is applicable to.
  5. For profiles, if you are working in a domain with specialized terminology and notation, select the New Term check box to create a metaclass. Since a term is based on an out-of-box metaclass, it functions in the same manner as its base metaclass. For more information about new terms, see Special stereotypes.
  6. Click OK.
  7. Optional: To set the formatting for the stereotype, right-click the new stereotype name in the browser and select Format. Use the Format window to define the visual characteristics for the stereotype.

Feedback