Page History
content-layer | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||
Content column | ||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||
block | ||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||
A stereotype defines how an existing metaclass may be extended. It enables the use of a platform, a domain specific terminology, or a notation in place of, or in addition with, the ones used for the extended metaclass. Similar to a class, a stereotype may have properties which may be referred to as tag definitions. When a stereotype is applied to a model element, the values of the properties may be referred to as tagged values. A stereotype can extend any model element from the reference metamodel (any UML model element). For example in UML, States, Transitions, Activities, Use cases, Components, Attributes, Dependencies, etc. can all be extended with the stereotypes. The stereotypes are created as separate model elements and can be drawn in almost all diagrams. You can specify stereotype properties in the stereotype Specification window. In the same window, you can find the description of each property. Descriptions are presented in the description area of the Specification window. Stereotype notation in diagrams use the guillemets instead of symbols «» (see the following figure). However, when editing elements in a diagram, you can still enter the stereotype names between the «» symbols. Creating a stereotypeTo create a stereotype, do one of the following
Creating stereotype with an imageTo create a stereotype with an image
Applying a stereotype
Changing the stereotype’s metaclassTo change the stereotype’s metaclass
Displaying the stereotype icon instead of the shape on the diagram paneTo display the stereotype icon instead of the shape on the diagram pane
View assigned image propertiesTo view assigned image properties
Changing the order of the stereotypesIf a symbol has several stereotypes applied, you can change the order of stereotypes for visual purposes. To change the order of the stereotypes
Saving the stereotype information in XMIYou can choose the location of the applied stereotypes' information in the XMI file. Information can be saved at the end of the file or inside the element's information. By default, stereotype information is stored at the end of the XMI file.
Changing the stereotype display modeYou can change the stereotype name and its icon visibility on an element's shape.
* To display the image of a stereotype instead of the element shape, all element compartments should be suppressed. |
Content block | ||
---|---|---|
| ||
Related pages |