Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » collection of objects in the from of a rule
collection of objects in the from of a rule [message #57988] Thu, 16 August 2007 14:28 Go to next message
Eclipse UserFriend
Originally posted by:

I have a question concern the "from" clause of a rule.

is it possible to get back a collection of objects in the "from" of a
"rule" ?

like for example
rule a{
from b : UML!Model,
c : Set(UML!ModelElement)

-- c must be a collection of ownedElement of b( c == b.ownedElement)

Re: collection of objects in the from of a rule [message #58041 is a reply to message #57988] Thu, 16 August 2007 15:05 Go to previous message
Eclipse UserFriend
Originally posted by:

This is a multi-part message in MIME format.
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

Hi, Youssef

When you post about ATL, please put [ATL] at the beginning of the
subject. Thanks.

In fact, from your case description, I can't figure out a need of such a
collection. Indeed, the "from" part is used to filter the input model
elements in order to create the corresponding model fragments. There, c
does not bring any information about the matching. So it is not suitable
for a "from" clause.

If your need is to access this collection for the creation of your
element, simply use OCL expressions.



Youssef SROUR a
Previous Topic:[ATL]Problem with transformation of a model that contains XMI href attribute
Next Topic:[ATL] Is it possible to add elements to an existing model ?
Goto Forum:

Current Time: Tue Jan 19 21:41:31 GMT 2021

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

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

Back to the top