Add Stereotypes and Metaclasses

How to:

To add metaclasses and stereotypes to a Profile, for as many stereotypes and metaclasses as you require, follow the steps below:

Step

Description

See Also

1

Open the child diagram of the Profile Package

 

2

Drag the Metaclass element from the Profile page of the Toolbox onto the diagram

The Create New Metaclass dialog displays, in which you can tick multiple metaclasses for dropping onto the diagram

 

3

Scroll down the Element list and select the checkbox for Class

 

4

Click on the OK button

The Class Properties dialog displays

 

5

In the Name field type a name for the element

Click on the OK button

 

6

Drag a Stereotype element from the Toolbox onto the diagram

If the Properties dialog does not display, double-click on the element on the diagram

 

7

In the Name field, type a name for the stereotype

 

8

Click on the OK button

 

9

Click on the Extension relationship in the Toolbox and drag the connection from the stereotype element to the metaclass element

 

10

Your diagram should now resemble the one below:

Predefined

 

Notes:

  • If you want to have a stereotype extending more than one metaclass, do not create two stereotype Classes with the same name
     
    You cannot have two stereotypes with the same name in the same profile, one is discarded when you save the profile; therefore, create one stereotype Class with an Extension connector to each of several Metaclass elements, as shown below.
     
    needline
     
    You can now add stereotype Tags, Constraints, Enumerations, and/or Shape Scripts to your Profile, and define the default appearance of the elements or connectors as required

Learn More: