rgen 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +21 -0
  3. data/Project.yaml +22 -0
  4. data/Rakefile +21 -25
  5. data/lib/rgen/ecore/ecore.rb +7 -1
  6. data/lib/rgen/ecore/ecore_ext.rb +9 -1
  7. data/lib/rgen/ecore/ecore_to_json.rb +189 -0
  8. data/lib/rgen/ecore/ecore_to_ruby.rb +46 -10
  9. data/lib/rgen/fragment/fragmented_model.rb +2 -0
  10. data/lib/rgen/fragment/model_fragment.rb +3 -0
  11. data/lib/rgen/metamodel_builder/builder_extensions.rb +14 -6
  12. data/lib/rgen/metamodel_builder/builder_runtime.rb +12 -5
  13. data/lib/rgen/template_language/output_handler.rb +10 -0
  14. data/lib/rgen/template_language/template_container.rb +7 -3
  15. data/lib/rgen/template_language.rb +2 -1
  16. data/test/array_extensions_test.rb +7 -7
  17. data/test/ea_instantiator_test.rb +2 -2
  18. data/test/ea_serializer_test.rb +2 -2
  19. data/test/ecore_self_test.rb +2 -2
  20. data/test/ecore_to_ruby_test.rb +2 -2
  21. data/test/environment_test.rb +2 -2
  22. data/test/json_test.rb +4 -4
  23. data/test/metamodel_builder_test.rb +81 -46
  24. data/test/metamodel_from_ecore_test.rb +1 -1
  25. data/test/metamodel_order_test.rb +2 -2
  26. data/test/metamodel_roundtrip_test.rb +2 -2
  27. data/test/method_delegation_test.rb +5 -5
  28. data/test/model_builder/builder_context_test.rb +3 -3
  29. data/test/model_builder/builder_test.rb +11 -11
  30. data/test/model_builder/reference_resolver_test.rb +3 -3
  31. data/test/model_builder/serializer_test.rb +2 -2
  32. data/test/model_fragment_test.rb +2 -2
  33. data/test/output_handler_test.rb +2 -2
  34. data/test/qualified_name_provider_test.rb +2 -2
  35. data/test/qualified_name_resolver_test.rb +4 -4
  36. data/test/reference_resolver_test.rb +4 -4
  37. data/test/rgen_test.rb +1 -1
  38. data/test/template_language_test/templates/line_endings/mixed.tpl +6 -0
  39. data/test/template_language_test/templates/line_endings/unix.tpl +6 -0
  40. data/test/template_language_test/templates/line_endings/windows.tpl +6 -0
  41. data/test/template_language_test/templates/ws_test.tpl +21 -0
  42. data/test/template_language_test.rb +45 -8
  43. data/test/testmodel/class_model_checker.rb +17 -17
  44. data/test/testmodel/ecore_model_checker.rb +13 -13
  45. data/test/testmodel/object_model_checker.rb +6 -6
  46. data/test/transformer_test.rb +3 -3
  47. data/test/util/file_cache_map_test.rb +2 -2
  48. data/test/util/pattern_matcher_test.rb +7 -7
  49. data/test/xml_instantiator_test/simple_ecore_model_checker.rb +12 -12
  50. data/test/xml_instantiator_test.rb +8 -8
  51. metadata +106 -51
  52. data/test/coverage/assets/0.10.0/application.css +0 -799
  53. data/test/coverage/assets/0.10.0/application.js +0 -1707
  54. data/test/coverage/assets/0.10.0/colorbox/border.png +0 -0
  55. data/test/coverage/assets/0.10.0/colorbox/controls.png +0 -0
  56. data/test/coverage/assets/0.10.0/colorbox/loading.gif +0 -0
  57. data/test/coverage/assets/0.10.0/colorbox/loading_background.png +0 -0
  58. data/test/coverage/assets/0.10.0/favicon_green.png +0 -0
  59. data/test/coverage/assets/0.10.0/favicon_red.png +0 -0
  60. data/test/coverage/assets/0.10.0/favicon_yellow.png +0 -0
  61. data/test/coverage/assets/0.10.0/loading.gif +0 -0
  62. data/test/coverage/assets/0.10.0/magnify.png +0 -0
  63. data/test/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  64. data/test/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  65. data/test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  66. data/test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  67. data/test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  68. data/test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  69. data/test/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  70. data/test/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  71. data/test/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
  72. data/test/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  73. data/test/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
  74. data/test/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
  75. data/test/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  76. data/test/coverage/index.html +0 -72
  77. data/test/metamodel_roundtrip_test/TestModel_Regenerated.rb +0 -71
  78. data/test/metamodel_roundtrip_test/houseMetamodel_Regenerated.ecore +0 -162
  79. data/test/metamodel_roundtrip_test/using_builtin_types_serialized.ecore +0 -9
  80. data/test/model_builder/ecore_internal.rb +0 -113
  81. data/test/testmodel/ea_testmodel_regenerated.xml +0 -813
  82. data/test/util/file_cache_map_test/testdir/fileA +0 -1
@@ -1,72 +0,0 @@
1
- <!DOCTYPE html>
2
- <html xmlns='http://www.w3.org/1999/xhtml'>
3
- <head>
4
- <title>Code coverage for Test</title>
5
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
- <script src='./assets/0.10.0/application.js' type='text/javascript'></script>
7
- <link href='./assets/0.10.0/application.css' media='screen, projection, print' rel='stylesheet' type='text/css'>
8
- <link rel="shortcut icon" type="image/png" href="./assets/0.10.0/favicon_green.png" />
9
- <link rel="icon" type="image/png" href="./assets/0.10.0/favicon.png" />
10
- </head>
11
-
12
- <body>
13
- <div id="loading">
14
- <img src="./assets/0.10.0/loading.gif" alt="loading"/>
15
- </div>
16
- <div id="wrapper" style="display:none;">
17
- <div class="timestamp">Generated <abbr class="timeago" title="2015-06-26T11:16:15+02:00">2015-06-26T11:16:15+02:00</abbr></div>
18
- <ul class="group_tabs"></ul>
19
-
20
- <div id="content">
21
- <div class="file_list_container" id="AllFiles">
22
- <h2>
23
- <span class="group_name">All Files</span>
24
- (<span class="covered_percent"><span class="green">100.0%</span></span>
25
- covered at
26
- <span class="covered_strength">
27
- <span class="red">
28
- 0.0
29
- </span>
30
- </span> hits/line)
31
- </h2>
32
- <a name="AllFiles"></a>
33
- <div>
34
- <b>0</b> files in total.
35
- <b>0.0</b> relevant lines.
36
- <span class="green"><b>0.0</b> lines covered</span> and
37
- <span class="red"><b>0.0</b> lines missed </span>
38
- </div>
39
- <table class="file_list">
40
- <thead>
41
- <tr>
42
- <th>File</th>
43
- <th>% covered</th>
44
- <th>Lines</th>
45
- <th>Relevant Lines</th>
46
- <th>Lines covered</th>
47
- <th>Lines missed</th>
48
- <th>Avg. Hits / Line</th>
49
- </tr>
50
- </thead>
51
- <tbody>
52
-
53
- </tbody>
54
- </table>
55
- </div>
56
-
57
-
58
-
59
- </div>
60
-
61
- <div id="footer">
62
- Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.10.0
63
- and simplecov-html v0.10.0<br/>
64
- using Unit Tests
65
- </div>
66
-
67
- <div class="source_files">
68
-
69
- </div>
70
- </div>
71
- </body>
72
- </html>
@@ -1,71 +0,0 @@
1
- require 'rgen/metamodel_builder'
2
-
3
- module HouseMetamodel
4
- extend RGen::MetamodelBuilder::ModuleExtension
5
- include RGen::MetamodelBuilder::DataTypes
6
-
7
- SexEnum = Enum.new(:name => 'SexEnum', :literals =>[ :male, :female ])
8
-
9
- class MeetingPlace < RGen::MetamodelBuilder::MMBase
10
- annotation :source => "testmodel", :details => {'complexity' => '1', 'date_created' => '2006-07-12 08:40:46', 'date_modified' => '2006-07-12 08:44:02', 'ea_ntype' => '0', 'ea_stype' => 'Class', 'gentype' => 'Java', 'isSpecification' => 'false', 'package' => 'EAPK_A1B83D59_CAE1_422c_BA5F_D3624D7156AD', 'package_name' => 'HouseMetamodel', 'phase' => '1.0', 'status' => 'Proposed', 'style' => 'BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;', 'tagged' => '0', 'version' => '1.0'}
11
- end
12
-
13
- class Person < RGen::MetamodelBuilder::MMBase
14
- annotation 'complexity' => '1', 'date_created' => '2006-06-27 08:34:23', 'date_modified' => '2006-06-27 08:34:26', 'ea_ntype' => '0', 'ea_stype' => 'Class', 'gentype' => 'Java', 'isSpecification' => 'false', 'package' => 'EAPK_A1B83D59_CAE1_422c_BA5F_D3624D7156AD', 'package_name' => 'HouseMetamodel', 'phase' => '1.0', 'status' => 'Proposed', 'style' => 'BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;', 'tagged' => '0', 'version' => '1.0'
15
- has_attr 'sex', HouseMetamodel::SexEnum
16
- has_attr 'id', Long
17
- has_many_attr 'nicknames', String
18
- end
19
-
20
- class House < RGen::MetamodelBuilder::MMBase
21
- annotation 'complexity' => '1', 'date_created' => '2005-09-16 19:52:18', 'date_modified' => '2006-02-28 08:29:19', 'ea_ntype' => '0', 'ea_stype' => 'Class', 'gentype' => 'Java', 'isSpecification' => 'false', 'package' => 'EAPK_A1B83D59_CAE1_422c_BA5F_D3624D7156AD', 'package_name' => 'HouseMetamodel', 'phase' => '1.0', 'status' => 'Proposed', 'stereotype' => 'dummy', 'style' => 'BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;', 'tagged' => '0', 'version' => '1.0'
22
- has_attr 'size', Integer
23
- has_attr 'module', String
24
- has_attr 'address', String, :changeable => false do
25
- annotation 'collection' => 'false', 'containment' => 'Not Specified', 'derived' => '0', 'duplicates' => '0', 'ea_guid' => '{A8DF581B-9AC6-4f75-AB48-8FAEDFC6E068}', 'lowerBound' => '1', 'ordered' => '0', 'position' => '0', 'styleex' => 'volatile=0;', 'type' => 'String', 'upperBound' => '1'
26
- end
27
- end
28
-
29
-
30
- module Rooms
31
- extend RGen::MetamodelBuilder::ModuleExtension
32
- include RGen::MetamodelBuilder::DataTypes
33
-
34
-
35
- class Room < RGen::MetamodelBuilder::MMBase
36
- abstract
37
- annotation 'complexity' => '1', 'date_created' => '2005-09-16 19:52:28', 'date_modified' => '2006-06-22 21:15:25', 'ea_ntype' => '0', 'ea_stype' => 'Class', 'gentype' => 'Java', 'isSpecification' => 'false', 'package' => 'EAPK_F9D8C6E3_4DAD_4aa2_AD47_D0ABA4E93E08', 'package_name' => 'Rooms', 'phase' => '1.0', 'status' => 'Proposed', 'style' => 'BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;', 'tagged' => '0', 'version' => '1.0'
38
- end
39
-
40
- class Bathroom < Room
41
- annotation 'complexity' => '1', 'date_created' => '2006-06-27 08:32:25', 'date_modified' => '2006-06-27 08:34:23', 'ea_ntype' => '0', 'ea_stype' => 'Class', 'gentype' => 'Java', 'isSpecification' => 'false', 'package' => 'EAPK_F9D8C6E3_4DAD_4aa2_AD47_D0ABA4E93E08', 'package_name' => 'Rooms', 'phase' => '1.0', 'status' => 'Proposed', 'style' => 'BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;', 'tagged' => '0', 'version' => '1.0'
42
- end
43
-
44
- class Kitchen < RGen::MetamodelBuilder::MMMultiple(HouseMetamodel::MeetingPlace, Room)
45
- annotation 'complexity' => '1', 'date_created' => '2005-11-30 19:26:13', 'date_modified' => '2006-06-22 21:15:34', 'ea_ntype' => '0', 'ea_stype' => 'Class', 'gentype' => 'Java', 'isSpecification' => 'false', 'package' => 'EAPK_F9D8C6E3_4DAD_4aa2_AD47_D0ABA4E93E08', 'package_name' => 'Rooms', 'phase' => '1.0', 'status' => 'Proposed', 'style' => 'BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;', 'tagged' => '0', 'version' => '1.0'
46
- end
47
-
48
- end
49
-
50
- module DependingOnRooms
51
- extend RGen::MetamodelBuilder::ModuleExtension
52
- include RGen::MetamodelBuilder::DataTypes
53
-
54
-
55
- class RoomSub < HouseMetamodel::Rooms::Room
56
- end
57
-
58
- end
59
- end
60
-
61
- HouseMetamodel::Person.has_many 'home', HouseMetamodel::House do
62
- annotation 'containment' => 'Unspecified'
63
- end
64
- HouseMetamodel::House.has_one 'bathroom', HouseMetamodel::Rooms::Bathroom, :lowerBound => 1, :transient => true
65
- HouseMetamodel::House.one_to_one 'kitchen', HouseMetamodel::Rooms::Kitchen, 'house', :lowerBound => 1, :opposite_lowerBound => 1 do
66
- annotation 'containment' => 'Unspecified'
67
- opposite_annotation 'containment' => 'Unspecified'
68
- end
69
- HouseMetamodel::House.contains_many 'room', HouseMetamodel::Rooms::Room, 'house', :lowerBound => 1 do
70
- opposite_annotation 'containment' => 'Unspecified'
71
- end
@@ -1,162 +0,0 @@
1
- <ecore:EPackage name="HouseMetamodel" xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">
2
- <eClassifiers abstract="false" interface="false" instanceClassName="HouseMetamodel::MeetingPlace" name="MeetingPlace" eSubTypes="#//Rooms/Kitchen" xsi:type="ecore:EClass">
3
- <eAnnotations source="testmodel" xsi:type="ecore:EAnnotation">
4
- <details key="complexity" value="1" xsi:type="ecore:EStringToStringMapEntry"/>
5
- <details key="date_created" value="2006-07-12 08:40:46" xsi:type="ecore:EStringToStringMapEntry"/>
6
- <details key="date_modified" value="2006-07-12 08:44:02" xsi:type="ecore:EStringToStringMapEntry"/>
7
- <details key="ea_ntype" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
8
- <details key="ea_stype" value="Class" xsi:type="ecore:EStringToStringMapEntry"/>
9
- <details key="gentype" value="Java" xsi:type="ecore:EStringToStringMapEntry"/>
10
- <details key="isSpecification" value="false" xsi:type="ecore:EStringToStringMapEntry"/>
11
- <details key="package" value="EAPK_A1B83D59_CAE1_422c_BA5F_D3624D7156AD" xsi:type="ecore:EStringToStringMapEntry"/>
12
- <details key="package_name" value="HouseMetamodel" xsi:type="ecore:EStringToStringMapEntry"/>
13
- <details key="phase" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
14
- <details key="status" value="Proposed" xsi:type="ecore:EStringToStringMapEntry"/>
15
- <details key="style" value="BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;" xsi:type="ecore:EStringToStringMapEntry"/>
16
- <details key="tagged" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
17
- <details key="version" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
18
- </eAnnotations>
19
- </eClassifiers>
20
- <eClassifiers abstract="false" interface="false" instanceClassName="HouseMetamodel::Person" name="Person" xsi:type="ecore:EClass">
21
- <eStructuralFeatures iD="false" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="sex" eType="#//SexEnum" xsi:type="ecore:EAttribute"/>
22
- <eStructuralFeatures iD="false" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong" xsi:type="ecore:EAttribute"/>
23
- <eStructuralFeatures iD="false" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="-1" name="nicknames" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" xsi:type="ecore:EAttribute"/>
24
- <eStructuralFeatures containment="false" resolveProxies="true" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="-1" name="home" eType="#//House" xsi:type="ecore:EReference">
25
- <eAnnotations xsi:type="ecore:EAnnotation">
26
- <details key="containment" value="Unspecified" xsi:type="ecore:EStringToStringMapEntry"/>
27
- </eAnnotations>
28
- </eStructuralFeatures>
29
- <eAnnotations xsi:type="ecore:EAnnotation">
30
- <details key="complexity" value="1" xsi:type="ecore:EStringToStringMapEntry"/>
31
- <details key="date_created" value="2006-06-27 08:34:23" xsi:type="ecore:EStringToStringMapEntry"/>
32
- <details key="date_modified" value="2006-06-27 08:34:26" xsi:type="ecore:EStringToStringMapEntry"/>
33
- <details key="ea_ntype" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
34
- <details key="ea_stype" value="Class" xsi:type="ecore:EStringToStringMapEntry"/>
35
- <details key="gentype" value="Java" xsi:type="ecore:EStringToStringMapEntry"/>
36
- <details key="isSpecification" value="false" xsi:type="ecore:EStringToStringMapEntry"/>
37
- <details key="package" value="EAPK_A1B83D59_CAE1_422c_BA5F_D3624D7156AD" xsi:type="ecore:EStringToStringMapEntry"/>
38
- <details key="package_name" value="HouseMetamodel" xsi:type="ecore:EStringToStringMapEntry"/>
39
- <details key="phase" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
40
- <details key="status" value="Proposed" xsi:type="ecore:EStringToStringMapEntry"/>
41
- <details key="style" value="BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;" xsi:type="ecore:EStringToStringMapEntry"/>
42
- <details key="tagged" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
43
- <details key="version" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
44
- </eAnnotations>
45
- </eClassifiers>
46
- <eClassifiers abstract="false" interface="false" instanceClassName="HouseMetamodel::House" name="House" xsi:type="ecore:EClass">
47
- <eStructuralFeatures iD="false" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="size" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" xsi:type="ecore:EAttribute"/>
48
- <eStructuralFeatures iD="false" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="module" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" xsi:type="ecore:EAttribute"/>
49
- <eStructuralFeatures iD="false" changeable="false" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="address" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" xsi:type="ecore:EAttribute">
50
- <eAnnotations xsi:type="ecore:EAnnotation">
51
- <details key="collection" value="false" xsi:type="ecore:EStringToStringMapEntry"/>
52
- <details key="containment" value="Not Specified" xsi:type="ecore:EStringToStringMapEntry"/>
53
- <details key="derived" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
54
- <details key="duplicates" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
55
- <details key="ea_guid" value="{A8DF581B-9AC6-4f75-AB48-8FAEDFC6E068}" xsi:type="ecore:EStringToStringMapEntry"/>
56
- <details key="lowerBound" value="1" xsi:type="ecore:EStringToStringMapEntry"/>
57
- <details key="ordered" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
58
- <details key="position" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
59
- <details key="styleex" value="volatile=0;" xsi:type="ecore:EStringToStringMapEntry"/>
60
- <details key="type" value="String" xsi:type="ecore:EStringToStringMapEntry"/>
61
- <details key="upperBound" value="1" xsi:type="ecore:EStringToStringMapEntry"/>
62
- </eAnnotations>
63
- </eStructuralFeatures>
64
- <eStructuralFeatures containment="false" resolveProxies="true" changeable="true" derived="false" transient="true" unsettable="false" volatile="false" lowerBound="1" ordered="true" unique="true" upperBound="1" name="bathroom" eType="#//Rooms/Bathroom" xsi:type="ecore:EReference"/>
65
- <eStructuralFeatures containment="false" resolveProxies="true" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="1" ordered="true" unique="true" upperBound="1" name="kitchen" eOpposite="#//Rooms/Kitchen/house" eType="#//Rooms/Kitchen" xsi:type="ecore:EReference">
66
- <eAnnotations xsi:type="ecore:EAnnotation">
67
- <details key="containment" value="Unspecified" xsi:type="ecore:EStringToStringMapEntry"/>
68
- </eAnnotations>
69
- </eStructuralFeatures>
70
- <eStructuralFeatures containment="true" resolveProxies="true" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="1" ordered="true" unique="true" upperBound="-1" name="room" eOpposite="#//Rooms/Room/house" eType="#//Rooms/Room" xsi:type="ecore:EReference"/>
71
- <eAnnotations xsi:type="ecore:EAnnotation">
72
- <details key="complexity" value="1" xsi:type="ecore:EStringToStringMapEntry"/>
73
- <details key="date_created" value="2005-09-16 19:52:18" xsi:type="ecore:EStringToStringMapEntry"/>
74
- <details key="date_modified" value="2006-02-28 08:29:19" xsi:type="ecore:EStringToStringMapEntry"/>
75
- <details key="ea_ntype" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
76
- <details key="ea_stype" value="Class" xsi:type="ecore:EStringToStringMapEntry"/>
77
- <details key="gentype" value="Java" xsi:type="ecore:EStringToStringMapEntry"/>
78
- <details key="isSpecification" value="false" xsi:type="ecore:EStringToStringMapEntry"/>
79
- <details key="package" value="EAPK_A1B83D59_CAE1_422c_BA5F_D3624D7156AD" xsi:type="ecore:EStringToStringMapEntry"/>
80
- <details key="package_name" value="HouseMetamodel" xsi:type="ecore:EStringToStringMapEntry"/>
81
- <details key="phase" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
82
- <details key="status" value="Proposed" xsi:type="ecore:EStringToStringMapEntry"/>
83
- <details key="stereotype" value="dummy" xsi:type="ecore:EStringToStringMapEntry"/>
84
- <details key="style" value="BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;" xsi:type="ecore:EStringToStringMapEntry"/>
85
- <details key="tagged" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
86
- <details key="version" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
87
- </eAnnotations>
88
- </eClassifiers>
89
- <eClassifiers instanceClassName="HouseMetamodel::SexEnum" name="SexEnum" xsi:type="ecore:EEnum">
90
- <eLiterals name="male" xsi:type="ecore:EEnumLiteral"/>
91
- <eLiterals name="female" xsi:type="ecore:EEnumLiteral"/>
92
- </eClassifiers>
93
- <eSubpackages name="Rooms" xsi:type="ecore:EPackage">
94
- <eClassifiers abstract="true" interface="false" instanceClassName="HouseMetamodel::Rooms::Room" name="Room" eSubTypes="#//Rooms/Bathroom #//Rooms/Kitchen #//DependingOnRooms/RoomSub" xsi:type="ecore:EClass">
95
- <eStructuralFeatures containment="false" resolveProxies="true" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="house" eOpposite="#//House/room" eType="#//House" xsi:type="ecore:EReference">
96
- <eAnnotations xsi:type="ecore:EAnnotation">
97
- <details key="containment" value="Unspecified" xsi:type="ecore:EStringToStringMapEntry"/>
98
- </eAnnotations>
99
- </eStructuralFeatures>
100
- <eAnnotations xsi:type="ecore:EAnnotation">
101
- <details key="complexity" value="1" xsi:type="ecore:EStringToStringMapEntry"/>
102
- <details key="date_created" value="2005-09-16 19:52:28" xsi:type="ecore:EStringToStringMapEntry"/>
103
- <details key="date_modified" value="2006-06-22 21:15:25" xsi:type="ecore:EStringToStringMapEntry"/>
104
- <details key="ea_ntype" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
105
- <details key="ea_stype" value="Class" xsi:type="ecore:EStringToStringMapEntry"/>
106
- <details key="gentype" value="Java" xsi:type="ecore:EStringToStringMapEntry"/>
107
- <details key="isSpecification" value="false" xsi:type="ecore:EStringToStringMapEntry"/>
108
- <details key="package" value="EAPK_F9D8C6E3_4DAD_4aa2_AD47_D0ABA4E93E08" xsi:type="ecore:EStringToStringMapEntry"/>
109
- <details key="package_name" value="Rooms" xsi:type="ecore:EStringToStringMapEntry"/>
110
- <details key="phase" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
111
- <details key="status" value="Proposed" xsi:type="ecore:EStringToStringMapEntry"/>
112
- <details key="style" value="BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;" xsi:type="ecore:EStringToStringMapEntry"/>
113
- <details key="tagged" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
114
- <details key="version" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
115
- </eAnnotations>
116
- </eClassifiers>
117
- <eClassifiers abstract="false" interface="false" instanceClassName="HouseMetamodel::Rooms::Bathroom" name="Bathroom" eSuperTypes="#//Rooms/Room" xsi:type="ecore:EClass">
118
- <eAnnotations xsi:type="ecore:EAnnotation">
119
- <details key="complexity" value="1" xsi:type="ecore:EStringToStringMapEntry"/>
120
- <details key="date_created" value="2006-06-27 08:32:25" xsi:type="ecore:EStringToStringMapEntry"/>
121
- <details key="date_modified" value="2006-06-27 08:34:23" xsi:type="ecore:EStringToStringMapEntry"/>
122
- <details key="ea_ntype" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
123
- <details key="ea_stype" value="Class" xsi:type="ecore:EStringToStringMapEntry"/>
124
- <details key="gentype" value="Java" xsi:type="ecore:EStringToStringMapEntry"/>
125
- <details key="isSpecification" value="false" xsi:type="ecore:EStringToStringMapEntry"/>
126
- <details key="package" value="EAPK_F9D8C6E3_4DAD_4aa2_AD47_D0ABA4E93E08" xsi:type="ecore:EStringToStringMapEntry"/>
127
- <details key="package_name" value="Rooms" xsi:type="ecore:EStringToStringMapEntry"/>
128
- <details key="phase" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
129
- <details key="status" value="Proposed" xsi:type="ecore:EStringToStringMapEntry"/>
130
- <details key="style" value="BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;" xsi:type="ecore:EStringToStringMapEntry"/>
131
- <details key="tagged" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
132
- <details key="version" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
133
- </eAnnotations>
134
- </eClassifiers>
135
- <eClassifiers abstract="false" interface="false" instanceClassName="HouseMetamodel::Rooms::Kitchen" name="Kitchen" eSuperTypes="#//MeetingPlace #//Rooms/Room" xsi:type="ecore:EClass">
136
- <eStructuralFeatures containment="false" resolveProxies="true" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="1" ordered="true" unique="true" upperBound="1" name="house" eOpposite="#//House/kitchen" eType="#//House" xsi:type="ecore:EReference">
137
- <eAnnotations xsi:type="ecore:EAnnotation">
138
- <details key="containment" value="Unspecified" xsi:type="ecore:EStringToStringMapEntry"/>
139
- </eAnnotations>
140
- </eStructuralFeatures>
141
- <eAnnotations xsi:type="ecore:EAnnotation">
142
- <details key="complexity" value="1" xsi:type="ecore:EStringToStringMapEntry"/>
143
- <details key="date_created" value="2005-11-30 19:26:13" xsi:type="ecore:EStringToStringMapEntry"/>
144
- <details key="date_modified" value="2006-06-22 21:15:34" xsi:type="ecore:EStringToStringMapEntry"/>
145
- <details key="ea_ntype" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
146
- <details key="ea_stype" value="Class" xsi:type="ecore:EStringToStringMapEntry"/>
147
- <details key="gentype" value="Java" xsi:type="ecore:EStringToStringMapEntry"/>
148
- <details key="isSpecification" value="false" xsi:type="ecore:EStringToStringMapEntry"/>
149
- <details key="package" value="EAPK_F9D8C6E3_4DAD_4aa2_AD47_D0ABA4E93E08" xsi:type="ecore:EStringToStringMapEntry"/>
150
- <details key="package_name" value="Rooms" xsi:type="ecore:EStringToStringMapEntry"/>
151
- <details key="phase" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
152
- <details key="status" value="Proposed" xsi:type="ecore:EStringToStringMapEntry"/>
153
- <details key="style" value="BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=0;HSwimLanes=0;BorderStyle=0;" xsi:type="ecore:EStringToStringMapEntry"/>
154
- <details key="tagged" value="0" xsi:type="ecore:EStringToStringMapEntry"/>
155
- <details key="version" value="1.0" xsi:type="ecore:EStringToStringMapEntry"/>
156
- </eAnnotations>
157
- </eClassifiers>
158
- </eSubpackages>
159
- <eSubpackages name="DependingOnRooms" xsi:type="ecore:EPackage">
160
- <eClassifiers abstract="false" interface="false" instanceClassName="HouseMetamodel::DependingOnRooms::RoomSub" name="RoomSub" eSuperTypes="#//Rooms/Room" xsi:type="ecore:EClass"/>
161
- </eSubpackages>
162
- </ecore:EPackage>
@@ -1,9 +0,0 @@
1
- <ecore:EPackage name="P1" xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">
2
- <eClassifiers name="C1" xsi:type="ecore:EClass">
3
- <eStructuralFeatures iD="false" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="a1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" xsi:type="ecore:EAttribute"/>
4
- <eStructuralFeatures iD="false" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="a2" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" xsi:type="ecore:EAttribute"/>
5
- <eStructuralFeatures iD="false" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="a3" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong" xsi:type="ecore:EAttribute"/>
6
- <eStructuralFeatures iD="false" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="a4" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat" xsi:type="ecore:EAttribute"/>
7
- <eStructuralFeatures iD="false" changeable="true" derived="false" transient="false" unsettable="false" volatile="false" lowerBound="0" ordered="true" unique="true" upperBound="1" name="a5" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" xsi:type="ecore:EAttribute"/>
8
- </eClassifiers>
9
- </ecore:EPackage>
@@ -1,113 +0,0 @@
1
- ePackage "ECore", :eSuperPackage => "" do
2
- eClass "EObject", :abstract => false, :interface => false, :eSubTypes => ["EAnnotation"], :instanceClassName => "RGen::ECore::EObject"
3
- eClass "EModelElement", :abstract => false, :interface => false, :eSubTypes => ["EAnnotation", "ENamedElement"], :instanceClassName => "RGen::ECore::EModelElement" do
4
- eReference "eAnnotations", :containment => true, :resolveProxies => false, :eOpposite => "EAnnotation.eModelElement", :upperBound => -1, :eType => "EAnnotation"
5
- end
6
- eClass "EAnnotation", :abstract => false, :interface => false, :instanceClassName => "RGen::ECore::EAnnotation" do
7
- eAttribute "source", :eType => ""
8
- eReference "eModelElement", :eOpposite => "EModelElement.eAnnotations", :eType => "EModelElement"
9
- eReference "details", :containment => true, :resolveProxies => false, :upperBound => -1, :eType => "EStringToStringMapEntry"
10
- eReference "contents", :containment => true, :resolveProxies => false, :upperBound => -1, :eType => "EObject"
11
- eReference "references", :upperBound => -1, :eType => "EObject"
12
- end
13
- eClass "ENamedElement", :abstract => false, :interface => false, :eSubTypes => ["EClassifier", "ETypedElement"], :instanceClassName => "RGen::ECore::ENamedElement" do
14
- eAttribute "name", :eType => ""
15
- end
16
- eClass "ETypedElement", :abstract => false, :interface => false, :eSubTypes => ["EOperation", "EStructuralFeature"], :instanceClassName => "RGen::ECore::ETypedElement" do
17
- eAttribute "lowerBound", :defaultValueLiteral => "0", :eType => ""
18
- eAttribute "ordered", :defaultValueLiteral => "true", :eType => ""
19
- eAttribute "unique", :defaultValueLiteral => "true", :eType => ""
20
- eAttribute "upperBound", :defaultValueLiteral => "1", :eType => ""
21
- eAttribute "many", :changeable => false, :derived => true, :transient => true, :volatile => true, :eType => ""
22
- eAttribute "required", :changeable => false, :derived => true, :transient => true, :volatile => true, :eType => ""
23
- eReference "eType", :eType => "EClassifier"
24
- end
25
- eClass "EStructuralFeature", :abstract => false, :interface => false, :eSubTypes => ["EAttribute", "EReference"], :instanceClassName => "RGen::ECore::EStructuralFeature" do
26
- eAttribute "changeable", :defaultValueLiteral => "true", :eType => ""
27
- eAttribute "defaultValue", :changeable => false, :derived => true, :transient => true, :volatile => true, :eType => ""
28
- eAttribute "defaultValueLiteral", :eType => ""
29
- eAttribute "derived", :defaultValueLiteral => "false", :eType => ""
30
- eAttribute "transient", :defaultValueLiteral => "false", :eType => ""
31
- eAttribute "unsettable", :defaultValueLiteral => "false", :eType => ""
32
- eAttribute "volatile", :defaultValueLiteral => "false", :eType => ""
33
- eReference "eContainingClass", :eOpposite => "EClass.eStructuralFeatures", :eType => "EClass"
34
- end
35
- eClass "EAttribute", :abstract => false, :interface => false, :instanceClassName => "RGen::ECore::EAttribute" do
36
- eAttribute "iD", :defaultValueLiteral => "false", :eType => ""
37
- eReference "eAttributeType", :changeable => false, :derived => true, :transient => true, :volatile => true, :lowerBound => 1, :eType => "EDataType"
38
- end
39
- eClass "EClassifier", :abstract => false, :interface => false, :instanceClassName => "RGen::ECore::EClassifier" do
40
- eAttribute "defaultValue", :changeable => false, :derived => true, :transient => true, :volatile => true, :eType => ""
41
- eAttribute "instanceClass", :changeable => false, :derived => true, :transient => true, :volatile => true, :eType => ""
42
- eAttribute "instanceClassName", :eType => ""
43
- eReference "ePackage", :eOpposite => "EPackage.eClassifiers", :eType => "EPackage"
44
- end
45
- eClass "EDataType", :abstract => false, :interface => false, :eSuperTypes => ["EClassifier"], :eSubTypes => ["EGenericType"], :instanceClassName => "RGen::ECore::EDataType" do
46
- eAttribute "serializable", :eType => ""
47
- end
48
- eClass "EGenericType", :abstract => false, :interface => false, :instanceClassName => "RGen::ECore::EGenericType" do
49
- eReference "eClassifier", :eType => "EDataType"
50
- eReference "eParameter", :eOpposite => "EParameter.eGenericType", :eType => "EParameter"
51
- eReference "eTypeArguments", :containment => true, :eOpposite => "ETypeArgument.eGenericType", :upperBound => -1, :eType => "ETypeArgument"
52
- end
53
- eClass "ETypeArgument", :abstract => false, :interface => false, :eSuperTypes => ["EModelElement"], :instanceClassName => "RGen::ECore::ETypeArgument" do
54
- eReference "eClassifier", :eType => "EDataType"
55
- eReference "eGenericType", :eOpposite => "EGenericType.eTypeArguments", :eType => "EGenericType"
56
- end
57
- eClass "EEnum", :abstract => false, :interface => false, :eSuperTypes => ["EDataType"], :instanceClassName => "RGen::ECore::EEnum" do
58
- eReference "eLiterals", :containment => true, :resolveProxies => false, :eOpposite => "EEnumLiteral.eEnum", :upperBound => -1, :eType => "EEnumLiteral"
59
- end
60
- eClass "EEnumLiteral", :abstract => false, :interface => false, :eSuperTypes => ["ENamedElement"], :instanceClassName => "RGen::ECore::EEnumLiteral" do
61
- eAttribute "literal", :eType => ""
62
- eAttribute "value", :eType => ""
63
- eReference "eEnum", :eOpposite => "EEnum.eLiterals", :eType => "EEnum"
64
- end
65
- eClass "EFactory", :abstract => false, :interface => false, :eSuperTypes => ["EModelElement"], :instanceClassName => "RGen::ECore::EFactory" do
66
- eReference "ePackage", :resolveProxies => false, :eOpposite => "EPackage.eFactoryInstance", :transient => true, :lowerBound => 1, :eType => "EPackage"
67
- end
68
- eClass "EOperation", :abstract => false, :interface => false, :instanceClassName => "RGen::ECore::EOperation" do
69
- eReference "eContainingClass", :eOpposite => "EClass.eOperations", :eType => "EClass"
70
- eReference "eParameters", :containment => true, :resolveProxies => false, :eOpposite => "EParameter.eOperation", :upperBound => -1, :eType => "EParameter"
71
- eReference "eExceptions", :upperBound => -1, :eType => "EClassifier"
72
- end
73
- eClass "EPackage", :abstract => false, :interface => false, :eSuperTypes => ["ENamedElement"], :instanceClassName => "RGen::ECore::EPackage" do
74
- eAttribute "nsPrefix", :eType => ""
75
- eAttribute "nsURI", :eType => ""
76
- eReference "eClassifiers", :containment => true, :eOpposite => "EClassifier.ePackage", :upperBound => -1, :eType => "EClassifier"
77
- eReference "eSubpackages", :containment => true, :eOpposite => "eSuperPackage", :upperBound => -1, :eType => "EPackage"
78
- eReference "eSuperPackage", :eOpposite => "eSubpackages", :eType => "EPackage"
79
- eReference "eFactoryInstance", :eOpposite => "EFactory.ePackage", :eType => "EFactory"
80
- end
81
- eClass "EParameter", :abstract => false, :interface => false, :eSuperTypes => ["ETypedElement"], :instanceClassName => "RGen::ECore::EParameter" do
82
- eReference "eOperation", :eOpposite => "EOperation.eParameters", :eType => "EOperation"
83
- eReference "eGenericType", :containment => true, :eOpposite => "EGenericType.eParameter", :eType => "EGenericType"
84
- end
85
- eClass "EReference", :abstract => false, :interface => false, :instanceClassName => "RGen::ECore::EReference" do
86
- eAttribute "container", :changeable => false, :derived => true, :transient => true, :volatile => true, :eType => ""
87
- eAttribute "containment", :defaultValueLiteral => "false", :eType => ""
88
- eAttribute "resolveProxies", :defaultValueLiteral => "true", :eType => ""
89
- eReference "eOpposite", :eType => "EReference"
90
- eReference "eReferenceType", :changeable => false, :derived => true, :transient => true, :volatile => true, :lowerBound => 1, :eType => "EClass"
91
- end
92
- eClass "EStringToStringMapEntry", :abstract => false, :interface => false, :instanceClassName => "RGen::ECore::EStringToStringMapEntry" do
93
- eAttribute "key", :eType => ""
94
- eAttribute "value", :eType => ""
95
- end
96
- eClass "EClass", :abstract => false, :interface => false, :eSuperTypes => ["EClassifier"], :instanceClassName => "RGen::ECore::EClass" do
97
- eAttribute "abstract", :eType => ""
98
- eAttribute "interface", :eType => ""
99
- eReference "eIDAttribute", :resolveProxies => false, :changeable => false, :derived => true, :transient => true, :volatile => true, :eType => "EAttribute"
100
- eReference "eAllAttributes", :changeable => false, :derived => true, :transient => true, :volatile => true, :upperBound => -1, :eType => "EAttribute"
101
- eReference "eAllContainments", :changeable => false, :derived => true, :transient => true, :volatile => true, :upperBound => -1, :eType => "EReference"
102
- eReference "eAllOperations", :changeable => false, :derived => true, :transient => true, :volatile => true, :upperBound => -1, :eType => "EOperation"
103
- eReference "eAllReferences", :changeable => false, :derived => true, :transient => true, :volatile => true, :upperBound => -1, :eType => "EReference"
104
- eReference "eAllStructuralFeatures", :changeable => false, :derived => true, :transient => true, :volatile => true, :upperBound => -1, :eType => "EStructuralFeature"
105
- eReference "eAllSuperTypes", :changeable => false, :derived => true, :transient => true, :volatile => true, :upperBound => -1, :eType => "EClass"
106
- eReference "eAttributes", :changeable => false, :derived => true, :transient => true, :volatile => true, :upperBound => -1, :eType => "EAttribute"
107
- eReference "eReferences", :changeable => false, :derived => true, :transient => true, :volatile => true, :upperBound => -1, :eType => "EReference"
108
- eReference "eOperations", :containment => true, :resolveProxies => false, :eOpposite => "EOperation.eContainingClass", :upperBound => -1, :eType => "EOperation"
109
- eReference "eStructuralFeatures", :containment => true, :resolveProxies => false, :eOpposite => "EStructuralFeature.eContainingClass", :upperBound => -1, :eType => "EStructuralFeature"
110
- eReference "eSuperTypes", :eOpposite => "eSubTypes", :upperBound => -1, :eType => "EClass"
111
- eReference "eSubTypes", :eOpposite => "eSuperTypes", :upperBound => -1, :eType => "EClass"
112
- end
113
- end