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: 	// This statement imports Library model
     8: 	import "Library.ecore.etl" as lib;
     9: 	// This statement states that names from model imported as lib and package 
    10: 	// Library are available in the current context.
    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: };