Author Topic: Stereotype Tagged Values as collection  (Read 3193 times)

tmtm

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Stereotype Tagged Values as collection
« on: January 24, 2008, 01:32:05 pm »
I'm trying to define a UML profile. Some of the stereotypes have tagged values that I want to define as a list of a certain data type. For example, I might want a tagged value to contain a list of string values.

I've tried setting the Attribute Multiplicity and the "Attribute is a Collection" options. But neither of these seem to do anything when I export the profile.

Can anyone tell me how to do this?

Thank you.

Matt

  • EA User
  • **
  • Posts: 96
  • Karma: +0/-0
    • View Profile
    • Solutions Reality
Re: Stereotype Tagged Values as collection
« Reply #1 on: January 24, 2008, 04:36:47 pm »
In the profile that we are building for Time Architect 2.0 - we have used an Enum in the profile to achieve what I think you are trying to do.
  • Add an enumeration to your Profile diagram and call it something meaningful.
  • Add attributes that represent the values that you want to use.
  • Then in your tagged value, define the type as your enumeration.
  • Set an initial value to one of the values in your enumeration

You will then have your list of string values.

hope that helps,

Matt

tmtm

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Stereotype Tagged Values as collection
« Reply #2 on: January 25, 2008, 08:48:09 am »
Sorry I wasn't quite clear in my initial question. I need to define a tagged value in such a way that when the modeler applies that parent stereotype to a model element, he is able to add as many items into this tagged value as he wants to.

So for example, I have a stereotype called "Pattern" that has a tagged value of "RegexExpressions". I want the modeler to be able to add any number of regular expressions into this "RegexExpressions" tagged value.

I've always been able to do this in RSM. Is this possible to do in EA?

Thank you.


«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Stereotype Tagged Values as collection
« Reply #3 on: January 25, 2008, 08:52:06 am »
You cannot do this - at least not at the profile level - in EA as yet. There are several ways to work around this, but I'll leave you to find one with trade offs you can live with.

I have brought this to the attention of Sparx. No commitment as yet.
No, you can't have it!