I am trying to generate some code using Acceleo. I am constructing my model entity in-memory and I want to generate the code for it.
Now, when Acceleo tries to match my model object to the argument type of my template function, it does not match. The classes are exactly the same, but since the package registry of Acceleo and my in-memory model is different, they do not match and Acceleo says no matching model element could be found for the main template.
Can I correct this issue? Can I force the acceleo package registry to be the in-memory registry? Can I force class matching on a semantic level (instead of just on Java ==
? )
http://mypackage.com/1.0/
. The container of the class used by Acceleo is anEPackageImpl
, while the container of the model class I pass isMyOwnPackageImpl
. This shows that Acceleo is not using the same package registry as my runtime instance. – parasietjefile:///path/to/file.emtl#//mypackage/Object
instead ofhttp://mypackage.com/1.0/#/mypackage/Object
. My module is properly defined as[module generateRCode('http://mypackage.com/1.0/')]
in the MTL file. – parasietje