blob: 056f7b28c8859fbb6c00ccb7095f08f95920e5be [file] [log] [blame]
wpiers0591bdd2012-06-08 17:39:30 +02001@M
2Resource TestGenModel {
3 URI = "platform:/resource/enumerations/TestGenModel.genmodel";
4 content += testGenModel;
5}
6new GenModel testGenModel {
7 featureDelegation = "Virtual";
8}
9Resource TestMetamodel {
10 URI = "platform:/resource/enumerations/TestMetamodel.ecore";
11 content += testMetamodel;
12}
13new EPackage testMetamodel {
14 nsURI = "testMetamodel";
15 nsPrefix = "testMetamodel";
16 eClassifiers += new EClass TestType {
17 eStructuralFeatures += new EAttribute {
18 name = "visibility";
19 eType = TestTypeVisibility;
20 changeable = "true";
21 ordered = "true";
22 };
23 };
24 eClassifiers += new EEnum TestTypeVisibility {
25 eLiterals += new EEnumLiteral public {};
26 eLiterals += new EEnumLiteral private {};
27 };
28}
29Resource TestModel {
30 URI = "platform:/resource/enumerations/TestModel.xmi";
31 content += testTypeInstanceByReference;
32 content += testTypeInstance;
33}
34new TestType testTypeInstanceByReference {
35 visibility = private;
36}
37new TestType testTypeInstance {
38 visibility = "public";
39}
40M@