xmi 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/README.adoc +3 -3
- data/lib/xmi/ea_root.rb +2 -8
- data/lib/xmi/root.rb +0 -22
- data/lib/xmi/sparx.rb +35 -110
- data/lib/xmi/uml.rb +4 -169
- data/lib/xmi/version.rb +1 -1
- data/lib/xmi.rb +0 -1
- metadata +2 -370
- data/lib/xmi/root13.rb +0 -44
- data/lib/xmi/uml13/abstraction.rb +0 -155
- data/lib/xmi/uml13/action.rb +0 -148
- data/lib/xmi/uml13/action_sequence.rb +0 -132
- data/lib/xmi/uml13/action_sequenceaction.rb +0 -40
- data/lib/xmi/uml13/action_sequencestate.rb +0 -16
- data/lib/xmi/uml13/action_sequencestate2.rb +0 -16
- data/lib/xmi/uml13/action_sequencetransition.rb +0 -16
- data/lib/xmi/uml13/action_state.rb +0 -153
- data/lib/xmi/uml13/actionaction_sequence.rb +0 -16
- data/lib/xmi/uml13/actionactual_argument.rb +0 -16
- data/lib/xmi/uml13/actionis_asynchronous.rb +0 -14
- data/lib/xmi/uml13/actionmessage.rb +0 -16
- data/lib/xmi/uml13/actionrecurrence.rb +0 -28
- data/lib/xmi/uml13/actionrequest.rb +0 -16
- data/lib/xmi/uml13/actionscript.rb +0 -18
- data/lib/xmi/uml13/actiontarget.rb +0 -16
- data/lib/xmi/uml13/activity_model.rb +0 -133
- data/lib/xmi/uml13/activity_modelpartition.rb +0 -16
- data/lib/xmi/uml13/activity_state.rb +0 -152
- data/lib/xmi/uml13/actor.rb +0 -194
- data/lib/xmi/uml13/argument.rb +0 -34
- data/lib/xmi/uml13/argumentaction.rb +0 -16
- data/lib/xmi/uml13/argumentvalue.rb +0 -28
- data/lib/xmi/uml13/association.rb +0 -155
- data/lib/xmi/uml13/association_class.rb +0 -206
- data/lib/xmi/uml13/association_end.rb +0 -172
- data/lib/xmi/uml13/association_end_role.rb +0 -182
- data/lib/xmi/uml13/association_end_roleassociation_role.rb +0 -16
- data/lib/xmi/uml13/association_end_rolebase.rb +0 -16
- data/lib/xmi/uml13/association_endaggregation.rb +0 -14
- data/lib/xmi/uml13/association_endassociation.rb +0 -16
- data/lib/xmi/uml13/association_endassociation_end_role.rb +0 -16
- data/lib/xmi/uml13/association_endchangeable.rb +0 -14
- data/lib/xmi/uml13/association_endis_navigable.rb +0 -14
- data/lib/xmi/uml13/association_endis_ordered.rb +0 -14
- data/lib/xmi/uml13/association_endlink_end.rb +0 -16
- data/lib/xmi/uml13/association_endmultiplicity.rb +0 -18
- data/lib/xmi/uml13/association_endqualifier.rb +0 -16
- data/lib/xmi/uml13/association_endspecification.rb +0 -16
- data/lib/xmi/uml13/association_endtarget_scope.rb +0 -14
- data/lib/xmi/uml13/association_endtype.rb +0 -16
- data/lib/xmi/uml13/association_role.rb +0 -164
- data/lib/xmi/uml13/association_rolebase.rb +0 -16
- data/lib/xmi/uml13/association_rolemultiplicity.rb +0 -18
- data/lib/xmi/uml13/association_rolenamespace.rb +0 -16
- data/lib/xmi/uml13/associationassociation_end.rb +0 -16
- data/lib/xmi/uml13/associationconnection.rb +0 -19
- data/lib/xmi/uml13/associationlink.rb +0 -16
- data/lib/xmi/uml13/attribute.rb +0 -162
- data/lib/xmi/uml13/attribute_link.rb +0 -129
- data/lib/xmi/uml13/attribute_linkattribute.rb +0 -16
- data/lib/xmi/uml13/attribute_linkinstance.rb +0 -16
- data/lib/xmi/uml13/attribute_linkvalue.rb +0 -16
- data/lib/xmi/uml13/attributeassociation_end.rb +0 -16
- data/lib/xmi/uml13/attributeattribute_link.rb +0 -16
- data/lib/xmi/uml13/attributeinitial_value.rb +0 -28
- data/lib/xmi/uml13/auxiliary_elements.rb +0 -50
- data/lib/xmi/uml13/behavioral_elements.rb +0 -35
- data/lib/xmi/uml13/behavioral_feature.rb +0 -142
- data/lib/xmi/uml13/behavioral_featureis_query.rb +0 -14
- data/lib/xmi/uml13/behavioral_featureparameter.rb +0 -16
- data/lib/xmi/uml13/behavioral_featureraised_exception.rb +0 -16
- data/lib/xmi/uml13/binding.rb +0 -140
- data/lib/xmi/uml13/bindingargument.rb +0 -268
- data/lib/xmi/uml13/boolean_expression.rb +0 -36
- data/lib/xmi/uml13/call_action.rb +0 -153
- data/lib/xmi/uml13/call_actionmode.rb +0 -14
- data/lib/xmi/uml13/call_event.rb +0 -129
- data/lib/xmi/uml13/call_eventoperation.rb +0 -16
- data/lib/xmi/uml13/change_event.rb +0 -127
- data/lib/xmi/uml13/change_eventchange_expression.rb +0 -16
- data/lib/xmi/uml13/class.rb +0 -199
- data/lib/xmi/uml13/classifier.rb +0 -194
- data/lib/xmi/uml13/classifier_in_state.rb +0 -209
- data/lib/xmi/uml13/classifier_in_statein_state.rb +0 -16
- data/lib/xmi/uml13/classifier_in_stateobject_flow_state.rb +0 -16
- data/lib/xmi/uml13/classifier_in_statetype.rb +0 -16
- data/lib/xmi/uml13/classifier_role.rb +0 -223
- data/lib/xmi/uml13/classifier_roleassociation_end_role.rb +0 -16
- data/lib/xmi/uml13/classifier_roleavailable_feature.rb +0 -16
- data/lib/xmi/uml13/classifier_rolebase.rb +0 -16
- data/lib/xmi/uml13/classifier_rolemessage.rb +0 -16
- data/lib/xmi/uml13/classifier_rolemessage2.rb +0 -16
- data/lib/xmi/uml13/classifier_rolemultiplicity.rb +0 -18
- data/lib/xmi/uml13/classifier_rolenamespace.rb +0 -16
- data/lib/xmi/uml13/classifierassociation_end.rb +0 -16
- data/lib/xmi/uml13/classifierclassifier_in_state.rb +0 -16
- data/lib/xmi/uml13/classifierclassifier_role.rb +0 -16
- data/lib/xmi/uml13/classifiercollaboration.rb +0 -16
- data/lib/xmi/uml13/classifiercreate_action.rb +0 -16
- data/lib/xmi/uml13/classifierfeature.rb +0 -34
- data/lib/xmi/uml13/classifierinstance.rb +0 -16
- data/lib/xmi/uml13/classifierparameter.rb +0 -16
- data/lib/xmi/uml13/classifierparticipant.rb +0 -16
- data/lib/xmi/uml13/classifierrealization.rb +0 -16
- data/lib/xmi/uml13/classifierspecification.rb +0 -16
- data/lib/xmi/uml13/classifierstructural_feature.rb +0 -16
- data/lib/xmi/uml13/classis_active.rb +0 -14
- data/lib/xmi/uml13/collaboration.rb +0 -135
- data/lib/xmi/uml13/collaborationconstraining_element.rb +0 -16
- data/lib/xmi/uml13/collaborationinteraction.rb +0 -16
- data/lib/xmi/uml13/collaborationrepresented_classifier.rb +0 -16
- data/lib/xmi/uml13/collaborationrepresented_operation.rb +0 -16
- data/lib/xmi/uml13/collaborations.rb +0 -41
- data/lib/xmi/uml13/comment.rb +0 -114
- data/lib/xmi/uml13/common_behavior.rb +0 -92
- data/lib/xmi/uml13/component.rb +0 -204
- data/lib/xmi/uml13/componentdeployment.rb +0 -16
- data/lib/xmi/uml13/componentimplements.rb +0 -16
- data/lib/xmi/uml13/composite_state.rb +0 -161
- data/lib/xmi/uml13/composite_stateis_concurrent.rb +0 -14
- data/lib/xmi/uml13/composite_statesubstate.rb +0 -40
- data/lib/xmi/uml13/constraint.rb +0 -127
- data/lib/xmi/uml13/constraintbody.rb +0 -16
- data/lib/xmi/uml13/constraintconstrained_element.rb +0 -16
- data/lib/xmi/uml13/constraintconstrained_stereotype.rb +0 -16
- data/lib/xmi/uml13/core.rb +0 -86
- data/lib/xmi/uml13/create_action.rb +0 -153
- data/lib/xmi/uml13/create_actioninstantiation.rb +0 -16
- data/lib/xmi/uml13/data_type.rb +0 -194
- data/lib/xmi/uml13/data_types.rb +0 -62
- data/lib/xmi/uml13/data_value.rb +0 -147
- data/lib/xmi/uml13/dependency.rb +0 -137
- data/lib/xmi/uml13/dependencyclient.rb +0 -16
- data/lib/xmi/uml13/dependencydescription.rb +0 -18
- data/lib/xmi/uml13/dependencyowning_dependency.rb +0 -16
- data/lib/xmi/uml13/dependencysub_dependencies.rb +0 -28
- data/lib/xmi/uml13/dependencysupplier.rb +0 -16
- data/lib/xmi/uml13/destroy_action.rb +0 -148
- data/lib/xmi/uml13/diagram.rb +0 -48
- data/lib/xmi/uml13/diagram_compositions.rb +0 -16
- data/lib/xmi/uml13/diagram_element.rb +0 -40
- data/lib/xmi/uml13/diagram_element_properties.rb +0 -19
- data/lib/xmi/uml13/diagram_elementdiagram.rb +0 -16
- data/lib/xmi/uml13/diagram_elementgeometry.rb +0 -18
- data/lib/xmi/uml13/diagram_elementstyle.rb +0 -18
- data/lib/xmi/uml13/diagram_properties.rb +0 -25
- data/lib/xmi/uml13/diagramdiagram_type.rb +0 -18
- data/lib/xmi/uml13/diagramelement.rb +0 -16
- data/lib/xmi/uml13/diagramname.rb +0 -18
- data/lib/xmi/uml13/diagramowner.rb +0 -241
- data/lib/xmi/uml13/diagramstyle.rb +0 -18
- data/lib/xmi/uml13/diagramtool_name.rb +0 -18
- data/lib/xmi/uml13/element.rb +0 -26
- data/lib/xmi/uml13/element_reference.rb +0 -46
- data/lib/xmi/uml13/element_referencealias.rb +0 -18
- data/lib/xmi/uml13/element_referencepackage.rb +0 -16
- data/lib/xmi/uml13/element_referencereferenced_element.rb +0 -16
- data/lib/xmi/uml13/element_referencevisibility.rb +0 -14
- data/lib/xmi/uml13/enumeration.rb +0 -197
- data/lib/xmi/uml13/enumeration_literal.rb +0 -36
- data/lib/xmi/uml13/enumeration_literalenumeration.rb +0 -16
- data/lib/xmi/uml13/enumeration_literalname.rb +0 -18
- data/lib/xmi/uml13/enumerationliteral.rb +0 -16
- data/lib/xmi/uml13/event.rb +0 -124
- data/lib/xmi/uml13/eventstate.rb +0 -16
- data/lib/xmi/uml13/eventtransition.rb +0 -16
- data/lib/xmi/uml13/exception.rb +0 -170
- data/lib/xmi/uml13/exceptioncontext.rb +0 -16
- data/lib/xmi/uml13/expression.rb +0 -36
- data/lib/xmi/uml13/expressionbody.rb +0 -18
- data/lib/xmi/uml13/expressionlanguage.rb +0 -18
- data/lib/xmi/uml13/extension_mechanisms.rb +0 -29
- data/lib/xmi/uml13/feature.rb +0 -129
- data/lib/xmi/uml13/featureclassifier_role.rb +0 -16
- data/lib/xmi/uml13/featureowner.rb +0 -16
- data/lib/xmi/uml13/featureowner_scope.rb +0 -14
- data/lib/xmi/uml13/foundation.rb +0 -35
- data/lib/xmi/uml13/generalizable_element.rb +0 -142
- data/lib/xmi/uml13/generalizable_elementgeneralization.rb +0 -16
- data/lib/xmi/uml13/generalizable_elementis_abstract.rb +0 -14
- data/lib/xmi/uml13/generalizable_elementis_leaf.rb +0 -14
- data/lib/xmi/uml13/generalizable_elementis_root.rb +0 -14
- data/lib/xmi/uml13/generalizable_elementspecialization.rb +0 -16
- data/lib/xmi/uml13/generalization.rb +0 -129
- data/lib/xmi/uml13/generalizationdiscriminator.rb +0 -18
- data/lib/xmi/uml13/generalizationsubtype.rb +0 -16
- data/lib/xmi/uml13/generalizationsupertype.rb +0 -16
- data/lib/xmi/uml13/geometry.rb +0 -31
- data/lib/xmi/uml13/geometrybody.rb +0 -18
- data/lib/xmi/uml13/graphic_marker.rb +0 -31
- data/lib/xmi/uml13/graphic_markerbody.rb +0 -18
- data/lib/xmi/uml13/guard.rb +0 -122
- data/lib/xmi/uml13/guardexpression.rb +0 -16
- data/lib/xmi/uml13/guardtransition.rb +0 -16
- data/lib/xmi/uml13/instance.rb +0 -147
- data/lib/xmi/uml13/instanceattribute_link.rb +0 -16
- data/lib/xmi/uml13/instanceclassifier.rb +0 -16
- data/lib/xmi/uml13/instancelink_end.rb +0 -16
- data/lib/xmi/uml13/instancemessage_instance.rb +0 -16
- data/lib/xmi/uml13/instancemessage_instance2.rb +0 -16
- data/lib/xmi/uml13/instancemessage_instance3.rb +0 -16
- data/lib/xmi/uml13/instanceslot.rb +0 -16
- data/lib/xmi/uml13/interaction.rb +0 -122
- data/lib/xmi/uml13/interactioncontext.rb +0 -16
- data/lib/xmi/uml13/interactionmessage.rb +0 -16
- data/lib/xmi/uml13/interface.rb +0 -194
- data/lib/xmi/uml13/link.rb +0 -122
- data/lib/xmi/uml13/link_end.rb +0 -129
- data/lib/xmi/uml13/link_endassociation_end.rb +0 -16
- data/lib/xmi/uml13/link_endinstance.rb +0 -16
- data/lib/xmi/uml13/link_endlink.rb +0 -16
- data/lib/xmi/uml13/link_object.rb +0 -155
- data/lib/xmi/uml13/linkassociation.rb +0 -16
- data/lib/xmi/uml13/linklink_role.rb +0 -16
- data/lib/xmi/uml13/local_invocation.rb +0 -148
- data/lib/xmi/uml13/mapping.rb +0 -31
- data/lib/xmi/uml13/mappingbody.rb +0 -18
- data/lib/xmi/uml13/message.rb +0 -154
- data/lib/xmi/uml13/message_instance.rb +0 -134
- data/lib/xmi/uml13/message_instanceargument.rb +0 -16
- data/lib/xmi/uml13/message_instancereceiver.rb +0 -16
- data/lib/xmi/uml13/message_instancesender.rb +0 -16
- data/lib/xmi/uml13/message_instancespecification.rb +0 -16
- data/lib/xmi/uml13/messageaction.rb +0 -16
- data/lib/xmi/uml13/messageactivator.rb +0 -16
- data/lib/xmi/uml13/messageinteraction.rb +0 -16
- data/lib/xmi/uml13/messagemessage.rb +0 -16
- data/lib/xmi/uml13/messagemessage2.rb +0 -16
- data/lib/xmi/uml13/messagepredecessor.rb +0 -16
- data/lib/xmi/uml13/messagereceiver.rb +0 -16
- data/lib/xmi/uml13/messagesender.rb +0 -16
- data/lib/xmi/uml13/method.rb +0 -150
- data/lib/xmi/uml13/methodbody.rb +0 -16
- data/lib/xmi/uml13/methodspecification.rb +0 -16
- data/lib/xmi/uml13/model.rb +0 -141
- data/lib/xmi/uml13/model_element.rb +0 -114
- data/lib/xmi/uml13/model_element_owns_diagramowned_diagram.rb +0 -16
- data/lib/xmi/uml13/model_elementbehavior.rb +0 -16
- data/lib/xmi/uml13/model_elementbinding.rb +0 -16
- data/lib/xmi/uml13/model_elementcollaboration.rb +0 -16
- data/lib/xmi/uml13/model_elementconstraint.rb +0 -16
- data/lib/xmi/uml13/model_elementelement_reference.rb +0 -16
- data/lib/xmi/uml13/model_elementimplementation.rb +0 -16
- data/lib/xmi/uml13/model_elementname.rb +0 -18
- data/lib/xmi/uml13/model_elementnamespace.rb +0 -16
- data/lib/xmi/uml13/model_elementpartition.rb +0 -16
- data/lib/xmi/uml13/model_elementpresentation.rb +0 -16
- data/lib/xmi/uml13/model_elementprovision.rb +0 -16
- data/lib/xmi/uml13/model_elementrequirement.rb +0 -16
- data/lib/xmi/uml13/model_elementstereotype.rb +0 -16
- data/lib/xmi/uml13/model_elementtagged_value.rb +0 -16
- data/lib/xmi/uml13/model_elementtemplate.rb +0 -16
- data/lib/xmi/uml13/model_elementtemplate_parameter.rb +0 -16
- data/lib/xmi/uml13/model_elementview.rb +0 -16
- data/lib/xmi/uml13/model_elementvisibility.rb +0 -14
- data/lib/xmi/uml13/model_management.rb +0 -35
- data/lib/xmi/uml13/multiplicity_range.rb +0 -36
- data/lib/xmi/uml13/multiplicity_rangelower.rb +0 -18
- data/lib/xmi/uml13/multiplicity_rangeupper.rb +0 -18
- data/lib/xmi/uml13/namespace.rb +0 -117
- data/lib/xmi/uml13/namespaceowned_element.rb +0 -268
- data/lib/xmi/uml13/node.rb +0 -199
- data/lib/xmi/uml13/nodecomponent.rb +0 -16
- data/lib/xmi/uml13/object.rb +0 -147
- data/lib/xmi/uml13/object_flow_state.rb +0 -158
- data/lib/xmi/uml13/object_flow_statetype_state.rb +0 -16
- data/lib/xmi/uml13/object_set_expression.rb +0 -36
- data/lib/xmi/uml13/operation.rb +0 -176
- data/lib/xmi/uml13/operationcollaboration.rb +0 -16
- data/lib/xmi/uml13/operationconcurrency.rb +0 -14
- data/lib/xmi/uml13/operationis_polymorphic.rb +0 -14
- data/lib/xmi/uml13/operationmethod.rb +0 -16
- data/lib/xmi/uml13/operationoccurrence.rb +0 -16
- data/lib/xmi/uml13/operationspecification.rb +0 -18
- data/lib/xmi/uml13/package.rb +0 -141
- data/lib/xmi/uml13/packageelement_reference.rb +0 -16
- data/lib/xmi/uml13/parameter.rb +0 -137
- data/lib/xmi/uml13/parameterbehavioral_feature.rb +0 -16
- data/lib/xmi/uml13/parameterdefault_value.rb +0 -28
- data/lib/xmi/uml13/parameterkind.rb +0 -14
- data/lib/xmi/uml13/parametersignal.rb +0 -16
- data/lib/xmi/uml13/parametertype.rb +0 -16
- data/lib/xmi/uml13/partition.rb +0 -124
- data/lib/xmi/uml13/partitionactivity_model.rb +0 -16
- data/lib/xmi/uml13/partitioncontents.rb +0 -16
- data/lib/xmi/uml13/presentation.rb +0 -42
- data/lib/xmi/uml13/presentationgeometry.rb +0 -16
- data/lib/xmi/uml13/presentationmodel.rb +0 -16
- data/lib/xmi/uml13/presentationstyle.rb +0 -16
- data/lib/xmi/uml13/presentationview_element.rb +0 -16
- data/lib/xmi/uml13/primitive.rb +0 -194
- data/lib/xmi/uml13/procedure_expression.rb +0 -36
- data/lib/xmi/uml13/pseudo_state.rb +0 -134
- data/lib/xmi/uml13/pseudo_statekind.rb +0 -14
- data/lib/xmi/uml13/reception.rb +0 -157
- data/lib/xmi/uml13/receptionis_polymorphic.rb +0 -14
- data/lib/xmi/uml13/receptionsignal.rb +0 -16
- data/lib/xmi/uml13/receptionspecification.rb +0 -18
- data/lib/xmi/uml13/refinement.rb +0 -140
- data/lib/xmi/uml13/refinementmapping.rb +0 -16
- data/lib/xmi/uml13/request.rb +0 -124
- data/lib/xmi/uml13/requestaction.rb +0 -16
- data/lib/xmi/uml13/requestmessage_instance.rb +0 -16
- data/lib/xmi/uml13/return_action.rb +0 -148
- data/lib/xmi/uml13/send_action.rb +0 -148
- data/lib/xmi/uml13/signal.rb +0 -165
- data/lib/xmi/uml13/signal_event.rb +0 -129
- data/lib/xmi/uml13/signal_eventsignal.rb +0 -16
- data/lib/xmi/uml13/signaloccurrence.rb +0 -16
- data/lib/xmi/uml13/signalparameter.rb +0 -16
- data/lib/xmi/uml13/signalreception.rb +0 -16
- data/lib/xmi/uml13/simple_state.rb +0 -153
- data/lib/xmi/uml13/state.rb +0 -153
- data/lib/xmi/uml13/state_machine.rb +0 -130
- data/lib/xmi/uml13/state_machinecontext.rb +0 -16
- data/lib/xmi/uml13/state_machines.rb +0 -83
- data/lib/xmi/uml13/state_machinesubmachine_state.rb +0 -16
- data/lib/xmi/uml13/state_machinetop.rb +0 -34
- data/lib/xmi/uml13/state_machinetransitions.rb +0 -16
- data/lib/xmi/uml13/state_vertex.rb +0 -129
- data/lib/xmi/uml13/state_vertexincoming.rb +0 -16
- data/lib/xmi/uml13/state_vertexoutgoing.rb +0 -16
- data/lib/xmi/uml13/state_vertexparent.rb +0 -16
- data/lib/xmi/uml13/stateclassifier_in_state.rb +0 -16
- data/lib/xmi/uml13/statedeferred_event.rb +0 -16
- data/lib/xmi/uml13/stateentry.rb +0 -16
- data/lib/xmi/uml13/stateexit.rb +0 -16
- data/lib/xmi/uml13/stateinternal_transition.rb +0 -16
- data/lib/xmi/uml13/statestate_machine.rb +0 -16
- data/lib/xmi/uml13/stereotype.rb +0 -163
- data/lib/xmi/uml13/stereotypebase_class.rb +0 -18
- data/lib/xmi/uml13/stereotypeextended_element.rb +0 -16
- data/lib/xmi/uml13/stereotypeicon.rb +0 -16
- data/lib/xmi/uml13/stereotyperequired_tag.rb +0 -16
- data/lib/xmi/uml13/stereotypestereotype_constraint.rb +0 -16
- data/lib/xmi/uml13/structural_feature.rb +0 -149
- data/lib/xmi/uml13/structural_featurechangeable.rb +0 -14
- data/lib/xmi/uml13/structural_featuremultiplicity.rb +0 -18
- data/lib/xmi/uml13/structural_featuretarget_scope.rb +0 -14
- data/lib/xmi/uml13/structural_featuretype.rb +0 -16
- data/lib/xmi/uml13/structure.rb +0 -194
- data/lib/xmi/uml13/submachine_state.rb +0 -152
- data/lib/xmi/uml13/submachine_statestate_machine.rb +0 -16
- data/lib/xmi/uml13/subsystem.rb +0 -198
- data/lib/xmi/uml13/subsystemis_instantiable.rb +0 -14
- data/lib/xmi/uml13/tagged_value.rb +0 -48
- data/lib/xmi/uml13/tagged_valuemodel_element.rb +0 -16
- data/lib/xmi/uml13/tagged_valuestereotype.rb +0 -16
- data/lib/xmi/uml13/tagged_valuetag.rb +0 -18
- data/lib/xmi/uml13/tagged_valuevalue.rb +0 -18
- data/lib/xmi/uml13/terminate_action.rb +0 -148
- data/lib/xmi/uml13/time_event.rb +0 -127
- data/lib/xmi/uml13/time_eventduration.rb +0 -16
- data/lib/xmi/uml13/time_expression.rb +0 -36
- data/lib/xmi/uml13/trace.rb +0 -137
- data/lib/xmi/uml13/transition.rb +0 -145
- data/lib/xmi/uml13/transitioneffect.rb +0 -16
- data/lib/xmi/uml13/transitionguard.rb +0 -16
- data/lib/xmi/uml13/transitionsource.rb +0 -16
- data/lib/xmi/uml13/transitionstate.rb +0 -16
- data/lib/xmi/uml13/transitionstatemachine.rb +0 -16
- data/lib/xmi/uml13/transitiontarget.rb +0 -16
- data/lib/xmi/uml13/transitiontrigger.rb +0 -16
- data/lib/xmi/uml13/uninterpreted_action.rb +0 -153
- data/lib/xmi/uml13/uninterpreted_actionbody.rb +0 -18
- data/lib/xmi/uml13/usage.rb +0 -137
- data/lib/xmi/uml13/use_case.rb +0 -199
- data/lib/xmi/uml13/use_case_instance.rb +0 -147
- data/lib/xmi/uml13/use_caseextension_point.rb +0 -18
- data/lib/xmi/uml13/use_cases.rb +0 -32
- data/lib/xmi/uml13/view_element.rb +0 -36
- data/lib/xmi/uml13/view_elementmodel.rb +0 -16
- data/lib/xmi/uml13/view_elementpresentation.rb +0 -16
- data/lib/xmi/uml13/xm_iextension.rb +0 -27
- data/lib/xmi/uml13/xm_ireference.rb +0 -17
- data/lib/xmi/uml13.rb +0 -368
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d7aab70974d7d4b208cb997049d1c03f8a2ec6680fbf3315ca8cf3f034ef90c
|
4
|
+
data.tar.gz: 5e27cde7e482acbf00591f6216161847f9e73dacaf3885c794acd6d982fe8fef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dbec019dc36b1a0e174fe0712708b8f1e3c11bdbed28e5abd8812d62c9429c0b5d1673319b815b22c6050dc4e5eaa059c7cb595f545ccb04fe5d47bc6879508
|
7
|
+
data.tar.gz: '094a8476d95e174ef9889865e654435de13924efa497cd225247d50d7d245f13085e67dadc2a468d72ad5120b56ea9228b6b960cf8e93d6e6361a4c7482a2772'
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
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::
|
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::
|
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::
|
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
|
-
|
66
|
-
|
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,
|
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
|
-
|
995
|
-
|
996
|
-
|
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
|
-
|
999
|
-
|
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
|
-
|
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
|
-
|
958
|
+
def fix_encoding(xml_content)
|
959
|
+
return xml_content if xml_content.valid_encoding?
|
1051
960
|
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
961
|
+
xml_content
|
962
|
+
.encode("UTF-16be", invalid: :replace, replace: "?")
|
963
|
+
.encode("UTF-8")
|
964
|
+
end
|
1056
965
|
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
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::
|
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,
|
616
|
-
attribute :package_import,
|
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/
|
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/
|
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
data/lib/xmi.rb
CHANGED