Book a Demo

Author Topic: Stereotypes and TaggedValues  (Read 6214 times)

stealth02r1

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Stereotypes and TaggedValues
« on: March 22, 2005, 03:55:14 pm »
I am evaluating EA for use by my company and I am developing a UML Profile that consists of a few class and attribute based stereotypes. My stereotypes add a number of tagged values. It appears that the only way to apply these stereotype based TaggedValues to a new class or attribute is to drag and drop the stereotype onto a class. And in the case of an attribute you must drag n drop the attribute based stereotype onto a class to create a brand new attribute. You can't apply a stereotype to an existing attribute and get the TaggedValues. Why  don't stereotyped TaggedValues get applied to an element when you select a stereotype from the stereotype pulldown? Am I overlooking something?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Stereotypes and TaggedValues
« Reply #1 on: March 22, 2005, 04:31:08 pm »
What you need to do is right-click on your stereotype in the Resource Browser and select "Synch Tagged Values and Constraints".

The reason we don't apply them immediately upon setting the value of the stereotype control is that you might pick the wrong one from the list and find yourself with a lot of extra tagged values and constraints that need to be deleted from the element.

And the reason we don't automatically delete the tagged values and constraints when you remove or change a stereotype is that we have no way of knowing if a given tag was added by you or by the stereotype.

I hope this makes sense.
The Sparx Team
[email protected]

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: Stereotypes and TaggedValues
« Reply #2 on: March 23, 2005, 04:00:12 pm »

could someone explain tagged values - what are they for? :) saw, that could be added
registertm everything to SparX

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Stereotypes and TaggedValues
« Reply #3 on: March 23, 2005, 05:19:02 pm »
Try this... Double-click on a class element to bring up its properties dialog. You'll see various fields - Name, Stereotype, Author, Scope, etc. If you feel there is another property that class elements should have that isn't included on EA's properties dialogs then you can add tagged values.
The Sparx Team
[email protected]

stealth02r1

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Stereotypes and TaggedValues
« Reply #4 on: March 30, 2005, 04:11:04 pm »
Thanks! That worked great. New question: Can a Stereotype be used to assign links? Let me illustrate. I am trying to create a class level stereotype that generalizes another class. So when I assign this particular stereotype to a new class, I want that new class to have the same generalization. Put another way, I want stereotype Foo to be able to add an "is a" relationship to MyNewClass. So that MyNewClass "is a" SomeHigherLevelClass. Is there a way to do this? I haven't been able to figure it out. It seems like Links defined in my stereotype are completely ignored when the stereotype is applied. Thanks!


thomaskilian

  • Guest