AST Creation of QVT-O [SOLVED] [message #898861] |
Sat, 28 July 2012 11:20 |
Sebastian Lehrig Messages: 16 Registered: July 2012 |
Junior Member |
|
|
Hello,
similar to the approach discussed here ( http://dev.eclipse.org/mhonarc/lists/m2m-dev/msg00265.html ) I want to create an AST of my QVT-O scripts and to store it as an XMI file. I am already able to create the XMI file, however, when trying to open certain elements of the file, I get exceptions of the form "java.net.UnknownHostException: m2m.upb.de".
Have you any idea why this happens? (see the attached project)
Thank you and best regards
Sebastian
Files attached:
-------------
- Directly runnable eclipse project including launch configuration
-> see lsenet.de/QVTo2AST-Test.zip
[Updated on: Mon, 30 July 2012 08:51] Report message to a moderator
|
|
|
|
|
|
|
|
Re: AST Creation of QVT-O [message #898974 is a reply to message #898899] |
Sun, 29 July 2012 20:18 |
Sebastian Lehrig Messages: 16 Registered: July 2012 |
Junior Member |
|
|
Thanks Alan, you were right; several problems came from this issue and I was able to fix them. I created genmodels for the metamodels and generated the model code. I also exported the respective ModelPackages. After this, the runtime-workspace had access to the metamodel URLs (for instance, they now appear in the metamodel explorer).
However, five exceptions remain when validating the XMI file created by my small program (see exceptions list below). I have therefore some new questions in mind:
1) As the static analysis successfully validates my qvto script, I would expect that the created XMI file is valid, too. Why is this not the case? Respectively, how to fix the remaining Exceptions?
2) The way I fixed the first issues is not optimal because it requires to create genmodels, model code, and to start a runtime-instance of eclipse. Is it possible to
a) reference the models relative to the project (e.g., "../../metamodel/UML2RDBMS/SimpleUML.ecore") within the created XMI file instead of using the NS URIs? How to tell this the "ExeXMISerializer" then?
b) fix the issues without starting a new eclipse instance?
Sebastian
The 5 remaining Exceptions:
--------------------------
- The opposite features 'ePackage' of 'Operational Transformation Uml2Rdb' and 'eClassifiers' of 'Operational Transformation Uml2Rdb' do not refer to each other uml2rdbms.qvto.xmi /de.upb.m2m.quality.casestudies/qvto/UML2RDBMS Unknown EMF Problem
- The referred type (UmlPackage -> UmlModelElement [SimpleUML.UmlPackage]) doesn't conform to the source collection element type (Element) uml2rdbms.qvto.xmi /de.upb.m2m.quality.casestudies/qvto/UML2RDBMS Unknown EMF Problem
- The required feature 'eFactoryInstance' of 'Operational Transformation Uml2Rdb' must be set uml2rdbms.qvto.xmi /de.upb.m2m.quality.casestudies/qvto/UML2RDBMS Unknown EMF Problem
- The required feature 'instantiatedClass' of 'Object Exp result' must be set uml2rdbms.qvto.xmi /de.upb.m2m.quality.casestudies/qvto/UML2RDBMS Unknown EMF Problem
- The required feature 'instantiatedClass' of 'Object Exp result' must be set uml2rdbms.qvto.xmi /de.upb.m2m.quality.casestudies/qvto/UML2RDBMS Unknown EMF Problem
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04062 seconds