Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Regla que cree y retorne coleccion de objetos
Regla que cree y retorne coleccion de objetos [message #866073] Mon, 30 April 2012 18:21
Flower Missing name is currently offline Flower Missing nameFriend
Messages: 8
Registered: October 2011
Junior Member
Hi, I need to make a transformation in which each element of a collection, I return another collection of objects transformed to assign the output. Eh not found an optimal way on any side.
Sampling of the transformation so that they understand exactly what I need most:

lazy rule {createDAO_impl

from
e: UML2! Class
to

dimpl: JAVA! JavaClass (
name <- e.name + '_DaoImpl'
Implemented <- idao
)

idao: JAVA! Interface (
name <- 'I' + e.name + '_DAO'
IsAbstract <- true,

methods <- e.getUsages () -> collect (a | thisModule.getMethodsDAO (a))
)

In methods <- need to assign a collection of objects created by methods of each object to the collection "e.getUsages ()" .. Usually creates a single object, I am needing to define more than one .. So, I need the function "thisModule.getMethodsDAO (a)" I return a collection of methos created, as it should be that function? ..

If anyone can help me I thank you tremendously!
Greetings, Florence.













Previous Topic:[ATL] Feature ... is not changeable
Next Topic:Move functionality from QVTo to a library.
Goto Forum:
  


Current Time: Tue Dec 03 05:49:11 GMT 2024

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

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

Back to the top