xmi 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xmi/extensions/gml.rb +72 -0
- data/lib/xmi/sparx.rb +35 -0
- data/lib/xmi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc142c4dafa8b6f642915fc177a55d64667b39503164533e4acd2f57dc4a5882
|
4
|
+
data.tar.gz: 8ea7bac17a8ce090cc39c019571ef1d6d91096c3b868c9e1246114f5a49a8d37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a189f14845f4bd56540e1d6b0373a7cab2ec56c7b12572ccdfb9f01365994d90dfdc45802994433bc398fa417979ea6183c82d131bf9b6dd9b5484f4eb7439d3
|
7
|
+
data.tar.gz: 034a0986c647977cfa682611df764f7f8ff7859b40aa82ca61e8bef20000f24ec96b5af2bfc3de0cc9aeececfc0a23b3d1f62a4fb7e7a9f52268a77878f2fe1f
|
data/lib/xmi/extensions/gml.rb
CHANGED
@@ -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
@@ -957,6 +957,11 @@ module Xmi
|
|
957
957
|
attribute :eauml_import, EaRoot::Eauml::Import, collection: true
|
958
958
|
attribute :gml_application_schema, EaRoot::Gml::ApplicationSchema, collection: true
|
959
959
|
attribute :gml_code_list, EaRoot::Gml::CodeList, collection: true
|
960
|
+
attribute :gml_data_type, EaRoot::Gml::CodeList, collection: true
|
961
|
+
attribute :gml_union, EaRoot::Gml::CodeList, collection: true
|
962
|
+
attribute :gml_enumeration, EaRoot::Gml::CodeList, collection: true
|
963
|
+
attribute :gml_type, EaRoot::Gml::CodeList, collection: true
|
964
|
+
attribute :gml_feature_type, EaRoot::Gml::CodeList, collection: true
|
960
965
|
attribute :gml_property, EaRoot::Gml::Property, collection: true
|
961
966
|
end
|
962
967
|
end
|
@@ -1002,6 +1007,21 @@ module Xmi
|
|
1002
1007
|
map_element "CodeList", to: :gml_code_list,
|
1003
1008
|
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1004
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"
|
1005
1025
|
map_element "property", to: :gml_property,
|
1006
1026
|
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1007
1027
|
prefix: "GML"
|
@@ -1054,6 +1074,21 @@ module Xmi
|
|
1054
1074
|
map_element "CodeList", to: :gml_code_list,
|
1055
1075
|
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1056
1076
|
prefix: "GML"
|
1077
|
+
map_element "DataType", to: :gml_data_type,
|
1078
|
+
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1079
|
+
prefix: "GML"
|
1080
|
+
map_element "Union", to: :gml_union,
|
1081
|
+
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1082
|
+
prefix: "GML"
|
1083
|
+
map_element "Enumeration", to: :gml_enumeration,
|
1084
|
+
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1085
|
+
prefix: "GML"
|
1086
|
+
map_element "Type", to: :gml_type,
|
1087
|
+
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1088
|
+
prefix: "GML"
|
1089
|
+
map_element "FeatureType", to: :gml_feature_type,
|
1090
|
+
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1091
|
+
prefix: "GML"
|
1057
1092
|
map_element "property", to: :gml_property,
|
1058
1093
|
namespace: "http://www.sparxsystems.com/profiles/GML/1.0",
|
1059
1094
|
prefix: "GML"
|
data/lib/xmi/version.rb
CHANGED
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.
|
4
|
+
version: 0.3.8
|
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-
|
11
|
+
date: 2024-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|