Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Changing KDM programatically
Changing KDM programatically [message #1059078] Thu, 16 May 2013 10:44 Go to next message
Rafael Durelli is currently offline Rafael Durelli
Messages: 35
Registered: September 2012
Member
Hello everyone I would like to know if it is possible to change the KDM programmatically. I mean, I have an instance of the KDM, which correspond a project in Java, then I would like to for instance "remove" a StorableUnit (a variable instance) to another ClassUnit, change the name of the ClassUnit, change the it from "public" to "private", and even create a MethodUnit programatically. Is that possible, if so, what should I use..

THanks in advance.
Re: Changing KDM programatically [message #1059089 is a reply to message #1059078] Thu, 16 May 2013 11:23 Go to previous message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 470
Registered: July 2009
Senior Member
Hello,

The Ecore implementation of KDM provided by MoDisco comes with the corresponding EMF-generated API (also in the same plugin).
Using this API, you will be able to handle (and modify) your KDM model programmatically while loaded in memory.

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Previous Topic:A simpler ecore java model?
Next Topic:From .jar to any model
Goto Forum:
  


Current Time: Tue May 28 18:45:17 EDT 2013

Powered by FUDForum. Page generated in 0.01907 seconds