Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324583 - Provide generic copy/transform processor
Summary: Provide generic copy/transform processor
Status: CLOSED INVALID
Alias: None
Product: EMFT
Classification: Modeling
Component: Texo (show other bugs)
Version: Future   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-06 10:11 EDT by Martin Taal CLA
Modified: 2012-04-30 17:39 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Taal CLA 2010-09-06 10:11:02 EDT
The idea is to provide a common copy/transform process which is able to copy/transform from one representation to the other, for example:
EMF --> Texo
Texo --> EMF
Texo --> JSON

The main flow is as follows:
for each object from the source:
- ask the target context for an object representing the same object in the target representation. The target context needs to get the id and type of the requested object. The target context can decide to either create a new object or read the object from somewhere else (a database)
- the for each efeature the value is transformed
- for eattributes the value can be set normally using getters/setters
- for ereferences the referenced object should be used, for each reference the target context should provide the object being referenced, again using an id and type information.

The target context should keep a mapping internally of id/type to target objects, this to ensure that when the process requests again an object using an earlier used id/type that the same instance of the target object is returned.