Skip to main content
summaryrefslogtreecommitdiffstats
blob: ce02b89221464e9baa7bfaf074b20b78b4ff6b50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import ecore : 'http://www.eclipse.org/emf/2002/Ecore';

transformation Constructors {
	source imports ecore;
	target imports ecore;
	middle imports ecore;
}

query Constructors::createEPackage(name2 : String) : ecore::EPackage {
	ecore::EPackage{name = name2}
}

map ep2ep in Constructors {
	check source (epIn:EPackage) {}
	enforce target () {
		realize epOut1 : EPackage := this.createEPackage(epIn.name),
		realize epOut2 : EPackage
	}
    where () {
    	epOut2.name := epIn.name;
    }
}

Back to the top