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

e: UML2! Class

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

idao: JAVA! Interface (
name <- 'I' + + '_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: Thu Feb 29 13:21:15 GMT 2024

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

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

Back to the top