xmi 0.3.10 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -5
- data/README.adoc +89 -0
- data/lib/xmi/add.rb +11 -13
- data/lib/xmi/delete.rb +9 -11
- data/lib/xmi/difference.rb +9 -11
- data/lib/xmi/documentation.rb +16 -18
- data/lib/xmi/ea_root.rb +18 -17
- data/lib/xmi/extension.rb +9 -11
- data/lib/xmi/extensions/eauml.rb +2 -2
- data/lib/xmi/extensions/gml.rb +37 -35
- data/lib/xmi/replace.rb +11 -13
- data/lib/xmi/root.rb +57 -10
- data/lib/xmi/sparx.rb +302 -289
- data/lib/xmi/the_custom_profile.rb +149 -0
- data/lib/xmi/uml.rb +135 -136
- data/lib/xmi/version.rb +1 -1
- data/lib/xmi.rb +15 -9
- data/xmi.gemspec +1 -1
- metadata +8 -7
@@ -0,0 +1,149 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Xmi
|
4
|
+
module TheCustomProfile
|
5
|
+
class Bibliography < Lutaml::Model::Serializable
|
6
|
+
attribute :base_class, :string
|
7
|
+
|
8
|
+
xml do
|
9
|
+
root "Bibliography"
|
10
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
11
|
+
|
12
|
+
map_attribute "base_Class", to: :base_class
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
class BasicDoc < Lutaml::Model::Serializable
|
17
|
+
attribute :base_class, :string
|
18
|
+
|
19
|
+
xml do
|
20
|
+
root "BasicDoc"
|
21
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
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
|
+
root "enumeration"
|
32
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
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
|
+
root "OCL"
|
43
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
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
|
+
root "invariant"
|
54
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
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
|
+
root "publicationDate"
|
66
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
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
|
+
root "edition"
|
79
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
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
|
+
root "number"
|
92
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
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
|
+
root "yearVersion"
|
105
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
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
|
+
root "informative"
|
117
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
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
|
+
root "persistence"
|
130
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
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
|
+
root "Abstract"
|
143
|
+
namespace "http://www.sparxsystems.com/profiles/thecustomprofile/1.0", "thecustomprofile"
|
144
|
+
|
145
|
+
map_attribute "base_Class", to: :base_class
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|