Stereotype (dictionary item)
For automation interface information about a Stereotype, see Stereotype (automation interface).
Stereotypes provide a way of extending the properties and linking capabilities of items in a Model. Through a Stereotype you can apply a set of Tag Definitions to an item. For information about extensibility through stereotypes and tag definitions, click here Overview of extensibility through profiles, stereotypes, tag definitions and scripts.
You can create a Stereotype through the context menu of a Package: right-click the Package, and select New > UML > Profiles > Stereotype. In addition, you can create Stereotypes on a Profile Diagram.
When shown on a Profile Diagram, a Stereotype's notation is as follows:
For information about the View Options available for this symbol, see Stereotype view options - profile diagram.
If you apply a Stereotype to an item that appears on a diagram, you can display the Stereotype and its Tag Definitions on the diagram. For more information about displaying Stereotypes on a diagram, click here Overview of displaying stereotype and tag definition information on diagrams.
Stereotypes can inherit properties, valid model item types, Tag Definitions and Scripts from other Stereotypes. When a sub Stereotype inherits Tag Definitions and Scripts through a Generalization, you can redefine those Tag Definitions and Scripts independently of the super Stereotype's Tag Definitions and Scripts. To redefine a Tag Definition or Script: right-click the Tag Definition or Script, and then click Redefine.
In the Modeler panes, a short-cut symbol on the Stereotype's icon indicates that the item is a stub.
The following sections provide information about how a Stereotype is used in the model. For more information about a property, item, model part or diagram, click it.
Properties
In addition to the standard properties, a Stereotype has these properties:
Applicable Diagram Types (Applicable Type association of associated Script object through the automation interface)
Browsable (Browseable through the automation interface)
Command Context (attribute of associated Script object through the automation interface)
Command Icon (Icon and Icon Available attributes of associated Script object through the automation interface)
Diagram Toolbar Command Script (Script, Script Text or Text attribute of associated Script object through the automation interface)
Diagram Toolbar Command (Command Id attribute of associated Script object through the automation interface)
Disable Item Specific Property Pages (Hide Bespoke Property Pages through automation interface)
Double Click Script (Script, Script Text or Text attribute of associated Script object through the automation interface)
Double Click (Owned Double Click Script association to owned Script object)
Group (Command Group through the automation interface)
Hide Custom Meta Type Menus (Hide Meta Type Menus through the automation interface)
Menu Command Script (Script, Script Text or Text attribute of associated Script object through the automation interface)
Menu Text (attribute of associated Script object through the automation interface)
On Delete Script (Script, Script Text or Text attribute of associated Script object through the automation interface)
On Delete (Owned On Delete Script association to owned Script object)
On Drop Script (Script, Script Text or Text attribute of associated Script object through the automation interface)
On Drop (Owned On Drop Script association to owned Script object)
On Model Close Script (Script, Script Text or Text attribute of associated Script object through the automation interface)
On Model Close (Owned On Model Close Script association to owned Script object)
On Model Open Script (Script, Script Text or Text attribute of associated Script object through the automation interface)
On Model Open (Owned On Model Open Script association to owned Script object)
Separator Before (attribute of associated Script object through the automation interface)
Status Bar Text (attribute of associated Script object through the automation interface)
ToolTip Text (attribute of associated Script object through the automation interface)
The Style properties are as follows:
Owned by
Owns
Generalization - The Generalization is owned jointly by the Stereotypes it links. The access permissions you have to a Generalization are determined by the access permissions you have to the sub Stereotype.
Defined in these parts of the model
None.
Shown on these diagrams
A Stereotype can appear on a diagram when it has been applied to an item that appears on a diagram.
Profile Diagram (shows Stereotype as an item)
For information about how the View Options affect the presentation of Stereotypes, see the following topics:
Can be linked to these dictionary items
A Stereotype can be linked to the following items.
Tag Definition - the linked Tag Definitions specify the extended properties that are applied by the Stereotype.
A Stereotype is unusual in that it can be linked to Model Item Types, which are not dictionary items as such. Linking a Stereotype to a Model Item Type specifies that the Stereotype can be applied to items of that type.
A Stereotype can be linked to most item and diagram types in the model for the purpose of applying extended properties.