Loading Model created using Eclipse-Sirius [message #1849571] |
Tue, 25 January 2022 23:33  |
Bruno Curzi-Laliberté Messages: 14 Registered: January 2022 |
Junior Member |
|
|
Using ObeoDesigner, I defined an ECore MetaModel, generated the code and ran the project.
I didn't define a graphical interface using Sirius yet, but using a tree-like view, I can define Models instanciating this MetaModel.
Now I want to load the model using Java. My model is just an XML format inside a file of extension named after my ECore project. For example I named the original MetaModel project "epidemiologyJan11" so my file inside the Sirius editor is "MyEpidemiologyJan11.epidemiologyJan11".
Some of the original generated code contains Factories, but none contain functionalities for loading XML, I expected to be able to do something like: Epidemic epidemic = EpidemicFactory.createFromXML("MyEpidemiologyJan11.epidemiologyJan11") in Java.
Is it possible to load my model in terms of metamodel implementation?
If you're not sure exactly what I mean, but know of other ways to interact with a Sirius model, please le me know through comments, thanks.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01590 seconds