import ecore : 'http://www.eclipse.org/emf/2002/Ecore'; | |
transformation Constructors { | |
check source imports ecore; | |
enforce target imports ecore; | |
middle imports ecore; | |
} | |
query Constructors::createEPackage(name2 : String) : ecore::EPackage { | |
ecore::EPackage{name = name2} | |
} | |
map ep2ep in Constructors { | |
in:source epIn:EPackage; | |
new:target epOut1 : EPackage := this.createEPackage(epIn.name); | |
new:target epOut2 : EPackage; | |
set epOut2.name := epIn.name; | |
} |