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..
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.
Hello guys, I have tried a lot but as you know the KDM model has many classes. Thus, I haven't already realized how to instantiate a KDM's class programmatically. Could someone give more details, Hugo, I know how to instantiate by using EMF, but I couldn't do for the KDM. I just need a little help