xmi 0.5.4 → 0.5.5
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 +24 -41
- data/README.adoc +0 -15
- data/lib/xmi/custom_profile/abstract.rb +16 -0
- data/lib/xmi/custom_profile/basic_doc.rb +16 -0
- data/lib/xmi/custom_profile/bibliography.rb +16 -0
- data/lib/xmi/custom_profile/edition.rb +18 -0
- data/lib/xmi/custom_profile/enumeration.rb +16 -0
- data/lib/xmi/custom_profile/informative.rb +16 -0
- data/lib/xmi/custom_profile/invariant.rb +16 -0
- data/lib/xmi/custom_profile/number.rb +18 -0
- data/lib/xmi/custom_profile/ocl.rb +16 -0
- data/lib/xmi/custom_profile/persistence.rb +20 -0
- data/lib/xmi/custom_profile/publication_date.rb +18 -0
- data/lib/xmi/custom_profile/year_version.rb +18 -0
- data/lib/xmi/custom_profile.rb +12 -143
- data/lib/xmi/ea_root/code_generation.rb +141 -0
- data/lib/xmi/ea_root/extension_lifecycle.rb +52 -0
- data/lib/xmi/ea_root/namespace_handling.rb +39 -0
- data/lib/xmi/ea_root/xml_parsing.rb +51 -0
- data/lib/xmi/ea_root.rb +16 -403
- data/lib/xmi/version.rb +1 -1
- metadata +18 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9a7c79e8d907feee2589c9cd13f534297ffd3869b15bf1c05db190b59903fdaa
|
|
4
|
+
data.tar.gz: f46a5b384fe0f8da80d075766fe226d8519c3b0a72739b66220c606012f098ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e54e2c55800f18215428d8001502c9476d1b63a9dd9db3a164de3e0eae569a0fc405b237adc07e2a2e6fbd789e001a2a57df26cc276b3c9ea8ffccc349159a4
|
|
7
|
+
data.tar.gz: 12c434257662c1a5291f915e97b197497a1153676c57b997e0392b00fc90c08ba712781f859ccdaf4b76f25b17ec3c6277480d9f6a2f5c1b763fe92d24f7341c
|
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-04-
|
|
3
|
+
# on 2026-04-21 01:02:50 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,30 +11,13 @@ Gemspec/RequiredRubyVersion:
|
|
|
11
11
|
Exclude:
|
|
12
12
|
- 'xmi.gemspec'
|
|
13
13
|
|
|
14
|
-
# Offense count: 2
|
|
15
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
16
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
17
|
-
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
18
|
-
Layout/ArgumentAlignment:
|
|
19
|
-
Exclude:
|
|
20
|
-
- 'lib/xmi/parser_pipeline.rb'
|
|
21
|
-
- 'lib/xmi/sparx/index.rb'
|
|
22
|
-
|
|
23
|
-
# Offense count: 1
|
|
24
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
25
|
-
Layout/EmptyLinesAfterModuleInclusion:
|
|
26
|
-
Exclude:
|
|
27
|
-
- 'lib/xmi/sparx/gml/shared_attributes.rb'
|
|
28
|
-
|
|
29
14
|
# Offense count: 1
|
|
30
15
|
# This cop supports safe autocorrection (--autocorrect).
|
|
31
|
-
# Configuration parameters:
|
|
32
|
-
#
|
|
33
|
-
|
|
34
|
-
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
35
|
-
Layout/HashAlignment:
|
|
16
|
+
# Configuration parameters: EnforcedStyle.
|
|
17
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
|
18
|
+
Layout/EmptyLinesAroundBlockBody:
|
|
36
19
|
Exclude:
|
|
37
|
-
- '
|
|
20
|
+
- 'spec/xmi/ea_root/extension_loading_spec.rb'
|
|
38
21
|
|
|
39
22
|
# Offense count: 76
|
|
40
23
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -43,14 +26,6 @@ Layout/HashAlignment:
|
|
|
43
26
|
Layout/LineLength:
|
|
44
27
|
Enabled: false
|
|
45
28
|
|
|
46
|
-
# Offense count: 2
|
|
47
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
48
|
-
# Configuration parameters: AllowInHeredoc.
|
|
49
|
-
Layout/TrailingWhitespace:
|
|
50
|
-
Exclude:
|
|
51
|
-
- 'lib/xmi/parser_pipeline.rb'
|
|
52
|
-
- 'lib/xmi/sparx/index.rb'
|
|
53
|
-
|
|
54
29
|
# Offense count: 6
|
|
55
30
|
# Configuration parameters: AllowedMethods.
|
|
56
31
|
# AllowedMethods: enums
|
|
@@ -59,14 +34,14 @@ Lint/ConstantDefinitionInBlock:
|
|
|
59
34
|
- 'lib/xmi/sparx/mappings/base_mapping.rb'
|
|
60
35
|
- 'spec/performance/xmi_parsing_spec.rb'
|
|
61
36
|
|
|
62
|
-
# Offense count:
|
|
37
|
+
# Offense count: 16
|
|
63
38
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
64
39
|
Metrics/AbcSize:
|
|
65
40
|
Exclude:
|
|
66
41
|
- 'lib/tasks/benchmark_runner.rb'
|
|
67
42
|
- 'lib/tasks/performance_comparator.rb'
|
|
68
43
|
- 'lib/tasks/performance_helpers.rb'
|
|
69
|
-
- 'lib/xmi/ea_root.rb'
|
|
44
|
+
- 'lib/xmi/ea_root/code_generation.rb'
|
|
70
45
|
- 'lib/xmi/sparx/index.rb'
|
|
71
46
|
- 'lib/xmi/version_registry.rb'
|
|
72
47
|
- 'spec/performance/xmi_parsing_spec.rb'
|
|
@@ -77,23 +52,25 @@ Metrics/AbcSize:
|
|
|
77
52
|
Metrics/BlockLength:
|
|
78
53
|
Max: 98
|
|
79
54
|
|
|
80
|
-
# Offense count:
|
|
55
|
+
# Offense count: 5
|
|
81
56
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
82
57
|
Metrics/CyclomaticComplexity:
|
|
83
58
|
Exclude:
|
|
84
59
|
- 'lib/tasks/performance_helpers.rb'
|
|
60
|
+
- 'lib/xmi/ea_root/code_generation.rb'
|
|
85
61
|
- 'lib/xmi/sparx/index.rb'
|
|
86
62
|
|
|
87
|
-
# Offense count:
|
|
63
|
+
# Offense count: 28
|
|
88
64
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
89
65
|
Metrics/MethodLength:
|
|
90
|
-
Max:
|
|
66
|
+
Max: 55
|
|
91
67
|
|
|
92
|
-
# Offense count:
|
|
68
|
+
# Offense count: 5
|
|
93
69
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
94
70
|
Metrics/PerceivedComplexity:
|
|
95
71
|
Exclude:
|
|
96
72
|
- 'lib/tasks/performance_helpers.rb'
|
|
73
|
+
- 'lib/xmi/ea_root/code_generation.rb'
|
|
97
74
|
- 'lib/xmi/sparx/index.rb'
|
|
98
75
|
- 'lib/xmi/version_registry.rb'
|
|
99
76
|
|
|
@@ -135,7 +112,7 @@ RSpec/DescribeClass:
|
|
|
135
112
|
- 'spec/xmi/namespace_aliases_spec.rb'
|
|
136
113
|
- 'spec/xmi/versioning_spec.rb'
|
|
137
114
|
|
|
138
|
-
# Offense count:
|
|
115
|
+
# Offense count: 30
|
|
139
116
|
# Configuration parameters: CountAsOne.
|
|
140
117
|
RSpec/ExampleLength:
|
|
141
118
|
Max: 33
|
|
@@ -145,7 +122,12 @@ RSpec/LeakyConstantDeclaration:
|
|
|
145
122
|
Exclude:
|
|
146
123
|
- 'spec/performance/xmi_parsing_spec.rb'
|
|
147
124
|
|
|
148
|
-
# Offense count:
|
|
125
|
+
# Offense count: 1
|
|
126
|
+
RSpec/MultipleDescribes:
|
|
127
|
+
Exclude:
|
|
128
|
+
- 'spec/xmi/sparx/gml/shared_attributes_spec.rb'
|
|
129
|
+
|
|
130
|
+
# Offense count: 40
|
|
149
131
|
RSpec/MultipleExpectations:
|
|
150
132
|
Max: 8
|
|
151
133
|
|
|
@@ -160,10 +142,11 @@ RSpec/NestedGroups:
|
|
|
160
142
|
Max: 4
|
|
161
143
|
|
|
162
144
|
# Offense count: 1
|
|
163
|
-
#
|
|
164
|
-
|
|
145
|
+
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
|
|
146
|
+
# SupportedInflectors: default, active_support
|
|
147
|
+
RSpec/SpecFilePathFormat:
|
|
165
148
|
Exclude:
|
|
166
|
-
- '
|
|
149
|
+
- 'spec/xmi/ea_root/extension_loading_spec.rb'
|
|
167
150
|
|
|
168
151
|
# Offense count: 4
|
|
169
152
|
# Configuration parameters: AllowedClasses.
|
data/README.adoc
CHANGED
|
@@ -66,21 +66,6 @@ xmi_root_model = Xmi::Sparx::Root.parse_xml(xml_content)
|
|
|
66
66
|
Ruby classes and modules defined in XML file dynamically.
|
|
67
67
|
Then, you can generate Ruby objects by `Xmi::Sparx::Root.parse_xml`.
|
|
68
68
|
|
|
69
|
-
=== Output Classes and Modules Generated from Extension into Ruby Files
|
|
70
|
-
|
|
71
|
-
You can also generate Ruby files directly from the XMI content:
|
|
72
|
-
|
|
73
|
-
[source,ruby]
|
|
74
|
-
----
|
|
75
|
-
Xmi::EaRoot.load_extension(
|
|
76
|
-
input_xml_path: 'path/to/your/custom_extension.xml',
|
|
77
|
-
module_name: 'CustomModule'
|
|
78
|
-
)
|
|
79
|
-
Xmi::EaRoot.output_rb_file('path/to/output_file.rb')
|
|
80
|
-
----
|
|
81
|
-
|
|
82
|
-
This approach allows you to save the dynamically generated Ruby code to a file for further use.
|
|
83
|
-
|
|
84
69
|
=== Create Extension XML File
|
|
85
70
|
|
|
86
71
|
If you would like to create an extension, which allows to be loaded later, you
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class Abstract < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_class, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "Abstract"
|
|
10
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
11
|
+
|
|
12
|
+
map_attribute "base_Class", to: :base_class
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class BasicDoc < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_class, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "BasicDoc"
|
|
10
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
11
|
+
|
|
12
|
+
map_attribute "base_Class", to: :base_class
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class Bibliography < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_class, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "Bibliography"
|
|
10
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
11
|
+
|
|
12
|
+
map_attribute "base_Class", to: :base_class
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class Edition < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_package, :string
|
|
7
|
+
attribute :edition, :string
|
|
8
|
+
|
|
9
|
+
xml do
|
|
10
|
+
element "edition"
|
|
11
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
12
|
+
|
|
13
|
+
map_attribute "base_Package", to: :base_package
|
|
14
|
+
map_attribute "edition", to: :edition
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class Enumeration < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_enumeration, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "enumeration"
|
|
10
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
11
|
+
|
|
12
|
+
map_attribute "base_Enumeration", to: :base_enumeration
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class Informative < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_package, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "informative"
|
|
10
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
11
|
+
|
|
12
|
+
map_attribute "base_Package", to: :base_package
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class Invariant < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_constraint, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "invariant"
|
|
10
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
11
|
+
|
|
12
|
+
map_attribute "base_Constraint", to: :base_constraint
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class Number < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_package, :string
|
|
7
|
+
attribute :number, :string
|
|
8
|
+
|
|
9
|
+
xml do
|
|
10
|
+
element "number"
|
|
11
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
12
|
+
|
|
13
|
+
map_attribute "base_Package", to: :base_package
|
|
14
|
+
map_attribute "number", to: :number
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class Ocl < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_constraint, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "OCL"
|
|
10
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
11
|
+
|
|
12
|
+
map_attribute "base_Constraint", to: :base_constraint
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class Persistence < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_class, :string
|
|
7
|
+
attribute :base_enumeration, :string
|
|
8
|
+
attribute :persistence, :string
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "persistence"
|
|
12
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
13
|
+
|
|
14
|
+
map_attribute "base_Class", to: :base_class
|
|
15
|
+
map_attribute "base_Enumeration", to: :base_enumeration
|
|
16
|
+
map_attribute "persistence", to: :persistence
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class PublicationDate < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_package, :string
|
|
7
|
+
attribute :publication_date, :string
|
|
8
|
+
|
|
9
|
+
xml do
|
|
10
|
+
element "publicationDate"
|
|
11
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
12
|
+
|
|
13
|
+
map_attribute "base_Package", to: :base_package
|
|
14
|
+
map_attribute "publicationDate", to: :publication_date
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Xmi
|
|
4
|
+
module CustomProfile
|
|
5
|
+
class YearVersion < Lutaml::Model::Serializable
|
|
6
|
+
attribute :base_package, :string
|
|
7
|
+
attribute :year_version, :string
|
|
8
|
+
|
|
9
|
+
xml do
|
|
10
|
+
element "yearVersion"
|
|
11
|
+
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
12
|
+
|
|
13
|
+
map_attribute "base_Package", to: :base_package
|
|
14
|
+
map_attribute "yearVersion", to: :year_version
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
data/lib/xmi/custom_profile.rb
CHANGED
|
@@ -2,148 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
module Xmi
|
|
4
4
|
module CustomProfile
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
attribute :base_class, :string
|
|
18
|
-
|
|
19
|
-
xml do
|
|
20
|
-
element "BasicDoc"
|
|
21
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
22
|
-
|
|
23
|
-
map_attribute "base_Class", to: :base_class
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
class Enumeration < Lutaml::Model::Serializable
|
|
28
|
-
attribute :base_enumeration, :string
|
|
29
|
-
|
|
30
|
-
xml do
|
|
31
|
-
element "enumeration"
|
|
32
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
33
|
-
|
|
34
|
-
map_attribute "base_Enumeration", to: :base_enumeration
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
class Ocl < Lutaml::Model::Serializable
|
|
39
|
-
attribute :base_constraint, :string
|
|
40
|
-
|
|
41
|
-
xml do
|
|
42
|
-
element "OCL"
|
|
43
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
44
|
-
|
|
45
|
-
map_attribute "base_Constraint", to: :base_constraint
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
class Invariant < Lutaml::Model::Serializable
|
|
50
|
-
attribute :base_constraint, :string
|
|
51
|
-
|
|
52
|
-
xml do
|
|
53
|
-
element "invariant"
|
|
54
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
55
|
-
|
|
56
|
-
map_attribute "base_Constraint", to: :base_constraint
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
class PublicationDate < Lutaml::Model::Serializable
|
|
61
|
-
attribute :base_package, :string
|
|
62
|
-
attribute :publication_date, :string
|
|
63
|
-
|
|
64
|
-
xml do
|
|
65
|
-
element "publicationDate"
|
|
66
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
67
|
-
|
|
68
|
-
map_attribute "base_Package", to: :base_package
|
|
69
|
-
map_attribute "publicationDate", to: :publication_date
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
class Edition < Lutaml::Model::Serializable
|
|
74
|
-
attribute :base_package, :string
|
|
75
|
-
attribute :edition, :string
|
|
76
|
-
|
|
77
|
-
xml do
|
|
78
|
-
element "edition"
|
|
79
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
80
|
-
|
|
81
|
-
map_attribute "base_Package", to: :base_package
|
|
82
|
-
map_attribute "edition", to: :edition
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
class Number < Lutaml::Model::Serializable
|
|
87
|
-
attribute :base_package, :string
|
|
88
|
-
attribute :number, :string
|
|
89
|
-
|
|
90
|
-
xml do
|
|
91
|
-
element "number"
|
|
92
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
93
|
-
|
|
94
|
-
map_attribute "base_Package", to: :base_package
|
|
95
|
-
map_attribute "number", to: :number
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
class YearVersion < Lutaml::Model::Serializable
|
|
100
|
-
attribute :base_package, :string
|
|
101
|
-
attribute :year_version, :string
|
|
102
|
-
|
|
103
|
-
xml do
|
|
104
|
-
element "yearVersion"
|
|
105
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
106
|
-
|
|
107
|
-
map_attribute "base_Package", to: :base_package
|
|
108
|
-
map_attribute "yearVersion", to: :year_version
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
class Informative < Lutaml::Model::Serializable
|
|
113
|
-
attribute :base_package, :string
|
|
114
|
-
|
|
115
|
-
xml do
|
|
116
|
-
element "informative"
|
|
117
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
118
|
-
|
|
119
|
-
map_attribute "base_Package", to: :base_package
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
class Persistence < Lutaml::Model::Serializable
|
|
124
|
-
attribute :base_class, :string
|
|
125
|
-
attribute :base_enumeration, :string
|
|
126
|
-
attribute :persistence, :string
|
|
127
|
-
|
|
128
|
-
xml do
|
|
129
|
-
element "persistence"
|
|
130
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
131
|
-
|
|
132
|
-
map_attribute "base_Class", to: :base_class
|
|
133
|
-
map_attribute "base_Enumeration", to: :base_enumeration
|
|
134
|
-
map_attribute "persistence", to: :persistence
|
|
135
|
-
end
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
class Abstract < Lutaml::Model::Serializable
|
|
139
|
-
attribute :base_class, :string
|
|
140
|
-
|
|
141
|
-
xml do
|
|
142
|
-
element "Abstract"
|
|
143
|
-
namespace ::Xmi::Namespace::Sparx::CustomProfile
|
|
144
|
-
|
|
145
|
-
map_attribute "base_Class", to: :base_class
|
|
146
|
-
end
|
|
147
|
-
end
|
|
5
|
+
autoload :Bibliography, "xmi/custom_profile/bibliography"
|
|
6
|
+
autoload :BasicDoc, "xmi/custom_profile/basic_doc"
|
|
7
|
+
autoload :Enumeration, "xmi/custom_profile/enumeration"
|
|
8
|
+
autoload :Ocl, "xmi/custom_profile/ocl"
|
|
9
|
+
autoload :Invariant, "xmi/custom_profile/invariant"
|
|
10
|
+
autoload :PublicationDate, "xmi/custom_profile/publication_date"
|
|
11
|
+
autoload :Edition, "xmi/custom_profile/edition"
|
|
12
|
+
autoload :Number, "xmi/custom_profile/number"
|
|
13
|
+
autoload :YearVersion, "xmi/custom_profile/year_version"
|
|
14
|
+
autoload :Informative, "xmi/custom_profile/informative"
|
|
15
|
+
autoload :Persistence, "xmi/custom_profile/persistence"
|
|
16
|
+
autoload :Abstract, "xmi/custom_profile/abstract"
|
|
148
17
|
end
|
|
149
18
|
end
|