Differences between stereotype properties and value label


What are the differences between stereotype properties and tagged value in UML? I read about them, but I do not know the main differences

+7
source share
3 answers

UML2.x has no marked values. They are still defined in MOF, but are removed for UML. Stereotypes have standard properties. And these properties are displayed as properties of the extended element (and not with curly braces). They can be displayed using French quotes, but can be in any other ways.

Stereotypes are a powerful concept for extending any Metaclass with additional properties, limitations and dependencies. They are not comparable to labeled values ​​other than how they are an extension mechanism.

A practical eclipse tutorial for UML2 stereotypes can be found here . You can view it to get an impression of complexity.

+2
source

The stereotype in UML is represented using French quotes (for example, «User» ), while the marked value is represented using curly braces ( {something} ). Stereotypes can be attached to any UML element, values ​​with whist labels, since UML 2.0 are actually attributes of a stereotype.

So, you are commenting on elements with a stereotype, you can attach a tagged value to the stereotype.

+3
source

A stereotype cannot be used on its own, but it should always be used with one of the metaclasses that it distributes. A stereotype cannot be expanded by another stereotype. And also a stereotype can change the graphic appearance of an extended element of a model using an attached icon.

Tag

represents a special kind of property applicable to one or many types of model elements. and both tags and value are usually encoded as strings, although the UML tool allows the use of other data types for values. For example, {author = "Joe Smith," deadline = March 31, 1997, status = analysis}

Tag values ​​may appear in the attached comment under the name of the stereotype.

Stereotype Computer applied with tag values ​​in note to note

0
source

All Articles