Skip to content
Timur Sağlam edited this page Feb 24, 2017 · 29 revisions

This is a proof of concept for the ecorification of Java code. The Java code will be interlaced with the generated model code of an Ecore metamodel that was extracted from the original Java code. For the metamodel extraction an automated approach was developed (see the project and its https://github.com/tsaglam/EcoreMetamodelExtraction/wiki).

This first implementation is prototypical and is opposed to the Ecore metamodel extraction limited to the ecorification of few selected features.

The prototypical ecorification of a Java project consists out of the following steps:

  • Extracting an Ecore metamodel from the project (using the EcoreMetamodelExtraction).
  • Generating a GenModel for the Ecore metamodel.
  • generating model code of the Ecore metamodel with the help of the GenModel.
  • Adding the Xtend dependencies to the project (classpath entries, build properties and manifest entries).
  • Generating the wrapper classes that implement the Ecore interfaces and delegate to their implementations (model code).
  • Editing the original classes to let them inherit from their correlating wrapper classes.
Clone this wiki locally