xmi 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (379) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +1 -1
  4. data/README.adoc +3 -3
  5. data/lib/xmi/ea_root.rb +2 -8
  6. data/lib/xmi/root.rb +0 -22
  7. data/lib/xmi/sparx.rb +35 -110
  8. data/lib/xmi/uml.rb +4 -169
  9. data/lib/xmi/version.rb +1 -1
  10. data/lib/xmi.rb +0 -1
  11. metadata +2 -370
  12. data/lib/xmi/root13.rb +0 -44
  13. data/lib/xmi/uml13/abstraction.rb +0 -155
  14. data/lib/xmi/uml13/action.rb +0 -148
  15. data/lib/xmi/uml13/action_sequence.rb +0 -132
  16. data/lib/xmi/uml13/action_sequenceaction.rb +0 -40
  17. data/lib/xmi/uml13/action_sequencestate.rb +0 -16
  18. data/lib/xmi/uml13/action_sequencestate2.rb +0 -16
  19. data/lib/xmi/uml13/action_sequencetransition.rb +0 -16
  20. data/lib/xmi/uml13/action_state.rb +0 -153
  21. data/lib/xmi/uml13/actionaction_sequence.rb +0 -16
  22. data/lib/xmi/uml13/actionactual_argument.rb +0 -16
  23. data/lib/xmi/uml13/actionis_asynchronous.rb +0 -14
  24. data/lib/xmi/uml13/actionmessage.rb +0 -16
  25. data/lib/xmi/uml13/actionrecurrence.rb +0 -28
  26. data/lib/xmi/uml13/actionrequest.rb +0 -16
  27. data/lib/xmi/uml13/actionscript.rb +0 -18
  28. data/lib/xmi/uml13/actiontarget.rb +0 -16
  29. data/lib/xmi/uml13/activity_model.rb +0 -133
  30. data/lib/xmi/uml13/activity_modelpartition.rb +0 -16
  31. data/lib/xmi/uml13/activity_state.rb +0 -152
  32. data/lib/xmi/uml13/actor.rb +0 -194
  33. data/lib/xmi/uml13/argument.rb +0 -34
  34. data/lib/xmi/uml13/argumentaction.rb +0 -16
  35. data/lib/xmi/uml13/argumentvalue.rb +0 -28
  36. data/lib/xmi/uml13/association.rb +0 -155
  37. data/lib/xmi/uml13/association_class.rb +0 -206
  38. data/lib/xmi/uml13/association_end.rb +0 -172
  39. data/lib/xmi/uml13/association_end_role.rb +0 -182
  40. data/lib/xmi/uml13/association_end_roleassociation_role.rb +0 -16
  41. data/lib/xmi/uml13/association_end_rolebase.rb +0 -16
  42. data/lib/xmi/uml13/association_endaggregation.rb +0 -14
  43. data/lib/xmi/uml13/association_endassociation.rb +0 -16
  44. data/lib/xmi/uml13/association_endassociation_end_role.rb +0 -16
  45. data/lib/xmi/uml13/association_endchangeable.rb +0 -14
  46. data/lib/xmi/uml13/association_endis_navigable.rb +0 -14
  47. data/lib/xmi/uml13/association_endis_ordered.rb +0 -14
  48. data/lib/xmi/uml13/association_endlink_end.rb +0 -16
  49. data/lib/xmi/uml13/association_endmultiplicity.rb +0 -18
  50. data/lib/xmi/uml13/association_endqualifier.rb +0 -16
  51. data/lib/xmi/uml13/association_endspecification.rb +0 -16
  52. data/lib/xmi/uml13/association_endtarget_scope.rb +0 -14
  53. data/lib/xmi/uml13/association_endtype.rb +0 -16
  54. data/lib/xmi/uml13/association_role.rb +0 -164
  55. data/lib/xmi/uml13/association_rolebase.rb +0 -16
  56. data/lib/xmi/uml13/association_rolemultiplicity.rb +0 -18
  57. data/lib/xmi/uml13/association_rolenamespace.rb +0 -16
  58. data/lib/xmi/uml13/associationassociation_end.rb +0 -16
  59. data/lib/xmi/uml13/associationconnection.rb +0 -19
  60. data/lib/xmi/uml13/associationlink.rb +0 -16
  61. data/lib/xmi/uml13/attribute.rb +0 -162
  62. data/lib/xmi/uml13/attribute_link.rb +0 -129
  63. data/lib/xmi/uml13/attribute_linkattribute.rb +0 -16
  64. data/lib/xmi/uml13/attribute_linkinstance.rb +0 -16
  65. data/lib/xmi/uml13/attribute_linkvalue.rb +0 -16
  66. data/lib/xmi/uml13/attributeassociation_end.rb +0 -16
  67. data/lib/xmi/uml13/attributeattribute_link.rb +0 -16
  68. data/lib/xmi/uml13/attributeinitial_value.rb +0 -28
  69. data/lib/xmi/uml13/auxiliary_elements.rb +0 -50
  70. data/lib/xmi/uml13/behavioral_elements.rb +0 -35
  71. data/lib/xmi/uml13/behavioral_feature.rb +0 -142
  72. data/lib/xmi/uml13/behavioral_featureis_query.rb +0 -14
  73. data/lib/xmi/uml13/behavioral_featureparameter.rb +0 -16
  74. data/lib/xmi/uml13/behavioral_featureraised_exception.rb +0 -16
  75. data/lib/xmi/uml13/binding.rb +0 -140
  76. data/lib/xmi/uml13/bindingargument.rb +0 -268
  77. data/lib/xmi/uml13/boolean_expression.rb +0 -36
  78. data/lib/xmi/uml13/call_action.rb +0 -153
  79. data/lib/xmi/uml13/call_actionmode.rb +0 -14
  80. data/lib/xmi/uml13/call_event.rb +0 -129
  81. data/lib/xmi/uml13/call_eventoperation.rb +0 -16
  82. data/lib/xmi/uml13/change_event.rb +0 -127
  83. data/lib/xmi/uml13/change_eventchange_expression.rb +0 -16
  84. data/lib/xmi/uml13/class.rb +0 -199
  85. data/lib/xmi/uml13/classifier.rb +0 -194
  86. data/lib/xmi/uml13/classifier_in_state.rb +0 -209
  87. data/lib/xmi/uml13/classifier_in_statein_state.rb +0 -16
  88. data/lib/xmi/uml13/classifier_in_stateobject_flow_state.rb +0 -16
  89. data/lib/xmi/uml13/classifier_in_statetype.rb +0 -16
  90. data/lib/xmi/uml13/classifier_role.rb +0 -223
  91. data/lib/xmi/uml13/classifier_roleassociation_end_role.rb +0 -16
  92. data/lib/xmi/uml13/classifier_roleavailable_feature.rb +0 -16
  93. data/lib/xmi/uml13/classifier_rolebase.rb +0 -16
  94. data/lib/xmi/uml13/classifier_rolemessage.rb +0 -16
  95. data/lib/xmi/uml13/classifier_rolemessage2.rb +0 -16
  96. data/lib/xmi/uml13/classifier_rolemultiplicity.rb +0 -18
  97. data/lib/xmi/uml13/classifier_rolenamespace.rb +0 -16
  98. data/lib/xmi/uml13/classifierassociation_end.rb +0 -16
  99. data/lib/xmi/uml13/classifierclassifier_in_state.rb +0 -16
  100. data/lib/xmi/uml13/classifierclassifier_role.rb +0 -16
  101. data/lib/xmi/uml13/classifiercollaboration.rb +0 -16
  102. data/lib/xmi/uml13/classifiercreate_action.rb +0 -16
  103. data/lib/xmi/uml13/classifierfeature.rb +0 -34
  104. data/lib/xmi/uml13/classifierinstance.rb +0 -16
  105. data/lib/xmi/uml13/classifierparameter.rb +0 -16
  106. data/lib/xmi/uml13/classifierparticipant.rb +0 -16
  107. data/lib/xmi/uml13/classifierrealization.rb +0 -16
  108. data/lib/xmi/uml13/classifierspecification.rb +0 -16
  109. data/lib/xmi/uml13/classifierstructural_feature.rb +0 -16
  110. data/lib/xmi/uml13/classis_active.rb +0 -14
  111. data/lib/xmi/uml13/collaboration.rb +0 -135
  112. data/lib/xmi/uml13/collaborationconstraining_element.rb +0 -16
  113. data/lib/xmi/uml13/collaborationinteraction.rb +0 -16
  114. data/lib/xmi/uml13/collaborationrepresented_classifier.rb +0 -16
  115. data/lib/xmi/uml13/collaborationrepresented_operation.rb +0 -16
  116. data/lib/xmi/uml13/collaborations.rb +0 -41
  117. data/lib/xmi/uml13/comment.rb +0 -114
  118. data/lib/xmi/uml13/common_behavior.rb +0 -92
  119. data/lib/xmi/uml13/component.rb +0 -204
  120. data/lib/xmi/uml13/componentdeployment.rb +0 -16
  121. data/lib/xmi/uml13/componentimplements.rb +0 -16
  122. data/lib/xmi/uml13/composite_state.rb +0 -161
  123. data/lib/xmi/uml13/composite_stateis_concurrent.rb +0 -14
  124. data/lib/xmi/uml13/composite_statesubstate.rb +0 -40
  125. data/lib/xmi/uml13/constraint.rb +0 -127
  126. data/lib/xmi/uml13/constraintbody.rb +0 -16
  127. data/lib/xmi/uml13/constraintconstrained_element.rb +0 -16
  128. data/lib/xmi/uml13/constraintconstrained_stereotype.rb +0 -16
  129. data/lib/xmi/uml13/core.rb +0 -86
  130. data/lib/xmi/uml13/create_action.rb +0 -153
  131. data/lib/xmi/uml13/create_actioninstantiation.rb +0 -16
  132. data/lib/xmi/uml13/data_type.rb +0 -194
  133. data/lib/xmi/uml13/data_types.rb +0 -62
  134. data/lib/xmi/uml13/data_value.rb +0 -147
  135. data/lib/xmi/uml13/dependency.rb +0 -137
  136. data/lib/xmi/uml13/dependencyclient.rb +0 -16
  137. data/lib/xmi/uml13/dependencydescription.rb +0 -18
  138. data/lib/xmi/uml13/dependencyowning_dependency.rb +0 -16
  139. data/lib/xmi/uml13/dependencysub_dependencies.rb +0 -28
  140. data/lib/xmi/uml13/dependencysupplier.rb +0 -16
  141. data/lib/xmi/uml13/destroy_action.rb +0 -148
  142. data/lib/xmi/uml13/diagram.rb +0 -48
  143. data/lib/xmi/uml13/diagram_compositions.rb +0 -16
  144. data/lib/xmi/uml13/diagram_element.rb +0 -40
  145. data/lib/xmi/uml13/diagram_element_properties.rb +0 -19
  146. data/lib/xmi/uml13/diagram_elementdiagram.rb +0 -16
  147. data/lib/xmi/uml13/diagram_elementgeometry.rb +0 -18
  148. data/lib/xmi/uml13/diagram_elementstyle.rb +0 -18
  149. data/lib/xmi/uml13/diagram_properties.rb +0 -25
  150. data/lib/xmi/uml13/diagramdiagram_type.rb +0 -18
  151. data/lib/xmi/uml13/diagramelement.rb +0 -16
  152. data/lib/xmi/uml13/diagramname.rb +0 -18
  153. data/lib/xmi/uml13/diagramowner.rb +0 -241
  154. data/lib/xmi/uml13/diagramstyle.rb +0 -18
  155. data/lib/xmi/uml13/diagramtool_name.rb +0 -18
  156. data/lib/xmi/uml13/element.rb +0 -26
  157. data/lib/xmi/uml13/element_reference.rb +0 -46
  158. data/lib/xmi/uml13/element_referencealias.rb +0 -18
  159. data/lib/xmi/uml13/element_referencepackage.rb +0 -16
  160. data/lib/xmi/uml13/element_referencereferenced_element.rb +0 -16
  161. data/lib/xmi/uml13/element_referencevisibility.rb +0 -14
  162. data/lib/xmi/uml13/enumeration.rb +0 -197
  163. data/lib/xmi/uml13/enumeration_literal.rb +0 -36
  164. data/lib/xmi/uml13/enumeration_literalenumeration.rb +0 -16
  165. data/lib/xmi/uml13/enumeration_literalname.rb +0 -18
  166. data/lib/xmi/uml13/enumerationliteral.rb +0 -16
  167. data/lib/xmi/uml13/event.rb +0 -124
  168. data/lib/xmi/uml13/eventstate.rb +0 -16
  169. data/lib/xmi/uml13/eventtransition.rb +0 -16
  170. data/lib/xmi/uml13/exception.rb +0 -170
  171. data/lib/xmi/uml13/exceptioncontext.rb +0 -16
  172. data/lib/xmi/uml13/expression.rb +0 -36
  173. data/lib/xmi/uml13/expressionbody.rb +0 -18
  174. data/lib/xmi/uml13/expressionlanguage.rb +0 -18
  175. data/lib/xmi/uml13/extension_mechanisms.rb +0 -29
  176. data/lib/xmi/uml13/feature.rb +0 -129
  177. data/lib/xmi/uml13/featureclassifier_role.rb +0 -16
  178. data/lib/xmi/uml13/featureowner.rb +0 -16
  179. data/lib/xmi/uml13/featureowner_scope.rb +0 -14
  180. data/lib/xmi/uml13/foundation.rb +0 -35
  181. data/lib/xmi/uml13/generalizable_element.rb +0 -142
  182. data/lib/xmi/uml13/generalizable_elementgeneralization.rb +0 -16
  183. data/lib/xmi/uml13/generalizable_elementis_abstract.rb +0 -14
  184. data/lib/xmi/uml13/generalizable_elementis_leaf.rb +0 -14
  185. data/lib/xmi/uml13/generalizable_elementis_root.rb +0 -14
  186. data/lib/xmi/uml13/generalizable_elementspecialization.rb +0 -16
  187. data/lib/xmi/uml13/generalization.rb +0 -129
  188. data/lib/xmi/uml13/generalizationdiscriminator.rb +0 -18
  189. data/lib/xmi/uml13/generalizationsubtype.rb +0 -16
  190. data/lib/xmi/uml13/generalizationsupertype.rb +0 -16
  191. data/lib/xmi/uml13/geometry.rb +0 -31
  192. data/lib/xmi/uml13/geometrybody.rb +0 -18
  193. data/lib/xmi/uml13/graphic_marker.rb +0 -31
  194. data/lib/xmi/uml13/graphic_markerbody.rb +0 -18
  195. data/lib/xmi/uml13/guard.rb +0 -122
  196. data/lib/xmi/uml13/guardexpression.rb +0 -16
  197. data/lib/xmi/uml13/guardtransition.rb +0 -16
  198. data/lib/xmi/uml13/instance.rb +0 -147
  199. data/lib/xmi/uml13/instanceattribute_link.rb +0 -16
  200. data/lib/xmi/uml13/instanceclassifier.rb +0 -16
  201. data/lib/xmi/uml13/instancelink_end.rb +0 -16
  202. data/lib/xmi/uml13/instancemessage_instance.rb +0 -16
  203. data/lib/xmi/uml13/instancemessage_instance2.rb +0 -16
  204. data/lib/xmi/uml13/instancemessage_instance3.rb +0 -16
  205. data/lib/xmi/uml13/instanceslot.rb +0 -16
  206. data/lib/xmi/uml13/interaction.rb +0 -122
  207. data/lib/xmi/uml13/interactioncontext.rb +0 -16
  208. data/lib/xmi/uml13/interactionmessage.rb +0 -16
  209. data/lib/xmi/uml13/interface.rb +0 -194
  210. data/lib/xmi/uml13/link.rb +0 -122
  211. data/lib/xmi/uml13/link_end.rb +0 -129
  212. data/lib/xmi/uml13/link_endassociation_end.rb +0 -16
  213. data/lib/xmi/uml13/link_endinstance.rb +0 -16
  214. data/lib/xmi/uml13/link_endlink.rb +0 -16
  215. data/lib/xmi/uml13/link_object.rb +0 -155
  216. data/lib/xmi/uml13/linkassociation.rb +0 -16
  217. data/lib/xmi/uml13/linklink_role.rb +0 -16
  218. data/lib/xmi/uml13/local_invocation.rb +0 -148
  219. data/lib/xmi/uml13/mapping.rb +0 -31
  220. data/lib/xmi/uml13/mappingbody.rb +0 -18
  221. data/lib/xmi/uml13/message.rb +0 -154
  222. data/lib/xmi/uml13/message_instance.rb +0 -134
  223. data/lib/xmi/uml13/message_instanceargument.rb +0 -16
  224. data/lib/xmi/uml13/message_instancereceiver.rb +0 -16
  225. data/lib/xmi/uml13/message_instancesender.rb +0 -16
  226. data/lib/xmi/uml13/message_instancespecification.rb +0 -16
  227. data/lib/xmi/uml13/messageaction.rb +0 -16
  228. data/lib/xmi/uml13/messageactivator.rb +0 -16
  229. data/lib/xmi/uml13/messageinteraction.rb +0 -16
  230. data/lib/xmi/uml13/messagemessage.rb +0 -16
  231. data/lib/xmi/uml13/messagemessage2.rb +0 -16
  232. data/lib/xmi/uml13/messagepredecessor.rb +0 -16
  233. data/lib/xmi/uml13/messagereceiver.rb +0 -16
  234. data/lib/xmi/uml13/messagesender.rb +0 -16
  235. data/lib/xmi/uml13/method.rb +0 -150
  236. data/lib/xmi/uml13/methodbody.rb +0 -16
  237. data/lib/xmi/uml13/methodspecification.rb +0 -16
  238. data/lib/xmi/uml13/model.rb +0 -141
  239. data/lib/xmi/uml13/model_element.rb +0 -114
  240. data/lib/xmi/uml13/model_element_owns_diagramowned_diagram.rb +0 -16
  241. data/lib/xmi/uml13/model_elementbehavior.rb +0 -16
  242. data/lib/xmi/uml13/model_elementbinding.rb +0 -16
  243. data/lib/xmi/uml13/model_elementcollaboration.rb +0 -16
  244. data/lib/xmi/uml13/model_elementconstraint.rb +0 -16
  245. data/lib/xmi/uml13/model_elementelement_reference.rb +0 -16
  246. data/lib/xmi/uml13/model_elementimplementation.rb +0 -16
  247. data/lib/xmi/uml13/model_elementname.rb +0 -18
  248. data/lib/xmi/uml13/model_elementnamespace.rb +0 -16
  249. data/lib/xmi/uml13/model_elementpartition.rb +0 -16
  250. data/lib/xmi/uml13/model_elementpresentation.rb +0 -16
  251. data/lib/xmi/uml13/model_elementprovision.rb +0 -16
  252. data/lib/xmi/uml13/model_elementrequirement.rb +0 -16
  253. data/lib/xmi/uml13/model_elementstereotype.rb +0 -16
  254. data/lib/xmi/uml13/model_elementtagged_value.rb +0 -16
  255. data/lib/xmi/uml13/model_elementtemplate.rb +0 -16
  256. data/lib/xmi/uml13/model_elementtemplate_parameter.rb +0 -16
  257. data/lib/xmi/uml13/model_elementview.rb +0 -16
  258. data/lib/xmi/uml13/model_elementvisibility.rb +0 -14
  259. data/lib/xmi/uml13/model_management.rb +0 -35
  260. data/lib/xmi/uml13/multiplicity_range.rb +0 -36
  261. data/lib/xmi/uml13/multiplicity_rangelower.rb +0 -18
  262. data/lib/xmi/uml13/multiplicity_rangeupper.rb +0 -18
  263. data/lib/xmi/uml13/namespace.rb +0 -117
  264. data/lib/xmi/uml13/namespaceowned_element.rb +0 -268
  265. data/lib/xmi/uml13/node.rb +0 -199
  266. data/lib/xmi/uml13/nodecomponent.rb +0 -16
  267. data/lib/xmi/uml13/object.rb +0 -147
  268. data/lib/xmi/uml13/object_flow_state.rb +0 -158
  269. data/lib/xmi/uml13/object_flow_statetype_state.rb +0 -16
  270. data/lib/xmi/uml13/object_set_expression.rb +0 -36
  271. data/lib/xmi/uml13/operation.rb +0 -176
  272. data/lib/xmi/uml13/operationcollaboration.rb +0 -16
  273. data/lib/xmi/uml13/operationconcurrency.rb +0 -14
  274. data/lib/xmi/uml13/operationis_polymorphic.rb +0 -14
  275. data/lib/xmi/uml13/operationmethod.rb +0 -16
  276. data/lib/xmi/uml13/operationoccurrence.rb +0 -16
  277. data/lib/xmi/uml13/operationspecification.rb +0 -18
  278. data/lib/xmi/uml13/package.rb +0 -141
  279. data/lib/xmi/uml13/packageelement_reference.rb +0 -16
  280. data/lib/xmi/uml13/parameter.rb +0 -137
  281. data/lib/xmi/uml13/parameterbehavioral_feature.rb +0 -16
  282. data/lib/xmi/uml13/parameterdefault_value.rb +0 -28
  283. data/lib/xmi/uml13/parameterkind.rb +0 -14
  284. data/lib/xmi/uml13/parametersignal.rb +0 -16
  285. data/lib/xmi/uml13/parametertype.rb +0 -16
  286. data/lib/xmi/uml13/partition.rb +0 -124
  287. data/lib/xmi/uml13/partitionactivity_model.rb +0 -16
  288. data/lib/xmi/uml13/partitioncontents.rb +0 -16
  289. data/lib/xmi/uml13/presentation.rb +0 -42
  290. data/lib/xmi/uml13/presentationgeometry.rb +0 -16
  291. data/lib/xmi/uml13/presentationmodel.rb +0 -16
  292. data/lib/xmi/uml13/presentationstyle.rb +0 -16
  293. data/lib/xmi/uml13/presentationview_element.rb +0 -16
  294. data/lib/xmi/uml13/primitive.rb +0 -194
  295. data/lib/xmi/uml13/procedure_expression.rb +0 -36
  296. data/lib/xmi/uml13/pseudo_state.rb +0 -134
  297. data/lib/xmi/uml13/pseudo_statekind.rb +0 -14
  298. data/lib/xmi/uml13/reception.rb +0 -157
  299. data/lib/xmi/uml13/receptionis_polymorphic.rb +0 -14
  300. data/lib/xmi/uml13/receptionsignal.rb +0 -16
  301. data/lib/xmi/uml13/receptionspecification.rb +0 -18
  302. data/lib/xmi/uml13/refinement.rb +0 -140
  303. data/lib/xmi/uml13/refinementmapping.rb +0 -16
  304. data/lib/xmi/uml13/request.rb +0 -124
  305. data/lib/xmi/uml13/requestaction.rb +0 -16
  306. data/lib/xmi/uml13/requestmessage_instance.rb +0 -16
  307. data/lib/xmi/uml13/return_action.rb +0 -148
  308. data/lib/xmi/uml13/send_action.rb +0 -148
  309. data/lib/xmi/uml13/signal.rb +0 -165
  310. data/lib/xmi/uml13/signal_event.rb +0 -129
  311. data/lib/xmi/uml13/signal_eventsignal.rb +0 -16
  312. data/lib/xmi/uml13/signaloccurrence.rb +0 -16
  313. data/lib/xmi/uml13/signalparameter.rb +0 -16
  314. data/lib/xmi/uml13/signalreception.rb +0 -16
  315. data/lib/xmi/uml13/simple_state.rb +0 -153
  316. data/lib/xmi/uml13/state.rb +0 -153
  317. data/lib/xmi/uml13/state_machine.rb +0 -130
  318. data/lib/xmi/uml13/state_machinecontext.rb +0 -16
  319. data/lib/xmi/uml13/state_machines.rb +0 -83
  320. data/lib/xmi/uml13/state_machinesubmachine_state.rb +0 -16
  321. data/lib/xmi/uml13/state_machinetop.rb +0 -34
  322. data/lib/xmi/uml13/state_machinetransitions.rb +0 -16
  323. data/lib/xmi/uml13/state_vertex.rb +0 -129
  324. data/lib/xmi/uml13/state_vertexincoming.rb +0 -16
  325. data/lib/xmi/uml13/state_vertexoutgoing.rb +0 -16
  326. data/lib/xmi/uml13/state_vertexparent.rb +0 -16
  327. data/lib/xmi/uml13/stateclassifier_in_state.rb +0 -16
  328. data/lib/xmi/uml13/statedeferred_event.rb +0 -16
  329. data/lib/xmi/uml13/stateentry.rb +0 -16
  330. data/lib/xmi/uml13/stateexit.rb +0 -16
  331. data/lib/xmi/uml13/stateinternal_transition.rb +0 -16
  332. data/lib/xmi/uml13/statestate_machine.rb +0 -16
  333. data/lib/xmi/uml13/stereotype.rb +0 -163
  334. data/lib/xmi/uml13/stereotypebase_class.rb +0 -18
  335. data/lib/xmi/uml13/stereotypeextended_element.rb +0 -16
  336. data/lib/xmi/uml13/stereotypeicon.rb +0 -16
  337. data/lib/xmi/uml13/stereotyperequired_tag.rb +0 -16
  338. data/lib/xmi/uml13/stereotypestereotype_constraint.rb +0 -16
  339. data/lib/xmi/uml13/structural_feature.rb +0 -149
  340. data/lib/xmi/uml13/structural_featurechangeable.rb +0 -14
  341. data/lib/xmi/uml13/structural_featuremultiplicity.rb +0 -18
  342. data/lib/xmi/uml13/structural_featuretarget_scope.rb +0 -14
  343. data/lib/xmi/uml13/structural_featuretype.rb +0 -16
  344. data/lib/xmi/uml13/structure.rb +0 -194
  345. data/lib/xmi/uml13/submachine_state.rb +0 -152
  346. data/lib/xmi/uml13/submachine_statestate_machine.rb +0 -16
  347. data/lib/xmi/uml13/subsystem.rb +0 -198
  348. data/lib/xmi/uml13/subsystemis_instantiable.rb +0 -14
  349. data/lib/xmi/uml13/tagged_value.rb +0 -48
  350. data/lib/xmi/uml13/tagged_valuemodel_element.rb +0 -16
  351. data/lib/xmi/uml13/tagged_valuestereotype.rb +0 -16
  352. data/lib/xmi/uml13/tagged_valuetag.rb +0 -18
  353. data/lib/xmi/uml13/tagged_valuevalue.rb +0 -18
  354. data/lib/xmi/uml13/terminate_action.rb +0 -148
  355. data/lib/xmi/uml13/time_event.rb +0 -127
  356. data/lib/xmi/uml13/time_eventduration.rb +0 -16
  357. data/lib/xmi/uml13/time_expression.rb +0 -36
  358. data/lib/xmi/uml13/trace.rb +0 -137
  359. data/lib/xmi/uml13/transition.rb +0 -145
  360. data/lib/xmi/uml13/transitioneffect.rb +0 -16
  361. data/lib/xmi/uml13/transitionguard.rb +0 -16
  362. data/lib/xmi/uml13/transitionsource.rb +0 -16
  363. data/lib/xmi/uml13/transitionstate.rb +0 -16
  364. data/lib/xmi/uml13/transitionstatemachine.rb +0 -16
  365. data/lib/xmi/uml13/transitiontarget.rb +0 -16
  366. data/lib/xmi/uml13/transitiontrigger.rb +0 -16
  367. data/lib/xmi/uml13/uninterpreted_action.rb +0 -153
  368. data/lib/xmi/uml13/uninterpreted_actionbody.rb +0 -18
  369. data/lib/xmi/uml13/usage.rb +0 -137
  370. data/lib/xmi/uml13/use_case.rb +0 -199
  371. data/lib/xmi/uml13/use_case_instance.rb +0 -147
  372. data/lib/xmi/uml13/use_caseextension_point.rb +0 -18
  373. data/lib/xmi/uml13/use_cases.rb +0 -32
  374. data/lib/xmi/uml13/view_element.rb +0 -36
  375. data/lib/xmi/uml13/view_elementmodel.rb +0 -16
  376. data/lib/xmi/uml13/view_elementpresentation.rb +0 -16
  377. data/lib/xmi/uml13/xm_iextension.rb +0 -27
  378. data/lib/xmi/uml13/xm_ireference.rb +0 -17
  379. data/lib/xmi/uml13.rb +0 -368
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f0cb0851f52b18efcab9a97ee6787a82799446b120ba911020b782e34303104
4
- data.tar.gz: 4c2b976f39d3c270aa4cddbdcb4ef4c27e58a53cede30b864e48e3972dcaf368
3
+ metadata.gz: 3d7aab70974d7d4b208cb997049d1c03f8a2ec6680fbf3315ca8cf3f034ef90c
4
+ data.tar.gz: 5e27cde7e482acbf00591f6216161847f9e73dacaf3885c794acd6d982fe8fef
5
5
  SHA512:
6
- metadata.gz: 6bd6dd8e063b532e04316afc0a95bc7985d7505a7f94e5c2554450885e86b45a34f58f206dfeb1bff1b4962bfc6032fd02deb074fda7133aaa57527b65d4c24a
7
- data.tar.gz: 5d9a87db0164d03eae68b64de929c535e31c49c702f7c23abe73566feba8f9ca5e3457a81fc0721ee3b0200fee65aea2ad3192a97f935a3b24d0c19064911aaf
6
+ metadata.gz: 1dbec019dc36b1a0e174fe0712708b8f1e3c11bdbed28e5abd8812d62c9429c0b5d1673319b815b22c6050dc4e5eaa059c7cb595f545ccb04fe5d47bc6879508
7
+ data.tar.gz: '094a8476d95e174ef9889865e654435de13924efa497cd225247d50d7d245f13085e67dadc2a468d72ad5120b56ea9228b6b960cf8e93d6e6361a4c7482a2772'
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  .ruby-version
13
13
  .vscode
14
14
  Gemfile.lock
15
+ .DS_Store
data/.rubocop.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  AllCops:
2
2
  TargetRubyVersion: 3.0
3
3
  Exclude:
4
- - "lib/xmi/uml13/**/*.rb"
4
+ - "references/codes/**/*.rb"
5
5
  - "vendor/bundle/**/*"
6
6
 
7
7
  Style/StringLiterals:
data/README.adoc CHANGED
@@ -37,7 +37,7 @@ To convert XMI file into Ruby objects, run:
37
37
  ----
38
38
  xml = "path/to/your/file.xmi"
39
39
  xml_content = File.read(xml)
40
- xmi_root_model = Xmi::Sparx::SparxRoot2013.from_xml(xml_content)
40
+ xmi_root_model = Xmi::Sparx::SparxRoot.parse_xml(xml_content)
41
41
  ----
42
42
 
43
43
  This method takes the path to an XMI file and generate the Ruby objects.
@@ -52,12 +52,12 @@ Xmi::EaRoot.load_extension("path/to/your/extension.xml")
52
52
 
53
53
  xml = "path/to/your/file.xmi"
54
54
  xml_content = File.read(xml)
55
- xmi_root_model = Xmi::Sparx::SparxRoot2013.from_xml(xml_content)
55
+ xmi_root_model = Xmi::Sparx::SparxRoot.parse_xml(xml_content)
56
56
  ----
57
57
 
58
58
  `Xmi::EaRoot.load_extension` takes the path to an XML file and generate the
59
59
  Ruby classes and modules defined in XML file dynamically.
60
- Then, you can generate Ruby objects by `Xmi::Sparx::SparxRoot2013.from_xml`.
60
+ Then, you can generate Ruby objects by `Xmi::Sparx::SparxRoot.parse_xml`.
61
61
 
62
62
  === Output Classes and Modules Generated from Extension into Ruby Files
63
63
 
data/lib/xmi/ea_root.rb CHANGED
@@ -62,10 +62,8 @@ module Xmi
62
62
  def update_mappings(module_name)
63
63
  new_klasses = all_new_klasses(module_name)
64
64
  map_elements = construct_shale_xml_mappings(new_klasses, module_name)
65
- sparx_roots.each do |sparx_root|
66
- update_shale_attributes(new_klasses, sparx_root, module_name)
67
- update_shale_xml_mappings(map_elements, sparx_root)
68
- end
65
+ update_shale_attributes(new_klasses, Xmi::Sparx::SparxRoot, module_name)
66
+ update_shale_xml_mappings(map_elements, Xmi::Sparx::SparxRoot)
69
67
  end
70
68
 
71
69
  def construct_shale_xml_mappings(new_klasses, module_name) # rubocop:disable Metrics/MethodLength
@@ -109,10 +107,6 @@ module Xmi
109
107
  sparx_root.class_eval(&new_mapping)
110
108
  end
111
109
 
112
- def sparx_roots
113
- [Xmi::Sparx::SparxRoot, Xmi::Sparx::SparxRoot2013]
114
- end
115
-
116
110
  def all_new_klasses(module_name)
117
111
  Xmi::EaRoot.const_get(module_name).constants.select do |c|
118
112
  Xmi::EaRoot.const_get(module_name).const_get(c).is_a? Class
data/lib/xmi/root.rb CHANGED
@@ -23,28 +23,6 @@ module Xmi
23
23
  include RootAttributes
24
24
  attribute :model, Uml::UmlModel
25
25
 
26
- xml do
27
- root "XMI"
28
- namespace "http://www.omg.org/spec/XMI/20131001", "xmi"
29
-
30
- map_attribute "id", to: :id
31
- map_attribute "label", to: :label
32
- map_attribute "uuid", to: :uuid
33
- map_attribute "href", to: :href, namespace: nil, prefix: nil
34
- map_attribute "idref", to: :idref
35
- map_attribute "type", to: :type
36
-
37
- map_element "Documentation", to: :documentation
38
- map_element "Model", to: :model,
39
- namespace: "http://www.omg.org/spec/UML/20161101",
40
- prefix: "uml"
41
- end
42
- end
43
-
44
- class Root2013 < Shale::Mapper
45
- include RootAttributes
46
- attribute :model, Uml::UmlModel2013
47
-
48
26
  xml do
49
27
  root "XMI"
50
28
  namespace "http://www.omg.org/spec/XMI/20131001", "xmi"
data/lib/xmi/sparx.rb CHANGED
@@ -694,31 +694,9 @@ module Xmi
694
694
  end
695
695
  end
696
696
 
697
- class SparxPrimitiveTypes2013 < Shale::Mapper
698
- attribute :packaged_element, Uml::PackagedElement2013, collection: true
699
-
700
- xml do
701
- root "primitivetypes"
702
-
703
- map_element "packagedElement", to: :packaged_element
704
- end
705
- end
706
-
707
697
  class SparxProfiles < Shale::Mapper
708
698
  attribute :profile, Uml::Profile, collection: true
709
699
 
710
- xml do
711
- root "profiles"
712
-
713
- map_element "Profile", to: :profile,
714
- namespace: "http://www.omg.org/spec/UML/20161101",
715
- prefix: "uml"
716
- end
717
- end
718
-
719
- class SparxProfiles2013 < Shale::Mapper
720
- attribute :profile, Uml::Profile2013, collection: true
721
-
722
700
  xml do
723
701
  root "profiles"
724
702
 
@@ -843,7 +821,7 @@ module Xmi
843
821
  attribute :extender_id, Shale::Type::String
844
822
  attribute :elements, SparxElements
845
823
  attribute :connectors, SparxConnectors
846
- attribute :primitive_types, SparxPrimitiveTypes2013
824
+ attribute :primitive_types, SparxPrimitiveTypes
847
825
  attribute :diagrams, SparxDiagrams
848
826
  attribute :ea_stub, SparxEAStub, collection: true
849
827
  end
@@ -875,31 +853,6 @@ module Xmi
875
853
  end
876
854
  end
877
855
 
878
- class SparxExtension2013 < Shale::Mapper
879
- include SparxExtensionAttributes
880
- attribute :profiles, SparxProfiles2013
881
-
882
- xml do
883
- root "Extension"
884
-
885
- map_attribute "id", to: :id, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
886
- map_attribute "label", to: :label, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
887
- map_attribute "uuid", to: :uuid, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
888
- map_attribute "href", to: :href
889
- map_attribute "idref", to: :idref, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
890
- map_attribute "type", to: :type, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
891
- map_attribute "extender", to: :extender
892
- map_attribute "extenderID", to: :extender_id
893
-
894
- map_element "elements", to: :elements
895
- map_element "connectors", to: :connectors
896
- map_element "primitivetypes", to: :primitive_types
897
- map_element "profiles", to: :profiles
898
- map_element "diagrams", to: :diagrams
899
- map_element "EAStub", to: :ea_stub
900
- end
901
- end
902
-
903
856
  class SparxSysPhS < Shale::Mapper
904
857
  attribute :base_package, Shale::Type::String
905
858
  attribute :name, Shale::Type::String
@@ -991,72 +944,44 @@ module Xmi
991
944
  include SparxRootAttributes
992
945
  attribute :extension, SparxExtension
993
946
 
994
- @@default_mapping = <<-MAP # rubocop:disable Style/ClassVars
995
- root "XMI"
996
- namespace "http://www.omg.org/spec/XMI/20131001", "xmi"
947
+ class << self
948
+ def parse_xml(xml_content)
949
+ xml_content = fix_encoding(xml_content)
950
+ xml_content = replace_xmlns(xml_content)
951
+ xml_content = replace_relative_ns(xml_content)
997
952
 
998
- map_attribute "id", to: :id
999
- map_attribute "label", to: :label
1000
- map_attribute "uuid", to: :uuid
1001
- map_attribute "href", to: :href
1002
- map_attribute "idref", to: :idref
1003
- map_attribute "type", to: :type
953
+ from_xml(xml_content)
954
+ end
1004
955
 
1005
- map_element "Extension", to: :extension
1006
- map_element "publicationDate", to: :publication_date,
1007
- namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0",
1008
- prefix: "thecustomprofile"
1009
- map_element "edition", to: :edition,
1010
- namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0",
1011
- prefix: "thecustomprofile"
1012
- map_element "number", to: :number,
1013
- namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0",
1014
- prefix: "thecustomprofile"
1015
- map_element "yearVersion", to: :year_version,
1016
- namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0",
1017
- prefix: "thecustomprofile"
1018
- map_element "ModelicaParameter", to: :modelica_parameter,
1019
- namespace: "http://www.sparxsystems.com/profiles/SysPhS/1.0",
1020
- prefix: "SysPhS"
1021
- map_element "import", to: :eauml_import,
1022
- namespace: "http://www.sparxsystems.com/profiles/EAUML/1.0",
1023
- prefix: "EAUML"
1024
- map_element "ApplicationSchema", to: :gml_application_schema,
1025
- namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1026
- prefix: "GML"
1027
- map_element "CodeList", to: :gml_code_list,
1028
- namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1029
- prefix: "GML"
1030
- map_element "DataType", to: :gml_data_type,
1031
- namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1032
- prefix: "GML"
1033
- map_element "Union", to: :gml_union,
1034
- namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1035
- prefix: "GML"
1036
- map_element "Enumeration", to: :gml_enumeration,
1037
- namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1038
- prefix: "GML"
1039
- map_element "Type", to: :gml_type,
1040
- namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1041
- prefix: "GML"
1042
- map_element "FeatureType", to: :gml_feature_type,
1043
- namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1044
- prefix: "GML"
1045
- map_element "property", to: :gml_property,
1046
- namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1047
- prefix: "GML"
1048
- MAP
956
+ private
1049
957
 
1050
- @@mapping ||= @@default_mapping # rubocop:disable Style/ClassVars
958
+ def fix_encoding(xml_content)
959
+ return xml_content if xml_content.valid_encoding?
1051
960
 
1052
- xml do
1053
- eval Xmi::Sparx::SparxRoot.class_variable_get("@@mapping") # rubocop:disable Security/Eval
1054
- end
1055
- end
961
+ xml_content
962
+ .encode("UTF-16be", invalid: :replace, replace: "?")
963
+ .encode("UTF-8")
964
+ end
1056
965
 
1057
- class SparxRoot2013 < Root2013
1058
- include SparxRootAttributes
1059
- attribute :extension, SparxExtension2013
966
+ def replace_xmlns(xml_content)
967
+ xml_content
968
+ .gsub(%r{xmlns:xmi="http://www.omg.org/spec/XMI/\d{8}},
969
+ "xmlns:xmi=\"http://www.omg.org/spec/XMI/20131001")
970
+ .gsub(%r{xmlns:uml="http://www.omg.org/spec/UML/\d{8}},
971
+ "xmlns:uml=\"http://www.omg.org/spec/UML/20131001")
972
+ .gsub(%r{xmlns:umldc="http://www.omg.org/spec/UML/\d{8}},
973
+ "xmlns:umldc=\"http://www.omg.org/spec/UML/20131001")
974
+ .gsub(%r{xmlns:umldi="http://www.omg.org/spec/UML/\d{8}},
975
+ "xmlns:umldi=\"http://www.omg.org/spec/UML/20131001")
976
+ end
977
+
978
+ def replace_relative_ns(xml_content)
979
+ xml_content.gsub(
980
+ /<(.*)xmlns="(.*)" targetNamespace="(.*)"(.*)>/,
981
+ '<\1xmlns="\3" targetNamespace="\3"\4>'
982
+ )
983
+ end
984
+ end
1060
985
 
1061
986
  @@default_mapping = <<-MAP # rubocop:disable Style/ClassVars
1062
987
  root "XMI"
@@ -1117,7 +1042,7 @@ module Xmi
1117
1042
  @@mapping ||= @@default_mapping # rubocop:disable Style/ClassVars
1118
1043
 
1119
1044
  xml do
1120
- eval Xmi::Sparx::SparxRoot2013.class_variable_get("@@mapping") # rubocop:disable Security/Eval
1045
+ eval Xmi::Sparx::SparxRoot.class_variable_get("@@mapping") # rubocop:disable Security/Eval
1121
1046
  end
1122
1047
  end
1123
1048
  end
data/lib/xmi/uml.rb CHANGED
@@ -53,24 +53,6 @@ module Xmi
53
53
  class OwnedEnd < Shale::Mapper
54
54
  include OwnedEndAttributes
55
55
 
56
- xml do
57
- root "ownedEnd"
58
-
59
- map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
60
- map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
61
- map_attribute "association", to: :association
62
- map_attribute "name", to: :name
63
- map_attribute "memberEnd", to: :member_end
64
- map_attribute "type", to: :uml_type
65
- map_attribute "lower", to: :lower
66
- map_attribute "upper", to: :upper
67
- map_attribute "isComposite", to: :is_composite
68
- end
69
- end
70
-
71
- class OwnedEnd2013 < Shale::Mapper
72
- include OwnedEndAttributes
73
-
74
56
  xml do
75
57
  root "ownedEnd"
76
58
 
@@ -155,24 +137,6 @@ module Xmi
155
137
  class OwnedAttribute < Shale::Mapper
156
138
  include OwnedAttributeAttributes
157
139
 
158
- xml do
159
- root "ownedAttribute"
160
-
161
- map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
162
- map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
163
- map_attribute "association", to: :association
164
- map_attribute "name", to: :name
165
- map_attribute "isDerived", to: :is_derived
166
-
167
- map_element "type", to: :uml_type
168
- map_element "upperValue", to: :upper_value
169
- map_element "lowerValue", to: :lower_value
170
- end
171
- end
172
-
173
- class OwnedAttribute2013 < Shale::Mapper
174
- include OwnedAttributeAttributes
175
-
176
140
  xml do
177
141
  root "ownedAttribute"
178
142
 
@@ -272,25 +236,6 @@ module Xmi
272
236
  class OwnedComment < Shale::Mapper
273
237
  include OwnedCommentAttributes
274
238
 
275
- xml do
276
- root "ownedComment"
277
-
278
- map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
279
- map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
280
- map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
281
- map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
282
- map_attribute "name", to: :name
283
- map_attribute "body", to: :body_attribute
284
- map_attribute "annotatedElement", to: :annotated_attribute
285
-
286
- map_element "annotatedElement", to: :annotated_element, prefix: nil, namespace: nil
287
- map_element "body", to: :body_element
288
- end
289
- end
290
-
291
- class OwnedComment2013 < Shale::Mapper
292
- include OwnedCommentAttributes
293
-
294
239
  xml do
295
240
  root "ownedComment"
296
241
 
@@ -320,18 +265,6 @@ module Xmi
320
265
  class AssociationGeneralization < Shale::Mapper
321
266
  include AssociationGeneralizationAttributes
322
267
 
323
- xml do
324
- root "generalization"
325
-
326
- map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
327
- map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
328
- map_attribute "general", to: :general
329
- end
330
- end
331
-
332
- class AssociationGeneralization2013 < Shale::Mapper
333
- include AssociationGeneralizationAttributes
334
-
335
268
  xml do
336
269
  root "generalization"
337
270
 
@@ -367,37 +300,6 @@ module Xmi
367
300
  attribute :owned_comment, OwnedComment, collection: true
368
301
  attribute :generalization, AssociationGeneralization, collection: true
369
302
 
370
- xml do
371
- root "packagedElement"
372
-
373
- map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
374
- map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
375
- map_attribute "name", to: :name
376
- map_attribute "memberEnd", to: :member_end
377
-
378
- # EA specific
379
- map_attribute "supplier", to: :supplier
380
- map_attribute "client", to: :client
381
-
382
- map_element "generalization", to: :generalization
383
- map_element "ownedComment", to: :owned_comment
384
- map_element "ownedEnd", to: :owned_end
385
- map_element "ownedLiteral", to: :owned_literal
386
- map_element "ownedAttribute", to: :owned_attribute
387
- map_element "ownedOperation", to: :owned_operation
388
- map_element "packagedElement", to: :packaged_element
389
- map_element "memberEnd", to: :member_ends
390
- end
391
- end
392
-
393
- class PackagedElement2013 < Shale::Mapper
394
- include PackagedElementAttributes
395
- attribute :packaged_element, PackagedElement2013, collection: true
396
- attribute :owned_end, OwnedEnd2013, collection: true
397
- attribute :owned_attribute, OwnedAttribute2013, collection: true
398
- attribute :owned_comment, OwnedComment2013, collection: true
399
- attribute :generalization, AssociationGeneralization2013, collection: true
400
-
401
303
  xml do
402
304
  root "packagedElement"
403
305
 
@@ -499,22 +401,6 @@ module Xmi
499
401
  class Diagram < Shale::Mapper
500
402
  include DiagramAttributes
501
403
 
502
- xml do
503
- root "Diagram"
504
- namespace "http://www.omg.org/spec/UML/20161101/UMLDI", "umldi"
505
-
506
- map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
507
- map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
508
- map_attribute "isFrame", to: :is_frame
509
- map_attribute "modelElement", to: :model_element
510
-
511
- map_element "ownedElement", to: :owned_element, namespace: nil, prefix: nil
512
- end
513
- end
514
-
515
- class Diagram2013 < Shale::Mapper
516
- include DiagramAttributes
517
-
518
404
  xml do
519
405
  root "Diagram"
520
406
  namespace "http://www.omg.org/spec/UML/20131001/UMLDI", "umldi"
@@ -577,19 +463,6 @@ module Xmi
577
463
  class PackageImport < Shale::Mapper
578
464
  include PackageImportAttributes
579
465
 
580
- xml do
581
- root "packageImport"
582
-
583
- map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
584
- map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
585
-
586
- map_element "importedPackage", to: :imported_package, namespace: nil, prefix: nil
587
- end
588
- end
589
-
590
- class PackageImport2013 < Shale::Mapper
591
- include PackageImportAttributes
592
-
593
466
  xml do
594
467
  root "packageImport"
595
468
 
@@ -612,40 +485,20 @@ module Xmi
612
485
 
613
486
  class UmlModel < Shale::Mapper
614
487
  include UmlModelAttributes
615
- attribute :packaged_element, PackagedElement2013, collection: true
616
- attribute :package_import, PackageImport2013, collection: true
488
+ attribute :packaged_element, PackagedElement, collection: true
489
+ attribute :package_import, PackageImport, collection: true
617
490
  attribute :diagram, Diagram
618
491
 
619
492
  xml do
620
493
  root "Model"
621
- namespace "http://www.omg.org/spec/UML/20161101", "uml"
494
+ namespace "http://www.omg.org/spec/UML/20131001", "uml"
622
495
 
623
496
  map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
624
497
  map_attribute "name", to: :name
625
498
 
626
499
  map_element "packageImport", to: :package_import, namespace: nil, prefix: nil
627
500
  map_element "packagedElement", to: :packaged_element, namespace: nil, prefix: nil
628
- map_element "Diagram", to: :diagram, namespace: "http://www.omg.org/spec/UML/20161101/UMLDI", prefix: "umldi"
629
- map_element "profileApplication", to: :profile_application, namespace: nil, prefix: nil
630
- end
631
- end
632
-
633
- class UmlModel2013 < Shale::Mapper
634
- include UmlModelAttributes
635
- attribute :packaged_element, PackagedElement2013, collection: true
636
- attribute :package_import, PackageImport2013, collection: true
637
- attribute :diagram, Diagram2013
638
-
639
- xml do
640
- root "Model"
641
- namespace "http://www.omg.org/spec/UML/20161101", "uml"
642
-
643
- map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
644
- map_attribute "name", to: :name
645
-
646
- map_element "packageImport", to: :package_import, namespace: nil, prefix: nil
647
- map_element "packagedElement", to: :packaged_element, namespace: nil, prefix: nil
648
- map_element "Diagram", to: :diagram, namespace: "http://www.omg.org/spec/UML/20161101/UMLDI", prefix: "umldi"
501
+ map_element "Diagram", to: :diagram, namespace: "http://www.omg.org/spec/UML/20131001/UMLDI", prefix: "umldi"
649
502
  map_element "profileApplication", to: :profile_application, namespace: nil, prefix: nil
650
503
  end
651
504
  end
@@ -672,24 +525,6 @@ module Xmi
672
525
  include ProfileAttributes
673
526
  attribute :owned_comment, OwnedComment, collection: true
674
527
 
675
- xml do
676
- root "Profile"
677
-
678
- map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
679
- map_attribute "name", to: :name
680
- map_attribute "metamodelReference", to: :metamodel_reference
681
- map_attribute "nsPrefix", to: :ns_prefix
682
-
683
- map_element "ownedComment", to: :owned_comment
684
- map_element "packageImport", to: :package_import, namespace: nil, prefix: nil
685
- map_element "packagedElement", to: :packaged_element
686
- end
687
- end
688
-
689
- class Profile2013 < Shale::Mapper
690
- include ProfileAttributes
691
- attribute :owned_comment, OwnedComment2013, collection: true
692
-
693
528
  xml do
694
529
  root "Profile"
695
530
 
data/lib/xmi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xmi
4
- VERSION = "0.3.9"
4
+ VERSION = "0.3.10"
5
5
  end
data/lib/xmi.rb CHANGED
@@ -33,4 +33,3 @@ require_relative "xmi/ea_root"
33
33
  require_relative "xmi/uml"
34
34
  require_relative "xmi/root"
35
35
  require_relative "xmi/sparx"
36
- # require_relative "xmi/uml13"