|[Xtend] Object copy [message #639969]
||Thu, 18 November 2010 15:11
| Marc Palyart
Registered: November 2010
I have two classes DataSet and Case with DataSet which inherits from Case but DataSet doesn't have more attributes or methods than Case (it was necessary to linked two ecore files).
I need to copy the content of one instance of Case into one instance of DataSet. First, I tried to write a simple function to copy the content of an EObject into another EObject:
objectCopy(emf::EObject dest,emf::EObject source ) :
dest = source;
but I get the following error:
no viable alternative at input 'dest'
Is that not a correct syntax in Xtend to writte an object copy ? As I want to copy the content and not only obtain another refrence, do you I have to iterate on all objects contained in my object ?
Powered by FUDForum
. Page generated in 0.01872 seconds