Re: transforming old models

Martin Matula <[email protected]> Fri, 24 Sep 2004 10:50:00 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
Hi Ramon,
yes, MDR is ideal for this kind of task. Look at the code of UML2MOF 
tool for hints on how to do that. It is in the opensource CVS repository 
under mdr/extras/uml2mof.
In Main class of this tool you can see how to load and instantiate UML 
metamodel into MDR and how to load and save XMI files. In Transformer 
class you can see how you can use the API to navigate models.
Regards,
Martin

VEGA-TARANTINO Ramon wrote:

> Hi,
>
> I have an old Entity-Relationship model that I would like to transform 
> into a UML model. For doing this, my old modeling tool is able to 
> export the model into a text file.
>
> My idea is to parse this text file in order to instanciate java 
> objects corresponding to each entity and relationship found and then, 
> write a xmi file corresponding to the model.
>
> Is netbeans MDR able to do this? if yes which API should I use in 
> order to instanciate the right objects and then wirte my xmi file?
>
> if this is not the right place to ask this, where can i found this 
> kind of information?
> Thanks for helping
>
> Ramón
>