Setting Permissible Contents for Stereotypes
If you want to enable a stereotype as content for another stereotype, then assign it to the other stereotype as owner.
Context
When you assign a stereotype as Owner or Assigned Element of another stereotype, you specify which stereotype contents another stereotype can have.
The profile sections in the Relationships view contain the stereotypes set in the Stereotype view. You can assign the stereotypes which are permissible as contents to these stereotypes from a defined set using UML 2 specification. If the assigned stereotype is a directed relationship, you then need to assign it the target node/s.
To be able to actually create permissible elements in the model according to configuration, the corresponding create templates which are accessed in the menu need to be available.
Please note that elements which can be assigned to the menu are differentiated from owning elements. This means that e.g. a class needs to be permissible as a package's contents so that it can be added to both the menu in the class diagram and model. The package itself does not have a menu, but a class is stored in a package.
How to proceed
-
Jump to the
Relationships view.
-
Select a stereotype in the profile tree.
-
If you want to assign an owner (and, in doing so, set the stereotype selected in the profile tree as an assigned element), select the Owner entry in the Constraints for Relationship Role drop-down list in the assignment compartment.
-
If you want to assign a profile element (and, in doing so, set the stereotype selected in the profile tree as the owner), select the Assigned Elements entry in the Constraints for Relationship Role drop-down list in the assignment compartment.
The current assignments are displayed in the assignment compartment.
-
Select a profile element which is not allowed in the assignment compartment (yet).
-
Select Edit>Assign.
The profile element is listed in the allowed elements' assignment compartment.