Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] Setting tagged value that is a multivalue
[QVTO] Setting tagged value that is a multivalue [message #530480] Thu, 29 April 2010 18:12
Eclipse UserFriend
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.
Previous Topic:[QVTO] Covariant return type on overridden mapping?
Next Topic:[QVTO] taggedvalues
Goto Forum:
  


Current Time: Sat Aug 24 18:38:35 GMT 2019

Powered by FUDForum. Page generated in 0.01602 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top