[Uml-devel] code generation application

tomas.walch at se.transport.bombardier.com tomas.walch at se.transport.bombardier.com
Tue Oct 22 00:28:01 UTC 2002


>Are there any specifications to descirbe these parts of the design ?
>Which would make basically another tool, using an XMI file, being able
>to export code in a few programming languages, where one can twist the
>output parameters. I feel that there will be no one-size-fits-all in
>code exporting from XMI, and that this is a big chunk. A long time ago,
>we were talking about dia2code, which can read an XMI file, then output
>code. Now we have XMI. Can we use it ?

I don't know anything about dia2code but i think the way to go is to absolutely
to create a separate (command line) application that reads XMI files and creates
code files. It should not be a (linked) part of Umbrello itself, that'd be
against the basic Unix principle of having small application that do only one
thing. Another very good thing about this approach is that if the code files are
generated from the XMI files and not from the model within Umbrello this would
make the well documented XMI format the interface between the different parts of
the system, making it more modular and parallell development easier. It requires
purification of the XMI but I've kind of sensed that there's consensus
concerning that move anyway.

If your model is really really complete it would also be possible to include the
use of a command line 'xmi2code' in Makefiles...

/Tomas Walch






More information about the umbrello-devel mailing list