[umbrello] [Bug 73847] support for UML tagged values
Oliver Kellogg
bugzilla_noreply at kde.org
Mon Sep 21 07:24:35 BST 2020
https://bugs.kde.org/show_bug.cgi?id=73847
--- Comment #21 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
(In reply to Oliver Kellogg from comment #20)
> [...]
> 2) Stereotype application
> <UML:Class [...] name="MyClass">
> <UML:StereoApp [...] type="theStereoID">
> <foo value="fidget widget"/>
> <bar value="12345.67"/>
> </UML:StereoApp>
> </UML:Class>
Correction:
There is no need for inventing a new tag here ("StereoApp").
Instead we can use the UML 1.3 TaggedValue extended by an attribute
stereotype="xmiid_of_the_stereotype_def"
where "xmiid_of_the_stereotype_def" is the xmi.id of the <UML:Stereotype>
definition.
Here the corrected stereotype application example:
<UML:Class [...] name="MyClass">
<UML:ModelElement.taggedValues>
<UML:TaggedValue xmi.id="X.30" stereotype="theStereoID" tag="foo"
value="fidget widget"/>
<UML:TaggedValue xmi.id="X.31" stereotype="theStereoID" tag="bar"
value="12345.67"/>
</UML:ModelElement.taggedValues>
</UML:Class>
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list