xmi 0.3.8 → 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 +56 -111
- data/lib/xmi/uml.rb +5 -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
@@ -622,6 +622,26 @@ module Xmi
|
|
622
622
|
end
|
623
623
|
end
|
624
624
|
|
625
|
+
class SparxConnectorLabels < Shale::Mapper
|
626
|
+
attribute :rb, Shale::Type::String
|
627
|
+
attribute :lb, Shale::Type::String
|
628
|
+
attribute :mb, Shale::Type::String
|
629
|
+
attribute :rt, Shale::Type::String
|
630
|
+
attribute :lt, Shale::Type::String
|
631
|
+
attribute :mt, Shale::Type::String
|
632
|
+
|
633
|
+
xml do
|
634
|
+
root "labels"
|
635
|
+
|
636
|
+
map_attribute :rb, to: :rb
|
637
|
+
map_attribute :lb, to: :lb
|
638
|
+
map_attribute :mb, to: :mb
|
639
|
+
map_attribute :rt, to: :rt
|
640
|
+
map_attribute :lt, to: :lt
|
641
|
+
map_attribute :mt, to: :mt
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
625
645
|
class SparxConnector < Shale::Mapper
|
626
646
|
attribute :idref, Shale::Type::String
|
627
647
|
attribute :source, SparxConnectorSource
|
@@ -630,7 +650,7 @@ module Xmi
|
|
630
650
|
attribute :properties, SparxConnectorProperties
|
631
651
|
attribute :documentation, Shale::Type::String
|
632
652
|
attribute :appearance, SparxConnectorAppearance
|
633
|
-
attribute :labels,
|
653
|
+
attribute :labels, SparxConnectorLabels
|
634
654
|
attribute :extended_properties, SparxElementExtendedProperties
|
635
655
|
attribute :style, SparxElementStyle
|
636
656
|
attribute :tags, SparxElementTags
|
@@ -674,31 +694,9 @@ module Xmi
|
|
674
694
|
end
|
675
695
|
end
|
676
696
|
|
677
|
-
class SparxPrimitiveTypes2013 < Shale::Mapper
|
678
|
-
attribute :packaged_element, Uml::PackagedElement2013, collection: true
|
679
|
-
|
680
|
-
xml do
|
681
|
-
root "primitivetypes"
|
682
|
-
|
683
|
-
map_element "packagedElement", to: :packaged_element
|
684
|
-
end
|
685
|
-
end
|
686
|
-
|
687
697
|
class SparxProfiles < Shale::Mapper
|
688
698
|
attribute :profile, Uml::Profile, collection: true
|
689
699
|
|
690
|
-
xml do
|
691
|
-
root "profiles"
|
692
|
-
|
693
|
-
map_element "Profile", to: :profile,
|
694
|
-
namespace: "http://www.omg.org/spec/UML/20161101",
|
695
|
-
prefix: "uml"
|
696
|
-
end
|
697
|
-
end
|
698
|
-
|
699
|
-
class SparxProfiles2013 < Shale::Mapper
|
700
|
-
attribute :profile, Uml::Profile2013, collection: true
|
701
|
-
|
702
700
|
xml do
|
703
701
|
root "profiles"
|
704
702
|
|
@@ -823,7 +821,7 @@ module Xmi
|
|
823
821
|
attribute :extender_id, Shale::Type::String
|
824
822
|
attribute :elements, SparxElements
|
825
823
|
attribute :connectors, SparxConnectors
|
826
|
-
attribute :primitive_types,
|
824
|
+
attribute :primitive_types, SparxPrimitiveTypes
|
827
825
|
attribute :diagrams, SparxDiagrams
|
828
826
|
attribute :ea_stub, SparxEAStub, collection: true
|
829
827
|
end
|
@@ -855,31 +853,6 @@ module Xmi
|
|
855
853
|
end
|
856
854
|
end
|
857
855
|
|
858
|
-
class SparxExtension2013 < Shale::Mapper
|
859
|
-
include SparxExtensionAttributes
|
860
|
-
attribute :profiles, SparxProfiles2013
|
861
|
-
|
862
|
-
xml do
|
863
|
-
root "Extension"
|
864
|
-
|
865
|
-
map_attribute "id", to: :id, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
|
866
|
-
map_attribute "label", to: :label, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
|
867
|
-
map_attribute "uuid", to: :uuid, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
|
868
|
-
map_attribute "href", to: :href
|
869
|
-
map_attribute "idref", to: :idref, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
|
870
|
-
map_attribute "type", to: :type, prefix: "xmi", namespace: "http://www.omg.org/spec/XMI/20131001"
|
871
|
-
map_attribute "extender", to: :extender
|
872
|
-
map_attribute "extenderID", to: :extender_id
|
873
|
-
|
874
|
-
map_element "elements", to: :elements
|
875
|
-
map_element "connectors", to: :connectors
|
876
|
-
map_element "primitivetypes", to: :primitive_types
|
877
|
-
map_element "profiles", to: :profiles
|
878
|
-
map_element "diagrams", to: :diagrams
|
879
|
-
map_element "EAStub", to: :ea_stub
|
880
|
-
end
|
881
|
-
end
|
882
|
-
|
883
856
|
class SparxSysPhS < Shale::Mapper
|
884
857
|
attribute :base_package, Shale::Type::String
|
885
858
|
attribute :name, Shale::Type::String
|
@@ -971,72 +944,44 @@ module Xmi
|
|
971
944
|
include SparxRootAttributes
|
972
945
|
attribute :extension, SparxExtension
|
973
946
|
|
974
|
-
|
975
|
-
|
976
|
-
|
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)
|
977
952
|
|
978
|
-
|
979
|
-
|
980
|
-
map_attribute "uuid", to: :uuid
|
981
|
-
map_attribute "href", to: :href
|
982
|
-
map_attribute "idref", to: :idref
|
983
|
-
map_attribute "type", to: :type
|
953
|
+
from_xml(xml_content)
|
954
|
+
end
|
984
955
|
|
985
|
-
|
986
|
-
map_element "publicationDate", to: :publication_date,
|
987
|
-
namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0",
|
988
|
-
prefix: "thecustomprofile"
|
989
|
-
map_element "edition", to: :edition,
|
990
|
-
namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0",
|
991
|
-
prefix: "thecustomprofile"
|
992
|
-
map_element "number", to: :number,
|
993
|
-
namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0",
|
994
|
-
prefix: "thecustomprofile"
|
995
|
-
map_element "yearVersion", to: :year_version,
|
996
|
-
namespace: "http://www.sparxsystems.com/profiles/thecustomprofile/1.0",
|
997
|
-
prefix: "thecustomprofile"
|
998
|
-
map_element "ModelicaParameter", to: :modelica_parameter,
|
999
|
-
namespace: "http://www.sparxsystems.com/profiles/SysPhS/1.0",
|
1000
|
-
prefix: "SysPhS"
|
1001
|
-
map_element "import", to: :eauml_import,
|
1002
|
-
namespace: "http://www.sparxsystems.com/profiles/EAUML/1.0",
|
1003
|
-
prefix: "EAUML"
|
1004
|
-
map_element "ApplicationSchema", to: :gml_application_schema,
|
1005
|
-
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1006
|
-
prefix: "GML"
|
1007
|
-
map_element "CodeList", to: :gml_code_list,
|
1008
|
-
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1009
|
-
prefix: "GML"
|
1010
|
-
map_element "DataType", to: :gml_data_type,
|
1011
|
-
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1012
|
-
prefix: "GML"
|
1013
|
-
map_element "Union", to: :gml_union,
|
1014
|
-
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1015
|
-
prefix: "GML"
|
1016
|
-
map_element "Enumeration", to: :gml_enumeration,
|
1017
|
-
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1018
|
-
prefix: "GML"
|
1019
|
-
map_element "Type", to: :gml_type,
|
1020
|
-
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1021
|
-
prefix: "GML"
|
1022
|
-
map_element "FeatureType", to: :gml_feature_type,
|
1023
|
-
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1024
|
-
prefix: "GML"
|
1025
|
-
map_element "property", to: :gml_property,
|
1026
|
-
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1027
|
-
prefix: "GML"
|
1028
|
-
MAP
|
956
|
+
private
|
1029
957
|
|
1030
|
-
|
958
|
+
def fix_encoding(xml_content)
|
959
|
+
return xml_content if xml_content.valid_encoding?
|
1031
960
|
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
961
|
+
xml_content
|
962
|
+
.encode("UTF-16be", invalid: :replace, replace: "?")
|
963
|
+
.encode("UTF-8")
|
964
|
+
end
|
1036
965
|
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
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
|
1040
985
|
|
1041
986
|
@@default_mapping = <<-MAP # rubocop:disable Style/ClassVars
|
1042
987
|
root "XMI"
|
@@ -1097,7 +1042,7 @@ module Xmi
|
|
1097
1042
|
@@mapping ||= @@default_mapping # rubocop:disable Style/ClassVars
|
1098
1043
|
|
1099
1044
|
xml do
|
1100
|
-
eval Xmi::Sparx::
|
1045
|
+
eval Xmi::Sparx::SparxRoot.class_variable_get("@@mapping") # rubocop:disable Security/Eval
|
1101
1046
|
end
|
1102
1047
|
end
|
1103
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
|
|
@@ -473,6 +375,7 @@ module Xmi
|
|
473
375
|
|
474
376
|
map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
475
377
|
map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
378
|
+
map_attribute "text", to: :text
|
476
379
|
map_attribute "modelElement", to: :model_element
|
477
380
|
|
478
381
|
map_element "ownedElement", to: :owned_element
|
@@ -498,22 +401,6 @@ module Xmi
|
|
498
401
|
class Diagram < Shale::Mapper
|
499
402
|
include DiagramAttributes
|
500
403
|
|
501
|
-
xml do
|
502
|
-
root "Diagram"
|
503
|
-
namespace "http://www.omg.org/spec/UML/20161101/UMLDI", "umldi"
|
504
|
-
|
505
|
-
map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
506
|
-
map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
507
|
-
map_attribute "isFrame", to: :is_frame
|
508
|
-
map_attribute "modelElement", to: :model_element
|
509
|
-
|
510
|
-
map_element "ownedElement", to: :owned_element, namespace: nil, prefix: nil
|
511
|
-
end
|
512
|
-
end
|
513
|
-
|
514
|
-
class Diagram2013 < Shale::Mapper
|
515
|
-
include DiagramAttributes
|
516
|
-
|
517
404
|
xml do
|
518
405
|
root "Diagram"
|
519
406
|
namespace "http://www.omg.org/spec/UML/20131001/UMLDI", "umldi"
|
@@ -576,19 +463,6 @@ module Xmi
|
|
576
463
|
class PackageImport < Shale::Mapper
|
577
464
|
include PackageImportAttributes
|
578
465
|
|
579
|
-
xml do
|
580
|
-
root "packageImport"
|
581
|
-
|
582
|
-
map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
583
|
-
map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
|
584
|
-
|
585
|
-
map_element "importedPackage", to: :imported_package, namespace: nil, prefix: nil
|
586
|
-
end
|
587
|
-
end
|
588
|
-
|
589
|
-
class PackageImport2013 < Shale::Mapper
|
590
|
-
include PackageImportAttributes
|
591
|
-
|
592
466
|
xml do
|
593
467
|
root "packageImport"
|
594
468
|
|
@@ -611,40 +485,20 @@ module Xmi
|
|
611
485
|
|
612
486
|
class UmlModel < Shale::Mapper
|
613
487
|
include UmlModelAttributes
|
614
|
-
attribute :packaged_element,
|
615
|
-
attribute :package_import,
|
488
|
+
attribute :packaged_element, PackagedElement, collection: true
|
489
|
+
attribute :package_import, PackageImport, collection: true
|
616
490
|
attribute :diagram, Diagram
|
617
491
|
|
618
492
|
xml do
|
619
493
|
root "Model"
|
620
|
-
namespace "http://www.omg.org/spec/UML/
|
494
|
+
namespace "http://www.omg.org/spec/UML/20131001", "uml"
|
621
495
|
|
622
496
|
map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
623
497
|
map_attribute "name", to: :name
|
624
498
|
|
625
499
|
map_element "packageImport", to: :package_import, namespace: nil, prefix: nil
|
626
500
|
map_element "packagedElement", to: :packaged_element, namespace: nil, prefix: nil
|
627
|
-
map_element "Diagram", to: :diagram, namespace: "http://www.omg.org/spec/UML/
|
628
|
-
map_element "profileApplication", to: :profile_application, namespace: nil, prefix: nil
|
629
|
-
end
|
630
|
-
end
|
631
|
-
|
632
|
-
class UmlModel2013 < Shale::Mapper
|
633
|
-
include UmlModelAttributes
|
634
|
-
attribute :packaged_element, PackagedElement2013, collection: true
|
635
|
-
attribute :package_import, PackageImport2013, collection: true
|
636
|
-
attribute :diagram, Diagram2013
|
637
|
-
|
638
|
-
xml do
|
639
|
-
root "Model"
|
640
|
-
namespace "http://www.omg.org/spec/UML/20161101", "uml"
|
641
|
-
|
642
|
-
map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
|
643
|
-
map_attribute "name", to: :name
|
644
|
-
|
645
|
-
map_element "packageImport", to: :package_import, namespace: nil, prefix: nil
|
646
|
-
map_element "packagedElement", to: :packaged_element, namespace: nil, prefix: nil
|
647
|
-
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"
|
648
502
|
map_element "profileApplication", to: :profile_application, namespace: nil, prefix: nil
|
649
503
|
end
|
650
504
|
end
|
@@ -671,24 +525,6 @@ module Xmi
|
|
671
525
|
include ProfileAttributes
|
672
526
|
attribute :owned_comment, OwnedComment, collection: true
|
673
527
|
|
674
|
-
xml do
|
675
|
-
root "Profile"
|
676
|
-
|
677
|
-
map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20161101", prefix: "xmi"
|
678
|
-
map_attribute "name", to: :name
|
679
|
-
map_attribute "metamodelReference", to: :metamodel_reference
|
680
|
-
map_attribute "nsPrefix", to: :ns_prefix
|
681
|
-
|
682
|
-
map_element "ownedComment", to: :owned_comment
|
683
|
-
map_element "packageImport", to: :package_import, namespace: nil, prefix: nil
|
684
|
-
map_element "packagedElement", to: :packaged_element
|
685
|
-
end
|
686
|
-
end
|
687
|
-
|
688
|
-
class Profile2013 < Shale::Mapper
|
689
|
-
include ProfileAttributes
|
690
|
-
attribute :owned_comment, OwnedComment2013, collection: true
|
691
|
-
|
692
528
|
xml do
|
693
529
|
root "Profile"
|
694
530
|
|
data/lib/xmi/version.rb
CHANGED
data/lib/xmi.rb
CHANGED