Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Applying stereotype on another stereotype?
Applying stereotype on another stereotype? [message #677601] Wed, 08 June 2011 18:32 Go to next message
Mehrdad Saadatmand is currently offline Mehrdad Saadatmand
Messages: 6
Registered: March 2011
Junior Member
Hi,
I wonder whether it is somehow possible to apply a stereotype on another stereotype and particularly its tagged values? I have a model in which some of the elements are stereotyped with using a profile. What I need now is actually to mark some of the properties of elements including tagged values of applied stereotypes to distinguish them from other values (non-marked) (during transformation). Therefore, I was thinking to for example, apply a stereotype on a tagged value of another stereotype on a model element to mark it.

Maybe there is another solution than using stereotypes to achieve the same goal? Any help and ideas on this are more than welcome.

Thanks,
Mehrdad
Re: Applying stereotype on another stereotype? [message #677765 is a reply to message #677601] Thu, 09 June 2011 06:41 Go to previous messageGo to next message
Thomas Neustupny is currently offline Thomas Neustupny
Messages: 75
Registered: October 2009
Member
I think this is not possible. Tagged values are not properties of the element the stereotype is applied to, but they are values associated with the property of the stereotype. You cannot mark that property, because it's part of the (unmodifiable) profile.

Have a look in the XMI serialization of your model: the tagged value becomes an XML attribute of the stereotype application node.

I have no other idea/solution for your problem. Maybe you could follow a strict naming convention to distinguish which tagged value comes from which stereotype?

Finally, I think all tagged values must come from stereotype properties since UML 2.x (was different in UML 1.x).
(no subject) [message #681715 is a reply to message #677601] Thu, 09 June 2011 13:09 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn Hussey
Messages: 1618
Registered: July 2009
Senior Member
Stereotypes can only be applied to instances of types from the
referenced metamodel, which is currently only UML and would hence
exclude tagged values...

Kenn

On 11-06-08 6:32 PM, Mehrdad Saadatmand wrote:
> Hi,
> I wonder whether it is somehow possible to apply a stereotype on another
> stereotype and particularly its tagged values? I have a model in which
> some of the elements are stereotyped with using a profile. What I need
> now is actually to mark some of the properties of elements including
> tagged values of applied stereotypes to distinguish them from other
> values (non-marked) (during transformation). Therefore, I was thinking
> to for example, apply a stereotype on a tagged value of another
> stereotype on a model element to mark it.
>
> Maybe there is another solution than using stereotypes to achieve the
> same goal? Any help and ideas on this are more than welcome.
>
> Thanks,
> Mehrdad
Re: (no subject) [message #684192 is a reply to message #681715] Wed, 15 June 2011 03:58 Go to previous message
Mehrdad Saadatmand is currently offline Mehrdad Saadatmand
Messages: 6
Registered: March 2011
Junior Member
Thanks for the tips.

Mehrdad
Previous Topic:Can UML be agile if the code is not uploaded into the model ?
Next Topic:Problems with static profiles in fragment bundle
Goto Forum:
  


Current Time: Thu Jul 24 21:49:21 EDT 2014

Powered by FUDForum. Page generated in 0.13009 seconds