Programmtically load genmymodel XMI export file with Epsilon [message #1858315] |
Tue, 28 March 2023 15:41  |
Eclipse User |
|
|
|
I am trying to load an XMI export from genmymodel using Epsilon and specifically with a model constructed from org.eclipse.epsilon.emc.uml.UmlModel(), then calling model.load using the below props:
properties.put(EmfModel.PROPERTY_MODEL_URI, s"${modelURI.toString}")
properties.put(
EmfModel.PROPERTY_METAMODEL_URI,
"http://www.eclipse.org/uml2/5.0.0/UML,http://www.eclipse.org/emf/2002/Ecore"
)
I can successfully construct one but I believe it is not loading without error. I am also trying to get access to and ECore extension I added in genmymodel which I see inside the XMI file as an xmi:Extension extender="http://www.eclipse.org/emf/2002/Ecore" but when I try to access the attr.getEAnnotations() method, I get back nothing though I see it in the xmi file for the attribute.
I would like to get full access to the annotations from genmymodel as this is how I wish to get additional information into the model. Any suggestions are greatly appreciated.
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06820 seconds