Jump to Menu

What is UML Stereotype? How to Define it?

Stereotypes is extensibility mechanisms in UML which allows designers to extend the vocabulary of UML in order to create new model elements. By applying appropriate stereotypes in your model you can make the specification model comprehensible.

Compatible edition(s): Enterprise, Professional, Standard, Modeler

  • February 02, 2016
  • Views: 98,575
  • PDF

Stereotyped shapes

A stereotyped model type can appear in a project many times. For example, when modeling an online shopping system with use case diagram you might have multiple actors who are <<administrator>>. Same for class model, you might have multiple <<Enum>> or <<Model>> classes. When a stereotyped model type is being used so frequently that they become primitive building blocks in a model, allowing to create it directly saves time in redefining it again and again. This article demonstrate how to configure the diagram toolbar to let you create a stereotyped model element easily.

Configuring the diagram toolbar

  1. Right-click on the diagram toolbar of the opening diagram and select Configure Buttons from the popup menu.
    Select Configure button
  2. In the Configure Buttons window, expand the tree node of the interested model element type.
    Expand type node
  3. Click > to add the stereotype(s) into selection.
    Select stereotype
  4. Now, you can create the selected type(s) of class via the diagram toolbar. To do this, press on the element type button in the diagram toolbar and select the chosen element type from the popup menu.
    Select stereotyped element
  5. Click on the diagram to create such an element.
    Element created

Auxiliary options

There are auxiliary options for rearranging items in the diagram toolbar such that selection can be made easier. We will go through two of them.

Show Name displays buttons' names when on. Turning it off can reduce spaces consumed by the buttons. Show name

Expand Group expands all collapsed groups such that all stereotyped model types are visible and ready for direct selection. Expand Group



Turn every software project into a successful one.

We use cookies to offer you a better experience. By visiting our website, you agree to the use of cookies as described in our Cookie Policy.

OK