xmi 0.5.9 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +6 -5
- data/Gemfile +0 -1
- data/lib/xmi/add.rb +1 -0
- data/lib/xmi/custom_profile/abstract.rb +1 -0
- data/lib/xmi/custom_profile/basic_doc.rb +1 -0
- data/lib/xmi/custom_profile/bibliography.rb +1 -0
- data/lib/xmi/custom_profile/edition.rb +1 -0
- data/lib/xmi/custom_profile/enumeration.rb +1 -0
- data/lib/xmi/custom_profile/informative.rb +1 -0
- data/lib/xmi/custom_profile/invariant.rb +1 -0
- data/lib/xmi/custom_profile/number.rb +1 -0
- data/lib/xmi/custom_profile/ocl.rb +1 -0
- data/lib/xmi/custom_profile/persistence.rb +1 -0
- data/lib/xmi/custom_profile/publication_date.rb +1 -0
- data/lib/xmi/custom_profile/year_version.rb +1 -0
- data/lib/xmi/delete.rb +1 -0
- data/lib/xmi/difference.rb +1 -0
- data/lib/xmi/documentation.rb +1 -0
- data/lib/xmi/extension.rb +1 -0
- data/lib/xmi/namespace/omg.rb +6 -0
- data/lib/xmi/replace.rb +1 -0
- data/lib/xmi/root.rb +3 -2
- data/lib/xmi/sparx/connector/appearance.rb +2 -0
- data/lib/xmi/sparx/connector/connector.rb +3 -0
- data/lib/xmi/sparx/connector/end_base.rb +5 -0
- data/lib/xmi/sparx/connector/end_constraint.rb +3 -0
- data/lib/xmi/sparx/connector/end_modifiers.rb +2 -0
- data/lib/xmi/sparx/connector/end_role.rb +2 -0
- data/lib/xmi/sparx/connector/end_style.rb +2 -0
- data/lib/xmi/sparx/connector/end_type.rb +2 -0
- data/lib/xmi/sparx/connector/labels.rb +2 -0
- data/lib/xmi/sparx/connector/model.rb +1 -0
- data/lib/xmi/sparx/connector/properties.rb +2 -0
- data/lib/xmi/sparx/custom_profile.rb +1 -0
- data/lib/xmi/sparx/diagram.rb +6 -0
- data/lib/xmi/sparx/ea_stub.rb +1 -0
- data/lib/xmi/sparx/ea_uml.rb +1 -0
- data/lib/xmi/sparx/element/association.rb +8 -0
- data/lib/xmi/sparx/element/attribute.rb +3 -0
- data/lib/xmi/sparx/element/bounds.rb +2 -0
- data/lib/xmi/sparx/element/code.rb +2 -0
- data/lib/xmi/sparx/element/containment.rb +2 -0
- data/lib/xmi/sparx/element/coords.rb +2 -0
- data/lib/xmi/sparx/element/documentation.rb +2 -0
- data/lib/xmi/sparx/element/element.rb +3 -0
- data/lib/xmi/sparx/element/extended_properties.rb +2 -0
- data/lib/xmi/sparx/element/flags.rb +2 -0
- data/lib/xmi/sparx/element/links.rb +2 -0
- data/lib/xmi/sparx/element/model.rb +2 -1
- data/lib/xmi/sparx/element/package_properties.rb +2 -0
- data/lib/xmi/sparx/element/paths.rb +2 -0
- data/lib/xmi/sparx/element/project.rb +2 -0
- data/lib/xmi/sparx/element/properties.rb +2 -0
- data/lib/xmi/sparx/element/stereotype.rb +2 -0
- data/lib/xmi/sparx/element/style.rb +2 -0
- data/lib/xmi/sparx/element/styleex.rb +2 -0
- data/lib/xmi/sparx/element/tag.rb +3 -0
- data/lib/xmi/sparx/element/times.rb +2 -0
- data/lib/xmi/sparx/element/xrefs.rb +2 -0
- data/lib/xmi/sparx/extension.rb +1 -0
- data/lib/xmi/sparx/gml/application_schema.rb +1 -0
- data/lib/xmi/sparx/gml/code_list.rb +1 -0
- data/lib/xmi/sparx/gml/data_type.rb +1 -0
- data/lib/xmi/sparx/gml/enumeration.rb +1 -0
- data/lib/xmi/sparx/gml/feature_type.rb +1 -0
- data/lib/xmi/sparx/gml/property.rb +1 -0
- data/lib/xmi/sparx/gml/type.rb +1 -0
- data/lib/xmi/sparx/gml/union.rb +1 -0
- data/lib/xmi/sparx/mappings/base_mapping.rb +1 -1
- data/lib/xmi/sparx/primitive_type.rb +2 -0
- data/lib/xmi/sparx/root.rb +1 -0
- data/lib/xmi/sparx/sys_ph_s.rb +1 -0
- data/lib/xmi/uml/annotated_element.rb +1 -0
- data/lib/xmi/uml/association_generalization.rb +1 -0
- data/lib/xmi/uml/bounds.rb +3 -2
- data/lib/xmi/uml/default_value.rb +5 -0
- data/lib/xmi/uml/diagram.rb +1 -0
- data/lib/xmi/uml/member_end.rb +1 -0
- data/lib/xmi/uml/owned_attribute.rb +1 -0
- data/lib/xmi/uml/owned_comment.rb +1 -0
- data/lib/xmi/uml/owned_element.rb +2 -1
- data/lib/xmi/uml/owned_end.rb +1 -2
- data/lib/xmi/uml/owned_literal.rb +1 -0
- data/lib/xmi/uml/owned_operation.rb +1 -0
- data/lib/xmi/uml/owned_parameter.rb +1 -0
- data/lib/xmi/uml/package_import.rb +1 -0
- data/lib/xmi/uml/packaged_element.rb +1 -0
- data/lib/xmi/uml/precondition.rb +1 -0
- data/lib/xmi/uml/profile.rb +1 -0
- data/lib/xmi/uml/profile_application.rb +1 -0
- data/lib/xmi/uml/specification.rb +1 -0
- data/lib/xmi/uml/type.rb +1 -0
- data/lib/xmi/uml/uml_model.rb +2 -1
- data/lib/xmi/v20110701.rb +1 -0
- data/lib/xmi/v20131001.rb +1 -0
- data/lib/xmi/v20161101.rb +1 -0
- data/lib/xmi/version.rb +1 -1
- data/xmi.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 621742aa6b438d4102e5bed3f5c9e726d0b2e79058516c2fde73b801e324dd4f
|
|
4
|
+
data.tar.gz: a1d9fe2a101517e214cd61b834494865777b23db5d1da98509d9ef5c0ddbd8c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f20f758fbbfd769b8ed45e8b808e0b6b621a2bfef67eca6d6063cd9749c5e05ea22e870d0dae4d04d1e06dc95e29413f1231c22b201c5ccd42fe0cb6ba678c5
|
|
7
|
+
data.tar.gz: 8551b6d715330eb214bf6d58135007656cc34f9057b0e8497ba139d07d84e568594a5cc886d9beaf4352694ea1ce92c8757adac79013c387426abb13837f1abd
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2026-
|
|
3
|
+
# on 2026-05-20 14:51:37 UTC using RuboCop version 1.86.1.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
@@ -11,7 +11,7 @@ Gemspec/RequiredRubyVersion:
|
|
|
11
11
|
Exclude:
|
|
12
12
|
- 'xmi.gemspec'
|
|
13
13
|
|
|
14
|
-
# Offense count:
|
|
14
|
+
# Offense count: 79
|
|
15
15
|
# This cop supports safe autocorrection (--autocorrect).
|
|
16
16
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
|
|
17
17
|
# URISchemes: http, https
|
|
@@ -44,7 +44,7 @@ Metrics/AbcSize:
|
|
|
44
44
|
Metrics/BlockLength:
|
|
45
45
|
Max: 98
|
|
46
46
|
|
|
47
|
-
# Offense count:
|
|
47
|
+
# Offense count: 4
|
|
48
48
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
49
49
|
Metrics/CyclomaticComplexity:
|
|
50
50
|
Exclude:
|
|
@@ -103,8 +103,9 @@ RSpec/DescribeClass:
|
|
|
103
103
|
- 'spec/xmi/edge_cases_spec.rb'
|
|
104
104
|
- 'spec/xmi/namespace_aliases_spec.rb'
|
|
105
105
|
- 'spec/xmi/versioning_spec.rb'
|
|
106
|
+
- 'spec/xmi/sparx/mixed_prefix_style_spec.rb'
|
|
106
107
|
|
|
107
|
-
# Offense count:
|
|
108
|
+
# Offense count: 37
|
|
108
109
|
# Configuration parameters: CountAsOne.
|
|
109
110
|
RSpec/ExampleLength:
|
|
110
111
|
Max: 33
|
|
@@ -119,7 +120,7 @@ RSpec/MultipleDescribes:
|
|
|
119
120
|
Exclude:
|
|
120
121
|
- 'spec/xmi/sparx/gml/shared_attributes_spec.rb'
|
|
121
122
|
|
|
122
|
-
# Offense count:
|
|
123
|
+
# Offense count: 57
|
|
123
124
|
RSpec/MultipleExpectations:
|
|
124
125
|
Max: 8
|
|
125
126
|
|
data/Gemfile
CHANGED
data/lib/xmi/add.rb
CHANGED
data/lib/xmi/delete.rb
CHANGED
data/lib/xmi/difference.rb
CHANGED
data/lib/xmi/documentation.rb
CHANGED
data/lib/xmi/extension.rb
CHANGED
data/lib/xmi/namespace/omg.rb
CHANGED
|
@@ -26,6 +26,7 @@ module Xmi
|
|
|
26
26
|
class Uml20131001 < Lutaml::Xml::Namespace
|
|
27
27
|
uri "http://www.omg.org/spec/UML/20131001"
|
|
28
28
|
prefix_default "uml"
|
|
29
|
+
element_form_default :unqualified
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
class Uml20161101 < Lutaml::Xml::Namespace
|
|
@@ -36,6 +37,7 @@ module Xmi
|
|
|
36
37
|
class UmlDi20131001 < Lutaml::Xml::Namespace
|
|
37
38
|
uri "http://www.omg.org/spec/UML/20131001/UMLDI"
|
|
38
39
|
prefix_default "umldi"
|
|
40
|
+
element_form_default :unqualified
|
|
39
41
|
end
|
|
40
42
|
|
|
41
43
|
class UmlDi20161101 < Lutaml::Xml::Namespace
|
|
@@ -60,21 +62,25 @@ module Xmi
|
|
|
60
62
|
class Xmi < Lutaml::Xml::Namespace
|
|
61
63
|
uri "http://www.omg.org/spec/XMI/20131001"
|
|
62
64
|
prefix_default "xmi"
|
|
65
|
+
element_form_default :unqualified
|
|
63
66
|
end
|
|
64
67
|
|
|
65
68
|
class Uml < Lutaml::Xml::Namespace
|
|
66
69
|
uri "http://www.omg.org/spec/UML/20131001"
|
|
67
70
|
prefix_default "uml"
|
|
71
|
+
element_form_default :unqualified
|
|
68
72
|
end
|
|
69
73
|
|
|
70
74
|
class UmlDi < Lutaml::Xml::Namespace
|
|
71
75
|
uri "http://www.omg.org/spec/UML/20131001/UMLDI"
|
|
72
76
|
prefix_default "umldi"
|
|
77
|
+
element_form_default :unqualified
|
|
73
78
|
end
|
|
74
79
|
|
|
75
80
|
class UmlDc < Lutaml::Xml::Namespace
|
|
76
81
|
uri "http://www.omg.org/spec/UML/20131001/UMLDC"
|
|
77
82
|
prefix_default "dc"
|
|
83
|
+
element_form_default :unqualified
|
|
78
84
|
end
|
|
79
85
|
end
|
|
80
86
|
end
|
data/lib/xmi/replace.rb
CHANGED
data/lib/xmi/root.rb
CHANGED
|
@@ -5,6 +5,7 @@ require_relative "uml"
|
|
|
5
5
|
|
|
6
6
|
module Xmi
|
|
7
7
|
class Root < Lutaml::Model::Serializable
|
|
8
|
+
skip_reference_registration
|
|
8
9
|
include XmiIdentity::Attributes
|
|
9
10
|
|
|
10
11
|
attribute :documentation, Documentation
|
|
@@ -46,8 +47,8 @@ module Xmi
|
|
|
46
47
|
|
|
47
48
|
XmiIdentity.apply_xml_mappings(self)
|
|
48
49
|
|
|
49
|
-
map_element "Documentation", to: :documentation
|
|
50
|
-
map_element "Model", to: :model
|
|
50
|
+
map_element "Documentation", to: :documentation, form: :qualified
|
|
51
|
+
map_element "Model", to: :model, form: :qualified
|
|
51
52
|
map_element "Bibliography", to: :bibliography, value_map: VALUE_MAP
|
|
52
53
|
map_element "BasicDoc", to: :basic_doc, value_map: VALUE_MAP
|
|
53
54
|
map_element "enumeration", to: :enumeration, value_map: VALUE_MAP
|
|
@@ -4,6 +4,7 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Connector
|
|
6
6
|
class Appearance < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :linemode, :integer
|
|
8
9
|
attribute :linecolor, :integer
|
|
9
10
|
attribute :linewidth, :integer
|
|
@@ -13,6 +14,7 @@ module Xmi
|
|
|
13
14
|
|
|
14
15
|
xml do
|
|
15
16
|
root "appearance"
|
|
17
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
16
18
|
|
|
17
19
|
map_attribute :linemode, to: :linemode
|
|
18
20
|
map_attribute :linecolor, to: :linecolor
|
|
@@ -4,6 +4,7 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Connector
|
|
6
6
|
class Connector < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :name, :string
|
|
8
9
|
attribute :idref, ::Xmi::Type::XmiIdRef
|
|
9
10
|
attribute :source, Source
|
|
@@ -20,6 +21,7 @@ module Xmi
|
|
|
20
21
|
|
|
21
22
|
xml do
|
|
22
23
|
root "element"
|
|
24
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
23
25
|
|
|
24
26
|
map_attribute "name", to: :name
|
|
25
27
|
map_attribute "idref", to: :idref
|
|
@@ -43,6 +45,7 @@ module Xmi
|
|
|
43
45
|
|
|
44
46
|
xml do
|
|
45
47
|
root "connectors"
|
|
48
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
46
49
|
|
|
47
50
|
map_element "connector", to: :connector, value_map: VALUE_MAP
|
|
48
51
|
end
|
|
@@ -4,6 +4,7 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Connector
|
|
6
6
|
class End < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :idref, ::Xmi::Type::XmiIdRef
|
|
8
9
|
attribute :model, Model
|
|
9
10
|
attribute :role, EndRole
|
|
@@ -17,8 +18,10 @@ module Xmi
|
|
|
17
18
|
end
|
|
18
19
|
|
|
19
20
|
class Source < End
|
|
21
|
+
skip_reference_registration
|
|
20
22
|
xml do
|
|
21
23
|
root "source"
|
|
24
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
22
25
|
|
|
23
26
|
map_attribute "idref", to: :idref
|
|
24
27
|
|
|
@@ -35,8 +38,10 @@ module Xmi
|
|
|
35
38
|
end
|
|
36
39
|
|
|
37
40
|
class Target < End
|
|
41
|
+
skip_reference_registration
|
|
38
42
|
xml do
|
|
39
43
|
root "target"
|
|
44
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
40
45
|
|
|
41
46
|
map_attribute "idref", to: :idref
|
|
42
47
|
|
|
@@ -4,6 +4,7 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Connector
|
|
6
6
|
class EndConstraint < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :name, :string
|
|
8
9
|
attribute :type, ::Xmi::Type::XmiType
|
|
9
10
|
attribute :weight, :float
|
|
@@ -11,6 +12,7 @@ module Xmi
|
|
|
11
12
|
|
|
12
13
|
xml do
|
|
13
14
|
root "constraint"
|
|
15
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
14
16
|
|
|
15
17
|
map_attribute "name", to: :name
|
|
16
18
|
map_attribute "type", to: :type
|
|
@@ -24,6 +26,7 @@ module Xmi
|
|
|
24
26
|
|
|
25
27
|
xml do
|
|
26
28
|
root "constraints"
|
|
29
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
27
30
|
|
|
28
31
|
map_element "constraint", to: :constraint, value_map: VALUE_MAP
|
|
29
32
|
end
|
|
@@ -4,11 +4,13 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Connector
|
|
6
6
|
class EndModifiers < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :is_ordered, :boolean
|
|
8
9
|
attribute :is_navigable, :boolean
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
root "type"
|
|
13
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
12
14
|
|
|
13
15
|
map_attribute "isOrdered", to: :is_ordered
|
|
14
16
|
map_attribute "isNavigable", to: :is_navigable
|
|
@@ -4,12 +4,14 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Connector
|
|
6
6
|
class EndRole < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :name, :string
|
|
8
9
|
attribute :visibility, :string
|
|
9
10
|
attribute :target_scope, :string
|
|
10
11
|
|
|
11
12
|
xml do
|
|
12
13
|
root "role"
|
|
14
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
13
15
|
|
|
14
16
|
map_attribute :name, to: :name
|
|
15
17
|
map_attribute :visibility, to: :visibility
|
|
@@ -4,10 +4,12 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Connector
|
|
6
6
|
class EndStyle < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :value, :string
|
|
8
9
|
|
|
9
10
|
xml do
|
|
10
11
|
root "style"
|
|
12
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
11
13
|
|
|
12
14
|
map_attribute "value", to: :value
|
|
13
15
|
end
|
|
@@ -4,12 +4,14 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Connector
|
|
6
6
|
class EndType < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :aggregation, :string
|
|
8
9
|
attribute :multiplicity, :string
|
|
9
10
|
attribute :containment, :string
|
|
10
11
|
|
|
11
12
|
xml do
|
|
12
13
|
root "type"
|
|
14
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
13
15
|
|
|
14
16
|
map_attribute :aggregation, to: :aggregation
|
|
15
17
|
map_attribute :multiplicity, to: :multiplicity
|
|
@@ -4,6 +4,7 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Connector
|
|
6
6
|
class Labels < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :rb, :string
|
|
8
9
|
attribute :lb, :string
|
|
9
10
|
attribute :mb, :string
|
|
@@ -13,6 +14,7 @@ module Xmi
|
|
|
13
14
|
|
|
14
15
|
xml do
|
|
15
16
|
root "labels"
|
|
17
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
16
18
|
|
|
17
19
|
map_attribute :rb, to: :rb
|
|
18
20
|
map_attribute :lb, to: :lb
|
|
@@ -4,11 +4,13 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Connector
|
|
6
6
|
class Properties < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :ea_type, :string
|
|
8
9
|
attribute :direction, :string
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
root "properties"
|
|
13
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
12
14
|
|
|
13
15
|
map_attribute :ea_type, to: :ea_type
|
|
14
16
|
map_attribute :direction, to: :direction
|
|
@@ -6,6 +6,7 @@ module Xmi
|
|
|
6
6
|
# Contains UML Profile definitions
|
|
7
7
|
# Note: PublicationDate, Edition, Number, YearVersion are defined in Xmi::CustomProfile
|
|
8
8
|
class Profiles < Lutaml::Model::Serializable
|
|
9
|
+
skip_reference_registration
|
|
9
10
|
attribute :profile, Uml::Profile, collection: true
|
|
10
11
|
|
|
11
12
|
xml do
|
data/lib/xmi/sparx/diagram.rb
CHANGED
|
@@ -4,6 +4,7 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Diagram
|
|
6
6
|
class Element < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :geometry, :string
|
|
8
9
|
attribute :subject, :string
|
|
9
10
|
attribute :seqno, :integer
|
|
@@ -11,6 +12,7 @@ module Xmi
|
|
|
11
12
|
|
|
12
13
|
xml do
|
|
13
14
|
root "element"
|
|
15
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
14
16
|
|
|
15
17
|
map_attribute "geometry", to: :geometry
|
|
16
18
|
map_attribute "subject", to: :subject
|
|
@@ -24,6 +26,7 @@ module Xmi
|
|
|
24
26
|
|
|
25
27
|
xml do
|
|
26
28
|
root "elements"
|
|
29
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
27
30
|
|
|
28
31
|
map_element "element", to: :element, value_map: VALUE_MAP
|
|
29
32
|
end
|
|
@@ -36,6 +39,7 @@ module Xmi
|
|
|
36
39
|
|
|
37
40
|
xml do
|
|
38
41
|
root "model"
|
|
42
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
39
43
|
|
|
40
44
|
map_attribute "package", to: :package
|
|
41
45
|
map_attribute "localID", to: :local_id
|
|
@@ -66,6 +70,7 @@ module Xmi
|
|
|
66
70
|
|
|
67
71
|
xml do
|
|
68
72
|
root "diagram"
|
|
73
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
69
74
|
|
|
70
75
|
map_attribute "id", to: :id
|
|
71
76
|
|
|
@@ -88,6 +93,7 @@ module Xmi
|
|
|
88
93
|
|
|
89
94
|
xml do
|
|
90
95
|
root "diagrams"
|
|
96
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
91
97
|
|
|
92
98
|
map_element "diagram", to: :diagram, value_map: VALUE_MAP
|
|
93
99
|
end
|
data/lib/xmi/sparx/ea_stub.rb
CHANGED
data/lib/xmi/sparx/ea_uml.rb
CHANGED
|
@@ -4,6 +4,7 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Element
|
|
6
6
|
class Association < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :id, ::Xmi::Type::XmiId
|
|
8
9
|
attribute :start, :string
|
|
9
10
|
attribute :end, :string
|
|
@@ -11,6 +12,7 @@ module Xmi
|
|
|
11
12
|
|
|
12
13
|
xml do
|
|
13
14
|
root "Association"
|
|
15
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
14
16
|
|
|
15
17
|
map_attribute "id", to: :id
|
|
16
18
|
map_attribute "start", to: :start
|
|
@@ -19,10 +21,12 @@ module Xmi
|
|
|
19
21
|
end
|
|
20
22
|
|
|
21
23
|
class Generalization < Association
|
|
24
|
+
skip_reference_registration
|
|
22
25
|
attribute :name, :string, default: -> { "Generalization" }
|
|
23
26
|
|
|
24
27
|
xml do
|
|
25
28
|
root "Generalization"
|
|
29
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
26
30
|
|
|
27
31
|
map_attribute "id", to: :id
|
|
28
32
|
map_attribute "start", to: :start
|
|
@@ -31,10 +35,12 @@ module Xmi
|
|
|
31
35
|
end
|
|
32
36
|
|
|
33
37
|
class Aggregation < Association
|
|
38
|
+
skip_reference_registration
|
|
34
39
|
attribute :name, :string, default: -> { "Aggregation" }
|
|
35
40
|
|
|
36
41
|
xml do
|
|
37
42
|
root "Aggregation"
|
|
43
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
38
44
|
|
|
39
45
|
map_attribute "id", to: :id
|
|
40
46
|
map_attribute "start", to: :start
|
|
@@ -43,10 +49,12 @@ module Xmi
|
|
|
43
49
|
end
|
|
44
50
|
|
|
45
51
|
class NoteLink < Association
|
|
52
|
+
skip_reference_registration
|
|
46
53
|
attribute :name, :string, default: -> { "NoteLink" }
|
|
47
54
|
|
|
48
55
|
xml do
|
|
49
56
|
root "NoteLink"
|
|
57
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
50
58
|
|
|
51
59
|
map_attribute "id", to: :id
|
|
52
60
|
map_attribute "start", to: :start
|
|
@@ -4,6 +4,7 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Element
|
|
6
6
|
class Attribute < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :idref, ::Xmi::Type::XmiIdRef
|
|
8
9
|
attribute :name, :string
|
|
9
10
|
attribute :scope, :string
|
|
@@ -23,6 +24,7 @@ module Xmi
|
|
|
23
24
|
|
|
24
25
|
xml do
|
|
25
26
|
root "attribute"
|
|
27
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
26
28
|
|
|
27
29
|
map_attribute "idref", to: :idref
|
|
28
30
|
map_attribute "name", to: :name
|
|
@@ -49,6 +51,7 @@ module Xmi
|
|
|
49
51
|
|
|
50
52
|
xml do
|
|
51
53
|
root "attributes"
|
|
54
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
52
55
|
|
|
53
56
|
map_element "attribute", to: :attribute, value_map: VALUE_MAP
|
|
54
57
|
end
|
|
@@ -4,11 +4,13 @@ module Xmi
|
|
|
4
4
|
module Sparx
|
|
5
5
|
module Element
|
|
6
6
|
class Bounds < Lutaml::Model::Serializable
|
|
7
|
+
skip_reference_registration
|
|
7
8
|
attribute :lower, :integer
|
|
8
9
|
attribute :upper, :integer
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
root "bounds"
|
|
13
|
+
namespace ::Xmi::Namespace::Omg::Xmi
|
|
12
14
|
|
|
13
15
|
map_attribute "lower", to: :lower
|
|
14
16
|
map_attribute "upper", to: :upper
|