Login | Register
My pages Projects Community openCollabNet

16.6.  Stereotype

Stereotypes are the main extension mechanism of UML, providing a way to derive specializations of the standard metaclasses. Stereotype is a sub-class of GeneralizableElement in the UML metamodel. Stereotypes are supplemented by constraints and tagged values.

New stereotypes are added from the property tab of almost any model element. Properties of existing stereotypes can be reached by selecting the property tab for any model element with that stereotype and using the navigate button ( ) within the property tab.

16.6.1.  Stereotype Details Tabs

The details tabs that are active for stereotypes are as follows.


Standard tab.


See Section 16.6.2, “ Stereotype Property Toolbar and Section 16.6.3, “ Property Fields For Stereotype below.


Standard tab. See Section 13.4, “ Documentation Tab.


Standard tab.


Here you can set stereotypes of stereotypes, not a very usefull thing to do.

Tagged Values

Standard tab. In the UML metamodel, Stereotype has the following standard tagged values defined.

  • derived (from the superclass, ModelElement). Values true, meaning the class is redundant -it can be formally derived from other elements, or false meaning it cannot.


    This indicates any element with this stereotype has the derived tag set accordingly.


Tagged values for a stereotype are rather different to those for elements in the UML core architecture, in that they apply to all model elements to which the stereotype is applied, not just the stereotype itself.

16.6.2.  Stereotype Property Toolbar

Go up

Navigate up through the package structure of the model.

Add stereotype

This creates a new stereotype (see Section 16.6, “ Stereotype) within the model (which appears on no diagram), navigating immediately to the properties tab for that stereotype.

New Tag Definition

This creates a new tag definition (see Section 16.7, “ Tag Definition) within the model (which appears on no diagram), navigating immediately to the properties tab for that tagdefinition.


This deletes the stereotype from the model.

16.6.3.  Property Fields For Stereotype


Text box. The name of the stereotype. There is no convention for naming stereotypes, beyond starting them with a lower case letter. Even the standard UML stereotypes vary between all lower case (e.g. metamodel), bumpy caps (e.g. systemModel) and space separated (e.g. object model).


ArgoUML does not enforce any naming convention for stereotypes

Base Class

Drop down selector. Any stereotype must be derived from one of the metaclasses in the UML metamodel or the model element classes that derive from them. The stereotype will then be available to model elements that derive from that same metaclass or that model element.


Drop down selector with navigation button. Records the namespace for the stereotype. This is the package hierarchy.


Check box, with entries Abstract, Leaf and Root.

  • Abstract is used to declare that model elements that use this stereotype cannot be instantiated, but must always be specialized.

  • Leaf indicates that model elements that use this stereotype can have no further sub-types, while Root indicates it is a top level model element.


Remember that these modifiers apply to the model elements using the stereotype, not just the stereotype.


ArgoUML neither imposes, nor checks that model elements using a stereotype adopt the stereotype's modifiers.


Radio box, with entries public, private, protected, and package.

Records the visibility for the stereotype.


Text area. Lists any stereotype that generalizes this stereotype.


Text area. Lists any specialized stereotype (i.e. for which this stereotype is a generalization.

Tag Definitions

Text area. Lists any tag definitions that are defined for this stereotype.

Extended Elements

Text area. Lists all modelelements that are stereotyped by this stereotype.