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:


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,
Previous Topic:[QVTO] Covariant return type on overridden mapping?
Next Topic:[QVTO] taggedvalues
Goto Forum:

Current Time: Sat Jun 06 06:03:21 GMT 2020

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

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

Back to the top