Assigning an Element Stereotype
Go Up to Editing Diagrams
Different stereotypes can be assigned to classes, links, packages, link ends, and other UML elements. Usually, a stereotyped element is rendered by placing the stereotype name above the element's name and enclosing the stereotype name in guillemets, as in
You can assign a stereotype by using the in-place editor (in the Diagram view) or by using the Stereotype property in the Object Inspector (in the Diagram and Model views).
To assign a stereotype by using the in-place editor
- In the Diagram view, double-click the stereotype name to activate the in-place editor.
- Enter the new name.
- Press ENTER.
To assign a stereotype by using the Object Inspector
- In the Diagram view or Model view, select a UML element (for example a class), which stereotype you want to change.
- In the Object Inspector, select the Stereotype property.
- In the Stereotype field, enter the desired stereotype name or click the drop-down arrow to choose the desired stereotype name from the predefined stereotypes.
- Result: In the Diagram view, the specified stereotype name appears in guillemets above the selected element's name (at the top of the class node).