|
|
|
|
|
|
Re: AST Creation of QVT-O [message #898974 is a reply to message #898899] |
Sun, 29 July 2012 16:18   |
Eclipse User |
|
|
|
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
|
|
|
|
|
Re: AST Creation of QVT-O [message #899026 is a reply to message #899025] |
Mon, 30 July 2012 04:54  |
Eclipse User |
|
|
|
Hi
XMI serialization is an OMG specification conformance point, but
currently OCL and consequently QVT serialization is underspecified and
unrealizable.
Eclipse OCL is moving towards a credible UML-aligned prototype of
perhaps OCL 2.5. Once Eclipse OCL is OMG compliant, we can look toward
QVT compliance.
Regards
Ed Willink
On 30/07/2012 09:40, Sebastian Lehrig wrote:
> Thank you Ed, your "tacky solution" did the job for me. I'm just
> working on a prototype, so accessing the internal APIs is okay for the
> time being. However, I hope the AST to XMI serialization will make it
> to the public APIs since it is a nice way to enable higher-order
> transformations.
>
> Regards
> Sebastian
|
|
|
Powered by
FUDForum. Page generated in 0.31491 seconds