xmi 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (384) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +14 -0
  3. data/.github/workflows/release.yml +22 -0
  4. data/.rubocop.yml +6 -0
  5. data/README.adoc +87 -2
  6. data/lib/xmi/documentation.rb +6 -6
  7. data/lib/xmi/ea_root.rb +316 -0
  8. data/lib/xmi/extension.rb +5 -5
  9. data/lib/xmi/root.rb +43 -20
  10. data/lib/xmi/root13.rb +0 -1
  11. data/lib/xmi/sparx.rb +368 -154
  12. data/lib/xmi/uml.rb +422 -131
  13. data/lib/xmi/uml13/abstraction.rb +90 -88
  14. data/lib/xmi/uml13/action.rb +86 -84
  15. data/lib/xmi/uml13/action_sequence.rb +76 -74
  16. data/lib/xmi/uml13/action_sequenceaction.rb +23 -21
  17. data/lib/xmi/uml13/action_sequencestate.rb +7 -5
  18. data/lib/xmi/uml13/action_sequencestate2.rb +7 -5
  19. data/lib/xmi/uml13/action_sequencetransition.rb +7 -5
  20. data/lib/xmi/uml13/action_state.rb +89 -87
  21. data/lib/xmi/uml13/actionaction_sequence.rb +7 -5
  22. data/lib/xmi/uml13/actionactual_argument.rb +7 -5
  23. data/lib/xmi/uml13/actionis_asynchronous.rb +6 -4
  24. data/lib/xmi/uml13/actionmessage.rb +7 -5
  25. data/lib/xmi/uml13/actionrecurrence.rb +15 -13
  26. data/lib/xmi/uml13/actionrequest.rb +7 -5
  27. data/lib/xmi/uml13/actionscript.rb +7 -5
  28. data/lib/xmi/uml13/actiontarget.rb +7 -5
  29. data/lib/xmi/uml13/activity_model.rb +77 -75
  30. data/lib/xmi/uml13/activity_modelpartition.rb +7 -5
  31. data/lib/xmi/uml13/activity_state.rb +88 -86
  32. data/lib/xmi/uml13/actor.rb +113 -111
  33. data/lib/xmi/uml13/argument.rb +17 -15
  34. data/lib/xmi/uml13/argumentaction.rb +7 -5
  35. data/lib/xmi/uml13/argumentvalue.rb +15 -13
  36. data/lib/xmi/uml13/association.rb +90 -88
  37. data/lib/xmi/uml13/association_class.rb +120 -118
  38. data/lib/xmi/uml13/association_end.rb +100 -98
  39. data/lib/xmi/uml13/association_end_role.rb +106 -104
  40. data/lib/xmi/uml13/association_end_roleassociation_role.rb +7 -5
  41. data/lib/xmi/uml13/association_end_rolebase.rb +7 -5
  42. data/lib/xmi/uml13/association_endaggregation.rb +6 -4
  43. data/lib/xmi/uml13/association_endassociation.rb +7 -5
  44. data/lib/xmi/uml13/association_endassociation_end_role.rb +7 -5
  45. data/lib/xmi/uml13/association_endchangeable.rb +6 -4
  46. data/lib/xmi/uml13/association_endis_navigable.rb +6 -4
  47. data/lib/xmi/uml13/association_endis_ordered.rb +6 -4
  48. data/lib/xmi/uml13/association_endlink_end.rb +7 -5
  49. data/lib/xmi/uml13/association_endmultiplicity.rb +7 -5
  50. data/lib/xmi/uml13/association_endqualifier.rb +7 -5
  51. data/lib/xmi/uml13/association_endspecification.rb +7 -5
  52. data/lib/xmi/uml13/association_endtarget_scope.rb +6 -4
  53. data/lib/xmi/uml13/association_endtype.rb +7 -5
  54. data/lib/xmi/uml13/association_role.rb +95 -93
  55. data/lib/xmi/uml13/association_rolebase.rb +7 -5
  56. data/lib/xmi/uml13/association_rolemultiplicity.rb +7 -5
  57. data/lib/xmi/uml13/association_rolenamespace.rb +7 -5
  58. data/lib/xmi/uml13/associationassociation_end.rb +7 -5
  59. data/lib/xmi/uml13/associationconnection.rb +9 -7
  60. data/lib/xmi/uml13/associationlink.rb +7 -5
  61. data/lib/xmi/uml13/attribute.rb +94 -92
  62. data/lib/xmi/uml13/attribute_link.rb +74 -72
  63. data/lib/xmi/uml13/attribute_linkattribute.rb +7 -5
  64. data/lib/xmi/uml13/attribute_linkinstance.rb +7 -5
  65. data/lib/xmi/uml13/attribute_linkvalue.rb +7 -5
  66. data/lib/xmi/uml13/attributeassociation_end.rb +7 -5
  67. data/lib/xmi/uml13/attributeattribute_link.rb +7 -5
  68. data/lib/xmi/uml13/attributeinitial_value.rb +15 -13
  69. data/lib/xmi/uml13/auxiliary_elements.rb +28 -26
  70. data/lib/xmi/uml13/behavioral_elements.rb +18 -16
  71. data/lib/xmi/uml13/behavioral_feature.rb +82 -80
  72. data/lib/xmi/uml13/behavioral_featureis_query.rb +6 -4
  73. data/lib/xmi/uml13/behavioral_featureparameter.rb +7 -5
  74. data/lib/xmi/uml13/behavioral_featureraised_exception.rb +7 -5
  75. data/lib/xmi/uml13/binding.rb +81 -79
  76. data/lib/xmi/uml13/bindingargument.rb +175 -173
  77. data/lib/xmi/uml13/boolean_expression.rb +18 -16
  78. data/lib/xmi/uml13/call_action.rb +89 -87
  79. data/lib/xmi/uml13/call_actionmode.rb +6 -4
  80. data/lib/xmi/uml13/call_event.rb +74 -72
  81. data/lib/xmi/uml13/call_eventoperation.rb +7 -5
  82. data/lib/xmi/uml13/change_event.rb +73 -71
  83. data/lib/xmi/uml13/change_eventchange_expression.rb +7 -5
  84. data/lib/xmi/uml13/class.rb +116 -114
  85. data/lib/xmi/uml13/classifier.rb +113 -111
  86. data/lib/xmi/uml13/classifier_in_state.rb +122 -120
  87. data/lib/xmi/uml13/classifier_in_statein_state.rb +7 -5
  88. data/lib/xmi/uml13/classifier_in_stateobject_flow_state.rb +7 -5
  89. data/lib/xmi/uml13/classifier_in_statetype.rb +7 -5
  90. data/lib/xmi/uml13/classifier_role.rb +130 -128
  91. data/lib/xmi/uml13/classifier_roleassociation_end_role.rb +7 -5
  92. data/lib/xmi/uml13/classifier_roleavailable_feature.rb +7 -5
  93. data/lib/xmi/uml13/classifier_rolebase.rb +7 -5
  94. data/lib/xmi/uml13/classifier_rolemessage.rb +7 -5
  95. data/lib/xmi/uml13/classifier_rolemessage2.rb +7 -5
  96. data/lib/xmi/uml13/classifier_rolemultiplicity.rb +7 -5
  97. data/lib/xmi/uml13/classifier_rolenamespace.rb +7 -5
  98. data/lib/xmi/uml13/classifierassociation_end.rb +7 -5
  99. data/lib/xmi/uml13/classifierclassifier_in_state.rb +7 -5
  100. data/lib/xmi/uml13/classifierclassifier_role.rb +7 -5
  101. data/lib/xmi/uml13/classifiercollaboration.rb +7 -5
  102. data/lib/xmi/uml13/classifiercreate_action.rb +7 -5
  103. data/lib/xmi/uml13/classifierfeature.rb +19 -17
  104. data/lib/xmi/uml13/classifierinstance.rb +7 -5
  105. data/lib/xmi/uml13/classifierparameter.rb +7 -5
  106. data/lib/xmi/uml13/classifierparticipant.rb +7 -5
  107. data/lib/xmi/uml13/classifierrealization.rb +7 -5
  108. data/lib/xmi/uml13/classifierspecification.rb +7 -5
  109. data/lib/xmi/uml13/classifierstructural_feature.rb +7 -5
  110. data/lib/xmi/uml13/classis_active.rb +6 -4
  111. data/lib/xmi/uml13/collaboration.rb +78 -76
  112. data/lib/xmi/uml13/collaborationconstraining_element.rb +7 -5
  113. data/lib/xmi/uml13/collaborationinteraction.rb +7 -5
  114. data/lib/xmi/uml13/collaborationrepresented_classifier.rb +7 -5
  115. data/lib/xmi/uml13/collaborationrepresented_operation.rb +7 -5
  116. data/lib/xmi/uml13/collaborations.rb +22 -20
  117. data/lib/xmi/uml13/comment.rb +65 -63
  118. data/lib/xmi/uml13/common_behavior.rb +56 -54
  119. data/lib/xmi/uml13/component.rb +119 -117
  120. data/lib/xmi/uml13/componentdeployment.rb +7 -5
  121. data/lib/xmi/uml13/componentimplements.rb +7 -5
  122. data/lib/xmi/uml13/composite_state.rb +94 -92
  123. data/lib/xmi/uml13/composite_stateis_concurrent.rb +6 -4
  124. data/lib/xmi/uml13/composite_statesubstate.rb +23 -21
  125. data/lib/xmi/uml13/constraint.rb +73 -71
  126. data/lib/xmi/uml13/constraintbody.rb +7 -5
  127. data/lib/xmi/uml13/constraintconstrained_element.rb +7 -5
  128. data/lib/xmi/uml13/constraintconstrained_stereotype.rb +7 -5
  129. data/lib/xmi/uml13/core.rb +52 -50
  130. data/lib/xmi/uml13/create_action.rb +89 -87
  131. data/lib/xmi/uml13/create_actioninstantiation.rb +7 -5
  132. data/lib/xmi/uml13/data_type.rb +113 -111
  133. data/lib/xmi/uml13/data_types.rb +36 -34
  134. data/lib/xmi/uml13/data_value.rb +85 -83
  135. data/lib/xmi/uml13/dependency.rb +79 -77
  136. data/lib/xmi/uml13/dependencyclient.rb +7 -5
  137. data/lib/xmi/uml13/dependencydescription.rb +7 -5
  138. data/lib/xmi/uml13/dependencyowning_dependency.rb +7 -5
  139. data/lib/xmi/uml13/dependencysub_dependencies.rb +15 -13
  140. data/lib/xmi/uml13/dependencysupplier.rb +7 -5
  141. data/lib/xmi/uml13/destroy_action.rb +86 -84
  142. data/lib/xmi/uml13/diagram.rb +25 -23
  143. data/lib/xmi/uml13/diagram_compositions.rb +7 -5
  144. data/lib/xmi/uml13/diagram_element.rb +20 -18
  145. data/lib/xmi/uml13/diagram_element_properties.rb +9 -7
  146. data/lib/xmi/uml13/diagram_elementdiagram.rb +7 -5
  147. data/lib/xmi/uml13/diagram_elementgeometry.rb +7 -5
  148. data/lib/xmi/uml13/diagram_elementstyle.rb +7 -5
  149. data/lib/xmi/uml13/diagram_properties.rb +13 -11
  150. data/lib/xmi/uml13/diagramdiagram_type.rb +7 -5
  151. data/lib/xmi/uml13/diagramelement.rb +7 -5
  152. data/lib/xmi/uml13/diagramname.rb +7 -5
  153. data/lib/xmi/uml13/diagramowner.rb +157 -155
  154. data/lib/xmi/uml13/diagramstyle.rb +7 -5
  155. data/lib/xmi/uml13/diagramtool_name.rb +7 -5
  156. data/lib/xmi/uml13/element.rb +12 -10
  157. data/lib/xmi/uml13/element_reference.rb +24 -22
  158. data/lib/xmi/uml13/element_referencealias.rb +7 -5
  159. data/lib/xmi/uml13/element_referencepackage.rb +7 -5
  160. data/lib/xmi/uml13/element_referencereferenced_element.rb +7 -5
  161. data/lib/xmi/uml13/element_referencevisibility.rb +6 -4
  162. data/lib/xmi/uml13/enumeration.rb +115 -113
  163. data/lib/xmi/uml13/enumeration_literal.rb +18 -16
  164. data/lib/xmi/uml13/enumeration_literalenumeration.rb +7 -5
  165. data/lib/xmi/uml13/enumeration_literalname.rb +7 -5
  166. data/lib/xmi/uml13/enumerationliteral.rb +7 -5
  167. data/lib/xmi/uml13/event.rb +71 -69
  168. data/lib/xmi/uml13/eventstate.rb +7 -5
  169. data/lib/xmi/uml13/eventtransition.rb +7 -5
  170. data/lib/xmi/uml13/exception.rb +99 -97
  171. data/lib/xmi/uml13/exceptioncontext.rb +7 -5
  172. data/lib/xmi/uml13/expression.rb +18 -16
  173. data/lib/xmi/uml13/expressionbody.rb +7 -5
  174. data/lib/xmi/uml13/expressionlanguage.rb +7 -5
  175. data/lib/xmi/uml13/extension_mechanisms.rb +14 -12
  176. data/lib/xmi/uml13/feature.rb +74 -72
  177. data/lib/xmi/uml13/featureclassifier_role.rb +7 -5
  178. data/lib/xmi/uml13/featureowner.rb +7 -5
  179. data/lib/xmi/uml13/featureowner_scope.rb +6 -4
  180. data/lib/xmi/uml13/foundation.rb +18 -16
  181. data/lib/xmi/uml13/generalizable_element.rb +82 -80
  182. data/lib/xmi/uml13/generalizable_elementgeneralization.rb +7 -5
  183. data/lib/xmi/uml13/generalizable_elementis_abstract.rb +6 -4
  184. data/lib/xmi/uml13/generalizable_elementis_leaf.rb +6 -4
  185. data/lib/xmi/uml13/generalizable_elementis_root.rb +6 -4
  186. data/lib/xmi/uml13/generalizable_elementspecialization.rb +7 -5
  187. data/lib/xmi/uml13/generalization.rb +74 -72
  188. data/lib/xmi/uml13/generalizationdiscriminator.rb +7 -5
  189. data/lib/xmi/uml13/generalizationsubtype.rb +7 -5
  190. data/lib/xmi/uml13/generalizationsupertype.rb +7 -5
  191. data/lib/xmi/uml13/geometry.rb +15 -13
  192. data/lib/xmi/uml13/geometrybody.rb +7 -5
  193. data/lib/xmi/uml13/graphic_marker.rb +15 -13
  194. data/lib/xmi/uml13/graphic_markerbody.rb +7 -5
  195. data/lib/xmi/uml13/guard.rb +70 -68
  196. data/lib/xmi/uml13/guardexpression.rb +7 -5
  197. data/lib/xmi/uml13/guardtransition.rb +7 -5
  198. data/lib/xmi/uml13/instance.rb +85 -83
  199. data/lib/xmi/uml13/instanceattribute_link.rb +7 -5
  200. data/lib/xmi/uml13/instanceclassifier.rb +7 -5
  201. data/lib/xmi/uml13/instancelink_end.rb +7 -5
  202. data/lib/xmi/uml13/instancemessage_instance.rb +7 -5
  203. data/lib/xmi/uml13/instancemessage_instance2.rb +7 -5
  204. data/lib/xmi/uml13/instancemessage_instance3.rb +7 -5
  205. data/lib/xmi/uml13/instanceslot.rb +7 -5
  206. data/lib/xmi/uml13/interaction.rb +70 -68
  207. data/lib/xmi/uml13/interactioncontext.rb +7 -5
  208. data/lib/xmi/uml13/interactionmessage.rb +7 -5
  209. data/lib/xmi/uml13/interface.rb +113 -111
  210. data/lib/xmi/uml13/link.rb +70 -68
  211. data/lib/xmi/uml13/link_end.rb +74 -72
  212. data/lib/xmi/uml13/link_endassociation_end.rb +7 -5
  213. data/lib/xmi/uml13/link_endinstance.rb +7 -5
  214. data/lib/xmi/uml13/link_endlink.rb +7 -5
  215. data/lib/xmi/uml13/link_object.rb +90 -88
  216. data/lib/xmi/uml13/linkassociation.rb +7 -5
  217. data/lib/xmi/uml13/linklink_role.rb +7 -5
  218. data/lib/xmi/uml13/local_invocation.rb +86 -84
  219. data/lib/xmi/uml13/mapping.rb +15 -13
  220. data/lib/xmi/uml13/mappingbody.rb +7 -5
  221. data/lib/xmi/uml13/message.rb +89 -87
  222. data/lib/xmi/uml13/message_instance.rb +77 -75
  223. data/lib/xmi/uml13/message_instanceargument.rb +7 -5
  224. data/lib/xmi/uml13/message_instancereceiver.rb +7 -5
  225. data/lib/xmi/uml13/message_instancesender.rb +7 -5
  226. data/lib/xmi/uml13/message_instancespecification.rb +7 -5
  227. data/lib/xmi/uml13/messageaction.rb +7 -5
  228. data/lib/xmi/uml13/messageactivator.rb +7 -5
  229. data/lib/xmi/uml13/messageinteraction.rb +7 -5
  230. data/lib/xmi/uml13/messagemessage.rb +7 -5
  231. data/lib/xmi/uml13/messagemessage2.rb +7 -5
  232. data/lib/xmi/uml13/messagepredecessor.rb +7 -5
  233. data/lib/xmi/uml13/messagereceiver.rb +7 -5
  234. data/lib/xmi/uml13/messagesender.rb +7 -5
  235. data/lib/xmi/uml13/method.rb +87 -85
  236. data/lib/xmi/uml13/methodbody.rb +7 -5
  237. data/lib/xmi/uml13/methodspecification.rb +7 -5
  238. data/lib/xmi/uml13/model.rb +81 -79
  239. data/lib/xmi/uml13/model_element.rb +65 -63
  240. data/lib/xmi/uml13/model_element_owns_diagramowned_diagram.rb +7 -5
  241. data/lib/xmi/uml13/model_elementbehavior.rb +7 -5
  242. data/lib/xmi/uml13/model_elementbinding.rb +7 -5
  243. data/lib/xmi/uml13/model_elementcollaboration.rb +7 -5
  244. data/lib/xmi/uml13/model_elementconstraint.rb +7 -5
  245. data/lib/xmi/uml13/model_elementelement_reference.rb +7 -5
  246. data/lib/xmi/uml13/model_elementimplementation.rb +7 -5
  247. data/lib/xmi/uml13/model_elementname.rb +7 -5
  248. data/lib/xmi/uml13/model_elementnamespace.rb +7 -5
  249. data/lib/xmi/uml13/model_elementpartition.rb +7 -5
  250. data/lib/xmi/uml13/model_elementpresentation.rb +7 -5
  251. data/lib/xmi/uml13/model_elementprovision.rb +7 -5
  252. data/lib/xmi/uml13/model_elementrequirement.rb +7 -5
  253. data/lib/xmi/uml13/model_elementstereotype.rb +7 -5
  254. data/lib/xmi/uml13/model_elementtagged_value.rb +7 -5
  255. data/lib/xmi/uml13/model_elementtemplate.rb +7 -5
  256. data/lib/xmi/uml13/model_elementtemplate_parameter.rb +7 -5
  257. data/lib/xmi/uml13/model_elementview.rb +7 -5
  258. data/lib/xmi/uml13/model_elementvisibility.rb +6 -4
  259. data/lib/xmi/uml13/model_management.rb +18 -16
  260. data/lib/xmi/uml13/multiplicity_range.rb +18 -16
  261. data/lib/xmi/uml13/multiplicity_rangelower.rb +7 -5
  262. data/lib/xmi/uml13/multiplicity_rangeupper.rb +7 -5
  263. data/lib/xmi/uml13/namespace.rb +67 -65
  264. data/lib/xmi/uml13/namespaceowned_element.rb +175 -173
  265. data/lib/xmi/uml13/node.rb +116 -114
  266. data/lib/xmi/uml13/nodecomponent.rb +7 -5
  267. data/lib/xmi/uml13/object.rb +85 -83
  268. data/lib/xmi/uml13/object_flow_state.rb +92 -90
  269. data/lib/xmi/uml13/object_flow_statetype_state.rb +7 -5
  270. data/lib/xmi/uml13/object_set_expression.rb +18 -16
  271. data/lib/xmi/uml13/operation.rb +102 -100
  272. data/lib/xmi/uml13/operationcollaboration.rb +7 -5
  273. data/lib/xmi/uml13/operationconcurrency.rb +6 -4
  274. data/lib/xmi/uml13/operationis_polymorphic.rb +6 -4
  275. data/lib/xmi/uml13/operationmethod.rb +7 -5
  276. data/lib/xmi/uml13/operationoccurrence.rb +7 -5
  277. data/lib/xmi/uml13/operationspecification.rb +7 -5
  278. data/lib/xmi/uml13/package.rb +81 -79
  279. data/lib/xmi/uml13/packageelement_reference.rb +7 -5
  280. data/lib/xmi/uml13/parameter.rb +79 -77
  281. data/lib/xmi/uml13/parameterbehavioral_feature.rb +7 -5
  282. data/lib/xmi/uml13/parameterdefault_value.rb +15 -13
  283. data/lib/xmi/uml13/parameterkind.rb +6 -4
  284. data/lib/xmi/uml13/parametersignal.rb +7 -5
  285. data/lib/xmi/uml13/parametertype.rb +7 -5
  286. data/lib/xmi/uml13/partition.rb +71 -69
  287. data/lib/xmi/uml13/partitionactivity_model.rb +7 -5
  288. data/lib/xmi/uml13/partitioncontents.rb +7 -5
  289. data/lib/xmi/uml13/presentation.rb +22 -20
  290. data/lib/xmi/uml13/presentationgeometry.rb +7 -5
  291. data/lib/xmi/uml13/presentationmodel.rb +7 -5
  292. data/lib/xmi/uml13/presentationstyle.rb +7 -5
  293. data/lib/xmi/uml13/presentationview_element.rb +7 -5
  294. data/lib/xmi/uml13/primitive.rb +113 -111
  295. data/lib/xmi/uml13/procedure_expression.rb +18 -16
  296. data/lib/xmi/uml13/pseudo_state.rb +77 -75
  297. data/lib/xmi/uml13/pseudo_statekind.rb +6 -4
  298. data/lib/xmi/uml13/reception.rb +91 -89
  299. data/lib/xmi/uml13/receptionis_polymorphic.rb +6 -4
  300. data/lib/xmi/uml13/receptionsignal.rb +7 -5
  301. data/lib/xmi/uml13/receptionspecification.rb +7 -5
  302. data/lib/xmi/uml13/refinement.rb +81 -79
  303. data/lib/xmi/uml13/refinementmapping.rb +7 -5
  304. data/lib/xmi/uml13/request.rb +71 -69
  305. data/lib/xmi/uml13/requestaction.rb +7 -5
  306. data/lib/xmi/uml13/requestmessage_instance.rb +7 -5
  307. data/lib/xmi/uml13/return_action.rb +86 -84
  308. data/lib/xmi/uml13/send_action.rb +86 -84
  309. data/lib/xmi/uml13/signal.rb +96 -94
  310. data/lib/xmi/uml13/signal_event.rb +74 -72
  311. data/lib/xmi/uml13/signal_eventsignal.rb +7 -5
  312. data/lib/xmi/uml13/signaloccurrence.rb +7 -5
  313. data/lib/xmi/uml13/signalparameter.rb +7 -5
  314. data/lib/xmi/uml13/signalreception.rb +7 -5
  315. data/lib/xmi/uml13/simple_state.rb +89 -87
  316. data/lib/xmi/uml13/state.rb +89 -87
  317. data/lib/xmi/uml13/state_machine.rb +75 -73
  318. data/lib/xmi/uml13/state_machinecontext.rb +7 -5
  319. data/lib/xmi/uml13/state_machines.rb +50 -48
  320. data/lib/xmi/uml13/state_machinesubmachine_state.rb +7 -5
  321. data/lib/xmi/uml13/state_machinetop.rb +19 -17
  322. data/lib/xmi/uml13/state_machinetransitions.rb +7 -5
  323. data/lib/xmi/uml13/state_vertex.rb +74 -72
  324. data/lib/xmi/uml13/state_vertexincoming.rb +7 -5
  325. data/lib/xmi/uml13/state_vertexoutgoing.rb +7 -5
  326. data/lib/xmi/uml13/state_vertexparent.rb +7 -5
  327. data/lib/xmi/uml13/stateclassifier_in_state.rb +7 -5
  328. data/lib/xmi/uml13/statedeferred_event.rb +7 -5
  329. data/lib/xmi/uml13/stateentry.rb +7 -5
  330. data/lib/xmi/uml13/stateexit.rb +7 -5
  331. data/lib/xmi/uml13/stateinternal_transition.rb +7 -5
  332. data/lib/xmi/uml13/statestate_machine.rb +7 -5
  333. data/lib/xmi/uml13/stereotype.rb +95 -93
  334. data/lib/xmi/uml13/stereotypebase_class.rb +7 -5
  335. data/lib/xmi/uml13/stereotypeextended_element.rb +7 -5
  336. data/lib/xmi/uml13/stereotypeicon.rb +7 -5
  337. data/lib/xmi/uml13/stereotyperequired_tag.rb +7 -5
  338. data/lib/xmi/uml13/stereotypestereotype_constraint.rb +7 -5
  339. data/lib/xmi/uml13/structural_feature.rb +86 -84
  340. data/lib/xmi/uml13/structural_featurechangeable.rb +6 -4
  341. data/lib/xmi/uml13/structural_featuremultiplicity.rb +7 -5
  342. data/lib/xmi/uml13/structural_featuretarget_scope.rb +6 -4
  343. data/lib/xmi/uml13/structural_featuretype.rb +7 -5
  344. data/lib/xmi/uml13/structure.rb +113 -111
  345. data/lib/xmi/uml13/submachine_state.rb +88 -86
  346. data/lib/xmi/uml13/submachine_statestate_machine.rb +7 -5
  347. data/lib/xmi/uml13/subsystem.rb +115 -113
  348. data/lib/xmi/uml13/subsystemis_instantiable.rb +6 -4
  349. data/lib/xmi/uml13/tagged_value.rb +24 -22
  350. data/lib/xmi/uml13/tagged_valuemodel_element.rb +7 -5
  351. data/lib/xmi/uml13/tagged_valuestereotype.rb +7 -5
  352. data/lib/xmi/uml13/tagged_valuetag.rb +7 -5
  353. data/lib/xmi/uml13/tagged_valuevalue.rb +7 -5
  354. data/lib/xmi/uml13/terminate_action.rb +86 -84
  355. data/lib/xmi/uml13/time_event.rb +73 -71
  356. data/lib/xmi/uml13/time_eventduration.rb +7 -5
  357. data/lib/xmi/uml13/time_expression.rb +18 -16
  358. data/lib/xmi/uml13/trace.rb +79 -77
  359. data/lib/xmi/uml13/transition.rb +84 -82
  360. data/lib/xmi/uml13/transitioneffect.rb +7 -5
  361. data/lib/xmi/uml13/transitionguard.rb +7 -5
  362. data/lib/xmi/uml13/transitionsource.rb +7 -5
  363. data/lib/xmi/uml13/transitionstate.rb +7 -5
  364. data/lib/xmi/uml13/transitionstatemachine.rb +7 -5
  365. data/lib/xmi/uml13/transitiontarget.rb +7 -5
  366. data/lib/xmi/uml13/transitiontrigger.rb +7 -5
  367. data/lib/xmi/uml13/uninterpreted_action.rb +89 -87
  368. data/lib/xmi/uml13/uninterpreted_actionbody.rb +7 -5
  369. data/lib/xmi/uml13/usage.rb +79 -77
  370. data/lib/xmi/uml13/use_case.rb +116 -114
  371. data/lib/xmi/uml13/use_case_instance.rb +85 -83
  372. data/lib/xmi/uml13/use_caseextension_point.rb +7 -5
  373. data/lib/xmi/uml13/use_cases.rb +16 -14
  374. data/lib/xmi/uml13/view_element.rb +18 -16
  375. data/lib/xmi/uml13/view_elementmodel.rb +7 -5
  376. data/lib/xmi/uml13/view_elementpresentation.rb +7 -5
  377. data/lib/xmi/uml13/xm_iextension.rb +11 -9
  378. data/lib/xmi/uml13/xm_ireference.rb +6 -4
  379. data/lib/xmi/uml13.rb +2 -0
  380. data/lib/xmi/version.rb +1 -1
  381. data/lib/xmi.rb +10 -0
  382. data/xmi.gemspec +2 -2
  383. metadata +10 -22
  384. data/.github/workflows/main.yml +0 -27
@@ -1,40 +1,42 @@
1
- require 'shale'
1
+ # frozen_string_literal: true
2
2
 
3
- require_relative 'classifierassociation_end'
4
- require_relative 'classifierclassifier_in_state'
5
- require_relative 'classifierclassifier_role'
6
- require_relative 'classifiercreate_action'
7
- require_relative 'classifierfeature'
8
- require_relative 'classifierinstance'
9
- require_relative 'classifierparameter'
10
- require_relative 'classifierparticipant'
11
- require_relative 'classifierrealization'
12
- require_relative 'classifierspecification'
13
- require_relative 'classifierstructural_feature'
14
- require_relative 'generalizable_elementgeneralization'
15
- require_relative 'generalizable_elementis_abstract'
16
- require_relative 'generalizable_elementis_leaf'
17
- require_relative 'generalizable_elementis_root'
18
- require_relative 'generalizable_elementspecialization'
19
- require_relative 'model_elementbehavior'
20
- require_relative 'model_elementbinding'
21
- require_relative 'model_elementconstraint'
22
- require_relative 'model_elementelement_reference'
23
- require_relative 'model_elementimplementation'
24
- require_relative 'model_elementname'
25
- require_relative 'model_elementnamespace'
26
- require_relative 'model_elementpartition'
27
- require_relative 'model_elementpresentation'
28
- require_relative 'model_elementprovision'
29
- require_relative 'model_elementrequirement'
30
- require_relative 'model_elementstereotype'
31
- require_relative 'model_elementtagged_value'
32
- require_relative 'model_elementtemplate'
33
- require_relative 'model_elementtemplate_parameter'
34
- require_relative 'model_elementview'
35
- require_relative 'model_elementvisibility'
36
- require_relative 'namespaceowned_element'
37
- require_relative 'xm_iextension'
3
+ require "shale"
4
+
5
+ require_relative "classifierassociation_end"
6
+ require_relative "classifierclassifier_in_state"
7
+ require_relative "classifierclassifier_role"
8
+ require_relative "classifiercreate_action"
9
+ require_relative "classifierfeature"
10
+ require_relative "classifierinstance"
11
+ require_relative "classifierparameter"
12
+ require_relative "classifierparticipant"
13
+ require_relative "classifierrealization"
14
+ require_relative "classifierspecification"
15
+ require_relative "classifierstructural_feature"
16
+ require_relative "generalizable_elementgeneralization"
17
+ require_relative "generalizable_elementis_abstract"
18
+ require_relative "generalizable_elementis_leaf"
19
+ require_relative "generalizable_elementis_root"
20
+ require_relative "generalizable_elementspecialization"
21
+ require_relative "model_elementbehavior"
22
+ require_relative "model_elementbinding"
23
+ require_relative "model_elementconstraint"
24
+ require_relative "model_elementelement_reference"
25
+ require_relative "model_elementimplementation"
26
+ require_relative "model_elementname"
27
+ require_relative "model_elementnamespace"
28
+ require_relative "model_elementpartition"
29
+ require_relative "model_elementpresentation"
30
+ require_relative "model_elementprovision"
31
+ require_relative "model_elementrequirement"
32
+ require_relative "model_elementstereotype"
33
+ require_relative "model_elementtagged_value"
34
+ require_relative "model_elementtemplate"
35
+ require_relative "model_elementtemplate_parameter"
36
+ require_relative "model_elementview"
37
+ require_relative "model_elementvisibility"
38
+ require_relative "namespaceowned_element"
39
+ require_relative "xm_iextension"
38
40
 
39
41
  class Interface < Shale::Mapper
40
42
  attribute :name, Shale::Type::Value
@@ -112,81 +114,81 @@ class Interface < Shale::Mapper
112
114
  attribute :classifier_feature, Classifierfeature, collection: true
113
115
 
114
116
  xml do
115
- root 'Interface'
116
- namespace 'omg.org/UML1.3', 'UML'
117
+ root "Interface"
118
+ namespace "omg.org/UML1.3", "UML"
117
119
 
118
- map_attribute 'name', to: :name
119
- map_attribute 'visibility', to: :visibility
120
- map_attribute 'isRoot', to: :is_root
121
- map_attribute 'isLeaf', to: :is_leaf
122
- map_attribute 'isAbstract', to: :is_abstract
123
- map_attribute 'binding', to: :binding
124
- map_attribute 'template', to: :template
125
- map_attribute 'templateParameter', to: :template_parameter
126
- map_attribute 'implementation', to: :implementation
127
- map_attribute 'view', to: :view
128
- map_attribute 'presentation', to: :presentation
129
- map_attribute 'namespace', to: :namespace
130
- map_attribute 'constraint', to: :constraint
131
- map_attribute 'requirement', to: :requirement
132
- map_attribute 'provision', to: :provision
133
- map_attribute 'stereotype', to: :stereotype
134
- map_attribute 'elementReference', to: :element_reference
135
- map_attribute 'ModelElement.collaboration', to: :model_element_collaboration
136
- map_attribute 'behavior', to: :behavior
137
- map_attribute 'partition', to: :partition
138
- map_attribute 'generalization', to: :generalization
139
- map_attribute 'specialization', to: :specialization
140
- map_attribute 'parameter', to: :parameter
141
- map_attribute 'structuralFeature', to: :structural_feature
142
- map_attribute 'specification', to: :specification
143
- map_attribute 'realization', to: :realization
144
- map_attribute 'associationEnd', to: :association_end
145
- map_attribute 'participant', to: :participant
146
- map_attribute 'createAction', to: :create_action
147
- map_attribute 'instance', to: :instance
148
- map_attribute 'Classifier.collaboration', to: :classifier_collaboration
149
- map_attribute 'classifierRole', to: :classifier_role
150
- map_attribute 'classifierInState', to: :classifier_in_state
151
- map_attribute 'xmi.id', to: :xmi_id
152
- map_attribute 'xmi.label', to: :xmi_label
153
- map_attribute 'xmi.uuid', to: :xmi_uuid
154
- map_attribute 'href', to: :href
155
- map_attribute 'xmi.idref', to: :xmi_idref
156
- map_element 'ModelElement.name', to: :model_element_name
157
- map_element 'ModelElement.visibility', to: :model_element_visibility
158
- map_element 'GeneralizableElement.isRoot', to: :generalizable_element_is_root
159
- map_element 'GeneralizableElement.isLeaf', to: :generalizable_element_is_leaf
160
- map_element 'GeneralizableElement.isAbstract', to: :generalizable_element_is_abstract
161
- map_element 'XMI.extension', to: :xmi_extension, prefix: nil, namespace: nil
162
- map_element 'ModelElement.binding', to: :model_element_binding
163
- map_element 'ModelElement.template', to: :model_element_template
164
- map_element 'ModelElement.templateParameter', to: :model_element_template_parameter
165
- map_element 'ModelElement.implementation', to: :model_element_implementation
166
- map_element 'ModelElement.view', to: :model_element_view
167
- map_element 'ModelElement.presentation', to: :model_element_presentation
168
- map_element 'ModelElement.namespace', to: :model_element_namespace
169
- map_element 'ModelElement.constraint', to: :model_element_constraint
170
- map_element 'ModelElement.requirement', to: :model_element_requirement
171
- map_element 'ModelElement.provision', to: :model_element_provision
172
- map_element 'ModelElement.stereotype', to: :model_element_stereotype
173
- map_element 'ModelElement.elementReference', to: :model_element_element_reference
174
- map_element 'ModelElement.behavior', to: :model_element_behavior
175
- map_element 'ModelElement.partition', to: :model_element_partition
176
- map_element 'GeneralizableElement.generalization', to: :generalizable_element_generalization
177
- map_element 'GeneralizableElement.specialization', to: :generalizable_element_specialization
178
- map_element 'Classifier.parameter', to: :classifier_parameter
179
- map_element 'Classifier.structuralFeature', to: :classifier_structural_feature
180
- map_element 'Classifier.specification', to: :classifier_specification
181
- map_element 'Classifier.realization', to: :classifier_realization
182
- map_element 'Classifier.associationEnd', to: :classifier_association_end
183
- map_element 'Classifier.participant', to: :classifier_participant
184
- map_element 'Classifier.createAction', to: :classifier_create_action
185
- map_element 'Classifier.instance', to: :classifier_instance
186
- map_element 'Classifier.classifierRole', to: :classifier_classifier_role
187
- map_element 'Classifier.classifierInState', to: :classifier_classifier_in_state
188
- map_element 'ModelElement.taggedValue', to: :model_element_tagged_value
189
- map_element 'Namespace.ownedElement', to: :namespace_owned_element
190
- map_element 'Classifier.feature', to: :classifier_feature
120
+ map_attribute "name", to: :name
121
+ map_attribute "visibility", to: :visibility
122
+ map_attribute "isRoot", to: :is_root
123
+ map_attribute "isLeaf", to: :is_leaf
124
+ map_attribute "isAbstract", to: :is_abstract
125
+ map_attribute "binding", to: :binding
126
+ map_attribute "template", to: :template
127
+ map_attribute "templateParameter", to: :template_parameter
128
+ map_attribute "implementation", to: :implementation
129
+ map_attribute "view", to: :view
130
+ map_attribute "presentation", to: :presentation
131
+ map_attribute "namespace", to: :namespace
132
+ map_attribute "constraint", to: :constraint
133
+ map_attribute "requirement", to: :requirement
134
+ map_attribute "provision", to: :provision
135
+ map_attribute "stereotype", to: :stereotype
136
+ map_attribute "elementReference", to: :element_reference
137
+ map_attribute "ModelElement.collaboration", to: :model_element_collaboration
138
+ map_attribute "behavior", to: :behavior
139
+ map_attribute "partition", to: :partition
140
+ map_attribute "generalization", to: :generalization
141
+ map_attribute "specialization", to: :specialization
142
+ map_attribute "parameter", to: :parameter
143
+ map_attribute "structuralFeature", to: :structural_feature
144
+ map_attribute "specification", to: :specification
145
+ map_attribute "realization", to: :realization
146
+ map_attribute "associationEnd", to: :association_end
147
+ map_attribute "participant", to: :participant
148
+ map_attribute "createAction", to: :create_action
149
+ map_attribute "instance", to: :instance
150
+ map_attribute "Classifier.collaboration", to: :classifier_collaboration
151
+ map_attribute "classifierRole", to: :classifier_role
152
+ map_attribute "classifierInState", to: :classifier_in_state
153
+ map_attribute "xmi.id", to: :xmi_id
154
+ map_attribute "xmi.label", to: :xmi_label
155
+ map_attribute "xmi.uuid", to: :xmi_uuid
156
+ map_attribute "href", to: :href
157
+ map_attribute "xmi.idref", to: :xmi_idref
158
+ map_element "ModelElement.name", to: :model_element_name
159
+ map_element "ModelElement.visibility", to: :model_element_visibility
160
+ map_element "GeneralizableElement.isRoot", to: :generalizable_element_is_root
161
+ map_element "GeneralizableElement.isLeaf", to: :generalizable_element_is_leaf
162
+ map_element "GeneralizableElement.isAbstract", to: :generalizable_element_is_abstract
163
+ map_element "XMI.extension", to: :xmi_extension, prefix: nil, namespace: nil
164
+ map_element "ModelElement.binding", to: :model_element_binding
165
+ map_element "ModelElement.template", to: :model_element_template
166
+ map_element "ModelElement.templateParameter", to: :model_element_template_parameter
167
+ map_element "ModelElement.implementation", to: :model_element_implementation
168
+ map_element "ModelElement.view", to: :model_element_view
169
+ map_element "ModelElement.presentation", to: :model_element_presentation
170
+ map_element "ModelElement.namespace", to: :model_element_namespace
171
+ map_element "ModelElement.constraint", to: :model_element_constraint
172
+ map_element "ModelElement.requirement", to: :model_element_requirement
173
+ map_element "ModelElement.provision", to: :model_element_provision
174
+ map_element "ModelElement.stereotype", to: :model_element_stereotype
175
+ map_element "ModelElement.elementReference", to: :model_element_element_reference
176
+ map_element "ModelElement.behavior", to: :model_element_behavior
177
+ map_element "ModelElement.partition", to: :model_element_partition
178
+ map_element "GeneralizableElement.generalization", to: :generalizable_element_generalization
179
+ map_element "GeneralizableElement.specialization", to: :generalizable_element_specialization
180
+ map_element "Classifier.parameter", to: :classifier_parameter
181
+ map_element "Classifier.structuralFeature", to: :classifier_structural_feature
182
+ map_element "Classifier.specification", to: :classifier_specification
183
+ map_element "Classifier.realization", to: :classifier_realization
184
+ map_element "Classifier.associationEnd", to: :classifier_association_end
185
+ map_element "Classifier.participant", to: :classifier_participant
186
+ map_element "Classifier.createAction", to: :classifier_create_action
187
+ map_element "Classifier.instance", to: :classifier_instance
188
+ map_element "Classifier.classifierRole", to: :classifier_classifier_role
189
+ map_element "Classifier.classifierInState", to: :classifier_classifier_in_state
190
+ map_element "ModelElement.taggedValue", to: :model_element_tagged_value
191
+ map_element "Namespace.ownedElement", to: :namespace_owned_element
192
+ map_element "Classifier.feature", to: :classifier_feature
191
193
  end
192
194
  end
@@ -1,26 +1,28 @@
1
- require 'shale'
1
+ # frozen_string_literal: true
2
2
 
3
- require_relative 'linkassociation'
4
- require_relative 'linklink_role'
5
- require_relative 'model_elementbehavior'
6
- require_relative 'model_elementbinding'
7
- require_relative 'model_elementcollaboration'
8
- require_relative 'model_elementconstraint'
9
- require_relative 'model_elementelement_reference'
10
- require_relative 'model_elementimplementation'
11
- require_relative 'model_elementname'
12
- require_relative 'model_elementnamespace'
13
- require_relative 'model_elementpartition'
14
- require_relative 'model_elementpresentation'
15
- require_relative 'model_elementprovision'
16
- require_relative 'model_elementrequirement'
17
- require_relative 'model_elementstereotype'
18
- require_relative 'model_elementtagged_value'
19
- require_relative 'model_elementtemplate'
20
- require_relative 'model_elementtemplate_parameter'
21
- require_relative 'model_elementview'
22
- require_relative 'model_elementvisibility'
23
- require_relative 'xm_iextension'
3
+ require "shale"
4
+
5
+ require_relative "linkassociation"
6
+ require_relative "linklink_role"
7
+ require_relative "model_elementbehavior"
8
+ require_relative "model_elementbinding"
9
+ require_relative "model_elementcollaboration"
10
+ require_relative "model_elementconstraint"
11
+ require_relative "model_elementelement_reference"
12
+ require_relative "model_elementimplementation"
13
+ require_relative "model_elementname"
14
+ require_relative "model_elementnamespace"
15
+ require_relative "model_elementpartition"
16
+ require_relative "model_elementpresentation"
17
+ require_relative "model_elementprovision"
18
+ require_relative "model_elementrequirement"
19
+ require_relative "model_elementstereotype"
20
+ require_relative "model_elementtagged_value"
21
+ require_relative "model_elementtemplate"
22
+ require_relative "model_elementtemplate_parameter"
23
+ require_relative "model_elementview"
24
+ require_relative "model_elementvisibility"
25
+ require_relative "xm_iextension"
24
26
 
25
27
  class Link < Shale::Mapper
26
28
  attribute :name, Shale::Type::Value
@@ -69,52 +71,52 @@ class Link < Shale::Mapper
69
71
  attribute :link_link_role, LinklinkRole, collection: true
70
72
 
71
73
  xml do
72
- root 'Link'
73
- namespace 'omg.org/UML1.3', 'UML'
74
+ root "Link"
75
+ namespace "omg.org/UML1.3", "UML"
74
76
 
75
- map_attribute 'name', to: :name
76
- map_attribute 'visibility', to: :visibility
77
- map_attribute 'binding', to: :binding
78
- map_attribute 'template', to: :template
79
- map_attribute 'templateParameter', to: :template_parameter
80
- map_attribute 'implementation', to: :implementation
81
- map_attribute 'view', to: :view
82
- map_attribute 'presentation', to: :presentation
83
- map_attribute 'namespace', to: :namespace
84
- map_attribute 'constraint', to: :constraint
85
- map_attribute 'requirement', to: :requirement
86
- map_attribute 'provision', to: :provision
87
- map_attribute 'stereotype', to: :stereotype
88
- map_attribute 'elementReference', to: :element_reference
89
- map_attribute 'collaboration', to: :collaboration
90
- map_attribute 'behavior', to: :behavior
91
- map_attribute 'partition', to: :partition
92
- map_attribute 'association', to: :association
93
- map_attribute 'xmi.id', to: :xmi_id
94
- map_attribute 'xmi.label', to: :xmi_label
95
- map_attribute 'xmi.uuid', to: :xmi_uuid
96
- map_attribute 'href', to: :href
97
- map_attribute 'xmi.idref', to: :xmi_idref
98
- map_element 'ModelElement.name', to: :model_element_name
99
- map_element 'ModelElement.visibility', to: :model_element_visibility
100
- map_element 'XMI.extension', to: :xmi_extension, prefix: nil, namespace: nil
101
- map_element 'ModelElement.binding', to: :model_element_binding
102
- map_element 'ModelElement.template', to: :model_element_template
103
- map_element 'ModelElement.templateParameter', to: :model_element_template_parameter
104
- map_element 'ModelElement.implementation', to: :model_element_implementation
105
- map_element 'ModelElement.view', to: :model_element_view
106
- map_element 'ModelElement.presentation', to: :model_element_presentation
107
- map_element 'ModelElement.namespace', to: :model_element_namespace
108
- map_element 'ModelElement.constraint', to: :model_element_constraint
109
- map_element 'ModelElement.requirement', to: :model_element_requirement
110
- map_element 'ModelElement.provision', to: :model_element_provision
111
- map_element 'ModelElement.stereotype', to: :model_element_stereotype
112
- map_element 'ModelElement.elementReference', to: :model_element_element_reference
113
- map_element 'ModelElement.collaboration', to: :model_element_collaboration
114
- map_element 'ModelElement.behavior', to: :model_element_behavior
115
- map_element 'ModelElement.partition', to: :model_element_partition
116
- map_element 'Link.association', to: :link_association
117
- map_element 'ModelElement.taggedValue', to: :model_element_tagged_value
118
- map_element 'Link.linkRole', to: :link_link_role
77
+ map_attribute "name", to: :name
78
+ map_attribute "visibility", to: :visibility
79
+ map_attribute "binding", to: :binding
80
+ map_attribute "template", to: :template
81
+ map_attribute "templateParameter", to: :template_parameter
82
+ map_attribute "implementation", to: :implementation
83
+ map_attribute "view", to: :view
84
+ map_attribute "presentation", to: :presentation
85
+ map_attribute "namespace", to: :namespace
86
+ map_attribute "constraint", to: :constraint
87
+ map_attribute "requirement", to: :requirement
88
+ map_attribute "provision", to: :provision
89
+ map_attribute "stereotype", to: :stereotype
90
+ map_attribute "elementReference", to: :element_reference
91
+ map_attribute "collaboration", to: :collaboration
92
+ map_attribute "behavior", to: :behavior
93
+ map_attribute "partition", to: :partition
94
+ map_attribute "association", to: :association
95
+ map_attribute "xmi.id", to: :xmi_id
96
+ map_attribute "xmi.label", to: :xmi_label
97
+ map_attribute "xmi.uuid", to: :xmi_uuid
98
+ map_attribute "href", to: :href
99
+ map_attribute "xmi.idref", to: :xmi_idref
100
+ map_element "ModelElement.name", to: :model_element_name
101
+ map_element "ModelElement.visibility", to: :model_element_visibility
102
+ map_element "XMI.extension", to: :xmi_extension, prefix: nil, namespace: nil
103
+ map_element "ModelElement.binding", to: :model_element_binding
104
+ map_element "ModelElement.template", to: :model_element_template
105
+ map_element "ModelElement.templateParameter", to: :model_element_template_parameter
106
+ map_element "ModelElement.implementation", to: :model_element_implementation
107
+ map_element "ModelElement.view", to: :model_element_view
108
+ map_element "ModelElement.presentation", to: :model_element_presentation
109
+ map_element "ModelElement.namespace", to: :model_element_namespace
110
+ map_element "ModelElement.constraint", to: :model_element_constraint
111
+ map_element "ModelElement.requirement", to: :model_element_requirement
112
+ map_element "ModelElement.provision", to: :model_element_provision
113
+ map_element "ModelElement.stereotype", to: :model_element_stereotype
114
+ map_element "ModelElement.elementReference", to: :model_element_element_reference
115
+ map_element "ModelElement.collaboration", to: :model_element_collaboration
116
+ map_element "ModelElement.behavior", to: :model_element_behavior
117
+ map_element "ModelElement.partition", to: :model_element_partition
118
+ map_element "Link.association", to: :link_association
119
+ map_element "ModelElement.taggedValue", to: :model_element_tagged_value
120
+ map_element "Link.linkRole", to: :link_link_role
119
121
  end
120
122
  end
@@ -1,27 +1,29 @@
1
- require 'shale'
1
+ # frozen_string_literal: true
2
2
 
3
- require_relative 'link_endassociation_end'
4
- require_relative 'link_endinstance'
5
- require_relative 'link_endlink'
6
- require_relative 'model_elementbehavior'
7
- require_relative 'model_elementbinding'
8
- require_relative 'model_elementcollaboration'
9
- require_relative 'model_elementconstraint'
10
- require_relative 'model_elementelement_reference'
11
- require_relative 'model_elementimplementation'
12
- require_relative 'model_elementname'
13
- require_relative 'model_elementnamespace'
14
- require_relative 'model_elementpartition'
15
- require_relative 'model_elementpresentation'
16
- require_relative 'model_elementprovision'
17
- require_relative 'model_elementrequirement'
18
- require_relative 'model_elementstereotype'
19
- require_relative 'model_elementtagged_value'
20
- require_relative 'model_elementtemplate'
21
- require_relative 'model_elementtemplate_parameter'
22
- require_relative 'model_elementview'
23
- require_relative 'model_elementvisibility'
24
- require_relative 'xm_iextension'
3
+ require "shale"
4
+
5
+ require_relative "link_endassociation_end"
6
+ require_relative "link_endinstance"
7
+ require_relative "link_endlink"
8
+ require_relative "model_elementbehavior"
9
+ require_relative "model_elementbinding"
10
+ require_relative "model_elementcollaboration"
11
+ require_relative "model_elementconstraint"
12
+ require_relative "model_elementelement_reference"
13
+ require_relative "model_elementimplementation"
14
+ require_relative "model_elementname"
15
+ require_relative "model_elementnamespace"
16
+ require_relative "model_elementpartition"
17
+ require_relative "model_elementpresentation"
18
+ require_relative "model_elementprovision"
19
+ require_relative "model_elementrequirement"
20
+ require_relative "model_elementstereotype"
21
+ require_relative "model_elementtagged_value"
22
+ require_relative "model_elementtemplate"
23
+ require_relative "model_elementtemplate_parameter"
24
+ require_relative "model_elementview"
25
+ require_relative "model_elementvisibility"
26
+ require_relative "xm_iextension"
25
27
 
26
28
  class LinkEnd < Shale::Mapper
27
29
  attribute :name, Shale::Type::Value
@@ -73,55 +75,55 @@ class LinkEnd < Shale::Mapper
73
75
  attribute :model_element_tagged_value, ModelElementtaggedValue, collection: true
74
76
 
75
77
  xml do
76
- root 'LinkEnd'
77
- namespace 'omg.org/UML1.3', 'UML'
78
+ root "LinkEnd"
79
+ namespace "omg.org/UML1.3", "UML"
78
80
 
79
- map_attribute 'name', to: :name
80
- map_attribute 'visibility', to: :visibility
81
- map_attribute 'binding', to: :binding
82
- map_attribute 'template', to: :template
83
- map_attribute 'templateParameter', to: :template_parameter
84
- map_attribute 'implementation', to: :implementation
85
- map_attribute 'view', to: :view
86
- map_attribute 'presentation', to: :presentation
87
- map_attribute 'namespace', to: :namespace
88
- map_attribute 'constraint', to: :constraint
89
- map_attribute 'requirement', to: :requirement
90
- map_attribute 'provision', to: :provision
91
- map_attribute 'stereotype', to: :stereotype
92
- map_attribute 'elementReference', to: :element_reference
93
- map_attribute 'collaboration', to: :collaboration
94
- map_attribute 'behavior', to: :behavior
95
- map_attribute 'partition', to: :partition
96
- map_attribute 'link', to: :link
97
- map_attribute 'associationEnd', to: :association_end
98
- map_attribute 'instance', to: :instance
99
- map_attribute 'xmi.id', to: :xmi_id
100
- map_attribute 'xmi.label', to: :xmi_label
101
- map_attribute 'xmi.uuid', to: :xmi_uuid
102
- map_attribute 'href', to: :href
103
- map_attribute 'xmi.idref', to: :xmi_idref
104
- map_element 'ModelElement.name', to: :model_element_name
105
- map_element 'ModelElement.visibility', to: :model_element_visibility
106
- map_element 'XMI.extension', to: :xmi_extension, prefix: nil, namespace: nil
107
- map_element 'ModelElement.binding', to: :model_element_binding
108
- map_element 'ModelElement.template', to: :model_element_template
109
- map_element 'ModelElement.templateParameter', to: :model_element_template_parameter
110
- map_element 'ModelElement.implementation', to: :model_element_implementation
111
- map_element 'ModelElement.view', to: :model_element_view
112
- map_element 'ModelElement.presentation', to: :model_element_presentation
113
- map_element 'ModelElement.namespace', to: :model_element_namespace
114
- map_element 'ModelElement.constraint', to: :model_element_constraint
115
- map_element 'ModelElement.requirement', to: :model_element_requirement
116
- map_element 'ModelElement.provision', to: :model_element_provision
117
- map_element 'ModelElement.stereotype', to: :model_element_stereotype
118
- map_element 'ModelElement.elementReference', to: :model_element_element_reference
119
- map_element 'ModelElement.collaboration', to: :model_element_collaboration
120
- map_element 'ModelElement.behavior', to: :model_element_behavior
121
- map_element 'ModelElement.partition', to: :model_element_partition
122
- map_element 'LinkEnd.link', to: :link_end_link
123
- map_element 'LinkEnd.associationEnd', to: :link_end_association_end
124
- map_element 'LinkEnd.instance', to: :link_end_instance
125
- map_element 'ModelElement.taggedValue', to: :model_element_tagged_value
81
+ map_attribute "name", to: :name
82
+ map_attribute "visibility", to: :visibility
83
+ map_attribute "binding", to: :binding
84
+ map_attribute "template", to: :template
85
+ map_attribute "templateParameter", to: :template_parameter
86
+ map_attribute "implementation", to: :implementation
87
+ map_attribute "view", to: :view
88
+ map_attribute "presentation", to: :presentation
89
+ map_attribute "namespace", to: :namespace
90
+ map_attribute "constraint", to: :constraint
91
+ map_attribute "requirement", to: :requirement
92
+ map_attribute "provision", to: :provision
93
+ map_attribute "stereotype", to: :stereotype
94
+ map_attribute "elementReference", to: :element_reference
95
+ map_attribute "collaboration", to: :collaboration
96
+ map_attribute "behavior", to: :behavior
97
+ map_attribute "partition", to: :partition
98
+ map_attribute "link", to: :link
99
+ map_attribute "associationEnd", to: :association_end
100
+ map_attribute "instance", to: :instance
101
+ map_attribute "xmi.id", to: :xmi_id
102
+ map_attribute "xmi.label", to: :xmi_label
103
+ map_attribute "xmi.uuid", to: :xmi_uuid
104
+ map_attribute "href", to: :href
105
+ map_attribute "xmi.idref", to: :xmi_idref
106
+ map_element "ModelElement.name", to: :model_element_name
107
+ map_element "ModelElement.visibility", to: :model_element_visibility
108
+ map_element "XMI.extension", to: :xmi_extension, prefix: nil, namespace: nil
109
+ map_element "ModelElement.binding", to: :model_element_binding
110
+ map_element "ModelElement.template", to: :model_element_template
111
+ map_element "ModelElement.templateParameter", to: :model_element_template_parameter
112
+ map_element "ModelElement.implementation", to: :model_element_implementation
113
+ map_element "ModelElement.view", to: :model_element_view
114
+ map_element "ModelElement.presentation", to: :model_element_presentation
115
+ map_element "ModelElement.namespace", to: :model_element_namespace
116
+ map_element "ModelElement.constraint", to: :model_element_constraint
117
+ map_element "ModelElement.requirement", to: :model_element_requirement
118
+ map_element "ModelElement.provision", to: :model_element_provision
119
+ map_element "ModelElement.stereotype", to: :model_element_stereotype
120
+ map_element "ModelElement.elementReference", to: :model_element_element_reference
121
+ map_element "ModelElement.collaboration", to: :model_element_collaboration
122
+ map_element "ModelElement.behavior", to: :model_element_behavior
123
+ map_element "ModelElement.partition", to: :model_element_partition
124
+ map_element "LinkEnd.link", to: :link_end_link
125
+ map_element "LinkEnd.associationEnd", to: :link_end_association_end
126
+ map_element "LinkEnd.instance", to: :link_end_instance
127
+ map_element "ModelElement.taggedValue", to: :model_element_tagged_value
126
128
  end
127
129
  end
@@ -1,14 +1,16 @@
1
- require 'shale'
1
+ # frozen_string_literal: true
2
2
 
3
- require_relative 'association_end'
3
+ require "shale"
4
+
5
+ require_relative "association_end"
4
6
 
5
7
  class LinkEndassociationEnd < Shale::Mapper
6
8
  attribute :association_end, AssociationEnd, collection: true
7
9
 
8
10
  xml do
9
- root 'LinkEnd.associationEnd'
10
- namespace 'omg.org/UML1.3', 'UML'
11
+ root "LinkEnd.associationEnd"
12
+ namespace "omg.org/UML1.3", "UML"
11
13
 
12
- map_element 'AssociationEnd', to: :association_end
14
+ map_element "AssociationEnd", to: :association_end
13
15
  end
14
16
  end
@@ -1,14 +1,16 @@
1
- require 'shale'
1
+ # frozen_string_literal: true
2
2
 
3
- require_relative 'instance'
3
+ require "shale"
4
+
5
+ require_relative "instance"
4
6
 
5
7
  class LinkEndinstance < Shale::Mapper
6
8
  attribute :instance, Instance, collection: true
7
9
 
8
10
  xml do
9
- root 'LinkEnd.instance'
10
- namespace 'omg.org/UML1.3', 'UML'
11
+ root "LinkEnd.instance"
12
+ namespace "omg.org/UML1.3", "UML"
11
13
 
12
- map_element 'Instance', to: :instance
14
+ map_element "Instance", to: :instance
13
15
  end
14
16
  end
@@ -1,14 +1,16 @@
1
- require 'shale'
1
+ # frozen_string_literal: true
2
2
 
3
- require_relative 'link'
3
+ require "shale"
4
+
5
+ require_relative "link"
4
6
 
5
7
  class LinkEndlink < Shale::Mapper
6
8
  attribute :link, Link, collection: true
7
9
 
8
10
  xml do
9
- root 'LinkEnd.link'
10
- namespace 'omg.org/UML1.3', 'UML'
11
+ root "LinkEnd.link"
12
+ namespace "omg.org/UML1.3", "UML"
11
13
 
12
- map_element 'Link', to: :link
14
+ map_element "Link", to: :link
13
15
  end
14
16
  end