[QVTO] Setting tagged value that is a multivalue [message #530480] |
Thu, 29 April 2010 18:12 |
Eclipse User |
|
|
|
Originally posted by: vanbeerst.gmail.com
Hi,
I was wondering how I could set a taaged value that is a multivalue,
i.e. has upperbound > 1. The 'setValue' method does not allow me to add
a set of values.
Suppose I have a stereotype 'STRTP' with a tagged value 'strings' which
can contain any number of strings, what I want to do is :
var stereotype = ... // get the stereotype from a profile
var clss = .. // get a class that has the stereotype applied
clss.setValue(stereotype, "strings", Set{"first", "second", "third"});
This gives an error message saying the setvalue method is not defined. I
can set as value one single string, but how do set multiple strings?
Dear regards,
Tony.
|
|
|
Powered by
FUDForum. Page generated in 0.01903 seconds