|Re: [Acceleo] UML 2 Java - Non basic types + Magicdraw [message #636950 is a reply to message #636824]
||Wed, 03 November 2010 14:03
|| Laurent Goubet
Registered: July 2009
This is a multi-part message in MIME format.|
Content-Type: text/plain; charset=UTF-8; format=flowed
Acceleo generates code for what you ask him to. If you feed him an UML
model with three classes "Book", "Media" and "Video" and two data types
"Date" and "String", your generator will either generate three classes
(one for each Class), two classes (oen for each data type), five classes
(one for each model element) ... or even a hundred classes if you decide
to loop and make files for each character in the names and attributes of
It is up to you to define the generation modules that go with what you'd
The modeler itself really has no importance : as long as it suits your
need and can properly export the models to an EMF-readable format, it
can be used with Acceleo. Sebastien Roy has commented on another thread
http://www.eclipse.org/forums/index.php?t=msg&S=c61c639d deb3e6899a41bc7c31056e22&th=199282&goto=636627#msg_6 36627
) on his experience with three modelers.
> Hi all,
> I´m trying to adapt the Uml2Java example to work with reference types
> like java.util.Date.
> First I tried to use Papyrus (0.7) but it seems it doesn´t have a way to
> include a profile with non-basic Java types.
> So I went to Magicdraw 16, integrated with eclipse. I exported my model
> as an EMF XMI and ran my acceleo generator. The problem is the generator
> also generated all classes from the internal profiles of my model.
> I need to generate a real world application with all common Java types
> (or richer UML types, like Date). How can I accomplish that?
> Is there a way to do that using Papyrus? or, if not, using MagicDraw?
Content-Type: text/x-vcard; charset=utf-8;
Powered by FUDForum
. Page generated in 0.01575 seconds