|Referencing ecore primitive types in Xtend [message #546006]
||Fri, 09 July 2010 16:59
| Edwin Park
Registered: July 2009
I'm trying to do some M2M transformation of an Xtext metamodel to Ecore using Xtend. But when I try to e.g. set the EType of an EAttribute to EDate:
create EAttribute eAttribute(Property property):
It fails with "Couldn't find operation 'setEType(xpand2::Type)' for ecore::EAttribute". It turns out whenever I try referencing Ecore primitive types like EString, EBoolean, EDate, they are automaticaly translated into their Java equivalents (String, Boolean, java::util::Date).
Is there some way I can access the actual ecore::EDate type (or other ecore primitive types) so that I can set it in my EAttribute?
Powered by FUDForum
. Page generated in 0.01686 seconds