xmi 0.3.7 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9935af3e266be66b8cbcfc73865ee1edd574d46234e177e629b027a5db3870cc
4
- data.tar.gz: 63ab08288740e703e14c9c0bf4a5aeebfc920430f4e0c58c6ab5b0a451d6dc52
3
+ metadata.gz: 2f0cb0851f52b18efcab9a97ee6787a82799446b120ba911020b782e34303104
4
+ data.tar.gz: 4c2b976f39d3c270aa4cddbdcb4ef4c27e58a53cede30b864e48e3972dcaf368
5
5
  SHA512:
6
- metadata.gz: 8c129eebe21bb4c182a72fca76b90e2868abaf78a10b1fadb1ff2e9d0055e09801f342275f7046955a497dfeb04a3a5e8640e12af154142cf5429f4216e368af
7
- data.tar.gz: bc006ec3ef2dae3fdf4a076dc90763254b32a45d4517cc2bfdf4db1cb0596191533914f5a3b15294137c957f447c9ab8d6c6d80b81b6627f8029987dbbaa24db
6
+ metadata.gz: 6bd6dd8e063b532e04316afc0a95bc7985d7505a7f94e5c2554450885e86b45a34f58f206dfeb1bff1b4962bfc6032fd02deb074fda7133aaa57527b65d4c24a
7
+ data.tar.gz: 5d9a87db0164d03eae68b64de929c535e31c49c702f7c23abe73566feba8f9ca5e3457a81fc0721ee3b0200fee65aea2ad3192a97f935a3b24d0c19064911aaf
@@ -37,15 +37,87 @@ module Xmi
37
37
  end
38
38
  end
39
39
 
40
+ class DataType < Shale::Mapper
41
+ attribute :is_collection, Shale::Type::String
42
+ attribute :no_property_type, Shale::Type::String
43
+ attribute :base_class, Shale::Type::String
44
+
45
+ xml do
46
+ root "DataType"
47
+
48
+ map_attribute "isCollection", to: :is_collection
49
+ map_attribute "noPropertyType", to: :no_property_type
50
+ map_attribute "base_Class", to: :base_class
51
+ end
52
+ end
53
+
54
+ class Union < Shale::Mapper
55
+ attribute :is_collection, Shale::Type::String
56
+ attribute :no_property_type, Shale::Type::String
57
+ attribute :base_class, Shale::Type::String
58
+
59
+ xml do
60
+ root "Union"
61
+
62
+ map_attribute "isCollection", to: :is_collection
63
+ map_attribute "noPropertyType", to: :no_property_type
64
+ map_attribute "base_Class", to: :base_class
65
+ end
66
+ end
67
+
68
+ class Enumeration < Shale::Mapper
69
+ attribute :base_enumeration, Shale::Type::String
70
+
71
+ xml do
72
+ root "Enumeration"
73
+
74
+ map_attribute "base_Enumeration", to: :base_enumeration
75
+ end
76
+ end
77
+
78
+ class Type < Shale::Mapper
79
+ attribute :is_collection, Shale::Type::String
80
+ attribute :no_property_type, Shale::Type::String
81
+ attribute :base_class, Shale::Type::String
82
+
83
+ xml do
84
+ root "Type"
85
+
86
+ map_attribute "isCollection", to: :is_collection
87
+ map_attribute "noPropertyType", to: :no_property_type
88
+ map_attribute "base_Class", to: :base_class
89
+ end
90
+ end
91
+
92
+ class FeatureType < Shale::Mapper
93
+ attribute :is_collection, Shale::Type::String
94
+ attribute :no_property_type, Shale::Type::String
95
+ attribute :base_class, Shale::Type::String
96
+ attribute :by_value_property_type, Shale::Type::String
97
+
98
+ xml do
99
+ root "FeatureType"
100
+
101
+ map_attribute "isCollection", to: :is_collection
102
+ map_attribute "noPropertyType", to: :no_property_type
103
+ map_attribute "base_Class", to: :base_class
104
+ map_attribute "byValuePropertyType", to: :by_value_property_type
105
+ end
106
+ end
107
+
40
108
  class Property < Shale::Mapper
41
109
  attribute :sequence_number, Shale::Type::String
42
110
  attribute :base_property, Shale::Type::String
111
+ attribute :is_metadata, Shale::Type::String
112
+ attribute :inline_or_by_reference, Shale::Type::String
43
113
 
44
114
  xml do
45
115
  root "property"
46
116
 
47
117
  map_attribute "sequenceNumber", to: :sequence_number
48
118
  map_attribute "base_Property", to: :base_property
119
+ map_attribute "isMetadata", to: :is_metadata
120
+ map_attribute "inlineOrByReference", to: :inline_or_by_reference
49
121
  end
50
122
  end
51
123
  end
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, Shale::Type::String
653
+ attribute :labels, SparxConnectorLabels
634
654
  attribute :extended_properties, SparxElementExtendedProperties
635
655
  attribute :style, SparxElementStyle
636
656
  attribute :tags, SparxElementTags
@@ -957,6 +977,11 @@ module Xmi
957
977
  attribute :eauml_import, EaRoot::Eauml::Import, collection: true
958
978
  attribute :gml_application_schema, EaRoot::Gml::ApplicationSchema, collection: true
959
979
  attribute :gml_code_list, EaRoot::Gml::CodeList, collection: true
980
+ attribute :gml_data_type, EaRoot::Gml::CodeList, collection: true
981
+ attribute :gml_union, EaRoot::Gml::CodeList, collection: true
982
+ attribute :gml_enumeration, EaRoot::Gml::CodeList, collection: true
983
+ attribute :gml_type, EaRoot::Gml::CodeList, collection: true
984
+ attribute :gml_feature_type, EaRoot::Gml::CodeList, collection: true
960
985
  attribute :gml_property, EaRoot::Gml::Property, collection: true
961
986
  end
962
987
  end
@@ -1002,6 +1027,21 @@ module Xmi
1002
1027
  map_element "CodeList", to: :gml_code_list,
1003
1028
  namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1004
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"
1005
1045
  map_element "property", to: :gml_property,
1006
1046
  namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1007
1047
  prefix: "GML"
@@ -1054,6 +1094,21 @@ module Xmi
1054
1094
  map_element "CodeList", to: :gml_code_list,
1055
1095
  namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1056
1096
  prefix: "GML"
1097
+ map_element "DataType", to: :gml_data_type,
1098
+ namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1099
+ prefix: "GML"
1100
+ map_element "Union", to: :gml_union,
1101
+ namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1102
+ prefix: "GML"
1103
+ map_element "Enumeration", to: :gml_enumeration,
1104
+ namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1105
+ prefix: "GML"
1106
+ map_element "Type", to: :gml_type,
1107
+ namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1108
+ prefix: "GML"
1109
+ map_element "FeatureType", to: :gml_feature_type,
1110
+ namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1111
+ prefix: "GML"
1057
1112
  map_element "property", to: :gml_property,
1058
1113
  namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
1059
1114
  prefix: "GML"
data/lib/xmi/uml.rb CHANGED
@@ -473,6 +473,7 @@ module Xmi
473
473
 
474
474
  map_attribute "type", to: :type, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
475
475
  map_attribute "id", to: :id, namespace: "http://www.omg.org/spec/XMI/20131001", prefix: "xmi"
476
+ map_attribute "text", to: :text
476
477
  map_attribute "modelElement", to: :model_element
477
478
 
478
479
  map_element "ownedElement", to: :owned_element
data/lib/xmi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xmi
4
- VERSION = "0.3.7"
4
+ VERSION = "0.3.9"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-12 00:00:00.000000000 Z
11
+ date: 2024-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri