blob: b891634c73a35a1949c39b8e0f8750b1f6f94d1c [file] [log] [blame]
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;
}