1: doctype "../grammars/Ecore.g.etl";
2:
3: @["http://eclipse.org/emf/ecore"(basePackage="org.eclipse.example",
4: "nsUri"="http://www.eclipse.org/emf/example/school-library",
5: nsPrefix="school")]
6: package Q'School Library' {
7:
8: import "Library.ecore.etl" as lib;
9:
10:
11: with lib::Library;
12:
13: class Asset {
14: var value : float;
15: };
16:
17: /// This class demonstrate referring to class from another model using "with"
18: class SchoolBook extends Book, Asset {
19: };
20:
21: /// This class demonstrate explicit references to objects in other model.
22: class SchoolLibrary extends lib::Library::Library {
23: var location : String;
24: };
25: };