blob: 056f7b28c8859fbb6c00ccb7095f08f95920e5be [file] [log] [blame]
@M
Resource TestGenModel {
URI = "platform:/resource/enumerations/TestGenModel.genmodel";
content += testGenModel;
}
new GenModel testGenModel {
featureDelegation = "Virtual";
}
Resource TestMetamodel {
URI = "platform:/resource/enumerations/TestMetamodel.ecore";
content += testMetamodel;
}
new EPackage testMetamodel {
nsURI = "testMetamodel";
nsPrefix = "testMetamodel";
eClassifiers += new EClass TestType {
eStructuralFeatures += new EAttribute {
name = "visibility";
eType = TestTypeVisibility;
changeable = "true";
ordered = "true";
};
};
eClassifiers += new EEnum TestTypeVisibility {
eLiterals += new EEnumLiteral public {};
eLiterals += new EEnumLiteral private {};
};
}
Resource TestModel {
URI = "platform:/resource/enumerations/TestModel.xmi";
content += testTypeInstanceByReference;
content += testTypeInstance;
}
new TestType testTypeInstanceByReference {
visibility = private;
}
new TestType testTypeInstance {
visibility = "public";
}
M@