I must write a code generator for C#, Java and C++. So I thought I can do this with Xpand. I worked with this a year ago. But I'm not sure which way is the easiest to access my data with xpand.
Here is my situation:
I have a bunch of java interfaces and implementations of the inferfaces which hold the data. In the beginning the application lodas the data and create instances from the data classes. Then I have all my data which I need for the code generation in this data instances.
First of all I thought I have to use EMF and annotate the inferfaces to generate EMF classes which can persist the model to xmi. Then make a workflow file and load the xmi to use this with xpand. But I'm not sure how I connect the generated EMF classes with my own implementations of the intefaces, so EMF can get the data to persist it.
I found also the JavaMetaModel in the xpand docu, but don't find out how I must configure the workflow to get this to work.
Any suggestions for the problem? I really need help on this problem.
Hmmm, in the xpand template are errors like "couldn't find model::DataA". Code completion also don't work
But all work fine with the erorrs ..
Is this always a problem with the java metamodel or did I make a mistake?