Tagged Values in Profiles
Stereotypes within a profiled element or connector can define one or more associated Tagged Values. When you drag a profiled element or connector from the Diagram Toolbox onto a diagram, any associated Tagged Values are automatically added to the new element or connector. Tagged Values in profiled objects are an excellent way to further extend the versatility of your UML modeling.
As an example, the UML Profile for XSD (XML Schema) provides the XSDComplexType stereotype to extend a Class; this stereotype has the Tagged Values:
When you create a Complex Type element, the Tagged Values are added and are visible in the tags compartment of the element (including those that have no value set).
When you select the element, the Tagged Values window displays all the associated tags.
|•||The values of tags imported in a Profile override the values of equivalent tags in the UML Types dialog; if the initial value of the tag from the Profile is not set, the value of the tag shown in the element will be blank, even if there are default values for the tag in the UML Types dialog|
|•||Tags that have default profile values are automatically set|
|•||Where Tagged Values in the profiled element have a values section (for example, values="element | attribute | both" default="both") you can select the non-default values from a drop-down list|
|•||Where no value exists, you can add a value as free text; you would do this for a profile tag that has no initial value, to use a default value from the UML Types dialog|
The material ("material" includes all pages, documents and on-line graphics) on this web site is protected by copyright law. (C) 1998-2014 Sparx Systems Pty Ltd.