wpiers | 0591bdd | 2012-06-08 17:39:30 +0200 | [diff] [blame^] | 1 | @M |
| 2 | Resource TestGenModel { |
| 3 | URI = "platform:/resource/enumerations/TestGenModel.genmodel"; |
| 4 | content += testGenModel; |
| 5 | } |
| 6 | new GenModel testGenModel { |
| 7 | featureDelegation = "Virtual"; |
| 8 | } |
| 9 | Resource TestMetamodel { |
| 10 | URI = "platform:/resource/enumerations/TestMetamodel.ecore"; |
| 11 | content += testMetamodel; |
| 12 | } |
| 13 | new 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 | } |
| 29 | Resource TestModel { |
| 30 | URI = "platform:/resource/enumerations/TestModel.xmi"; |
| 31 | content += testTypeInstanceByReference; |
| 32 | content += testTypeInstance; |
| 33 | } |
| 34 | new TestType testTypeInstanceByReference { |
| 35 | visibility = private; |
| 36 | } |
| 37 | new TestType testTypeInstance { |
| 38 | visibility = "public"; |
| 39 | } |
| 40 | M@ |