Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [Xtend] Object copy
[Xtend] Object copy [message #639969] Thu, 18 November 2010 15:11
Marc Palyart is currently offline Marc PalyartFriend
Messages: 4
Registered: November 2010
Junior Member
Hi everyone,

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 ?


Regards
Previous Topic:[ATL] execution of ATL transformations on XML files
Next Topic:[ATL] Migrating from ATL2 to atl3
Goto Forum:
  


Current Time: Fri Apr 19 21:49:03 GMT 2024

Powered by FUDForum. Page generated in 0.03003 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top