Book a Demo

Author Topic: Profiles Multiple Values for taggedValue  (Read 5899 times)

jorit

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Profiles Multiple Values for taggedValue
« on: October 17, 2007, 07:37:07 pm »
Hi All,

EA 7.0 build 816

I've created a profile, (metaclass and a few stereotypes). One of the attributes of one the stereotypes (which will be a tagged value) in the eventually created element is a taggedValue, using the taggedValue-connector. (did I express this right ???)
This works fine, when creating an element with the created stereotype, and setting a value for the tagged parameter, I can select an element from a list.

But what do I need to do if I want to be able to specify Kindest multiple values (select multiple elements) for this tag ? Is this even possible ? And to make matters worse, it needs to be ordered.

I fiddled around with the multiplicity of the taggedValue connector, but that didn't really work.
Fiddled with Collection Classes but didn't get that to work either :-(

Or would there be another approach ?

Help would be greatly appreciated !

Regards,
Evert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Profiles Multiple Values for taggedValue
« Reply #1 on: October 17, 2007, 08:10:10 pm »
Hi there,


There's nothing stopping you from creating multiple taggedValue connectors with different names from one stereotype to another.

Another way is to create the tags as Attributes in the Stereotype and not use the taggedValue connector. If you need a large number of same-type tags, this might be preferable from the visual perspective.

The ordering of tags, though, cannot be enforced AFAIK.

However, since you say the tags must be ordered I'm assuming you'll be wanting to generate code out of this (since ordering of attributes within a class carries no meaning in UML).
And in your code generation template, you are free to do things in any order you like.

Hope this helps,


/Uffe
My theories are always correct, just apply them to the right reality.