|Re: [QVTO] QvtoTransformationHelper executeTransformation using generated java objects [message #493842 is a reply to message #493698]
||Wed, 28 October 2009 09:28
Originally posted by: dvorak.radek.gmail.com|
I recommend to use 'org.eclipse.m2m.qvt.oml.TransformationExecutor',
the new transformation API.
Just a hint, beware that your generated java model gets published into
the global package registry only when launched in another Eclipse instance.
Also, your input model must reference correct EClasses, it does not seem
to be in your case.
Your QVTO snippet does involve any mapping yet.
Sure, you can use generated Java model to populate <inobjects>.
We do not require any specific settings for model generation,
a good start would be to validate your ecore model before you generate it.
On Tue, 27 Oct 2009 16:29:52 +0100, Sean Muir <email@example.com>
> I am attempting to run the
> QvtoTransformationHelper.executeTransformation using emf generated java
> classes. The qvto is
> log("rox "+rox.repr());
> I receive the following log when i run the script using the interpreter
> rox mailto:org.eclipse.emf.ecore.impl.DynamicEObjectImpl@76f076f0
> (eClass: mailto:org.eclipse.emf.ecore.impl.EClassImpl@4d934d93 (name:
> Qvt) (instanceClassName: null) (abstract: false, interface: false))
> and i receive the following log when i run it through a junit test.
> rox mailto:qvt.impl.QvtImpl@1a9c1a9c (qvtname: name is set from java)
> The problem is the following mapping is not found. mapping
> qvt::Qvt::toEDI() and i can not seem to create a qvt::QvtImpl mapping
> Is it possible to use generated java to populate the inobjects on
> and if so - are there specific emf generation properties that need to be
> set (I tried a few variations but was not successful)?
Powered by FUDForum
. Page generated in 0.02969 seconds