rgen-xsd 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,413 @@
1
+ require 'rgen/metamodel_builder'
2
+
3
+ module MM
4
+ extend RGen::MetamodelBuilder::ModuleExtension
5
+ include RGen::MetamodelBuilder::DataTypes
6
+
7
+
8
+ module W3Org2001XMLSchema
9
+ extend RGen::MetamodelBuilder::ModuleExtension
10
+ include RGen::MetamodelBuilder::DataTypes
11
+ annotation :source => "xsd", :details => {'xmlName' => 'http://www.w3.org/2001/XMLSchema'}
12
+
13
+ UseEnum = Enum.new(:name => 'UseEnum', :literals =>[ :prohibited, :optional, :required ])
14
+ FormChoiceEnum = Enum.new(:name => 'FormChoiceEnum', :literals =>[ :qualified, :unqualified ])
15
+ ProcessContentsEnum = Enum.new(:name => 'ProcessContentsEnum', :literals =>[ :skip, :lax, :strict ])
16
+ end
17
+
18
+ module W3OrgXML1998Namespace
19
+ extend RGen::MetamodelBuilder::ModuleExtension
20
+ include RGen::MetamodelBuilder::DataTypes
21
+ annotation :source => "xsd", :details => {'xmlName' => 'http://www.w3.org/XML/1998/namespace'}
22
+
23
+ end
24
+ end
25
+
26
+ class MM::W3Org2001XMLSchema::AnyType < RGen::MetamodelBuilder::MMBase
27
+ annotation :source => "xsd", :details => {'xmlName' => 'anyType'}
28
+ has_many_attr 'anyObject', Object
29
+ has_attr 'text', String do
30
+ annotation :source => "xsd", :details => {'simpleContent' => 'true'}
31
+ end
32
+ end
33
+
34
+ class MM::W3Org2001XMLSchema::OpenAttrs < MM::W3Org2001XMLSchema::AnyType
35
+ annotation :source => "xsd", :details => {'xmlName' => 'openAttrs'}
36
+ end
37
+
38
+ class MM::W3Org2001XMLSchema::Annotated < MM::W3Org2001XMLSchema::OpenAttrs
39
+ annotation :source => "xsd", :details => {'xmlName' => 'annotated'}
40
+ has_attr 'id', String
41
+ end
42
+
43
+ class MM::W3Org2001XMLSchema::AnnotationTYPE < MM::W3Org2001XMLSchema::OpenAttrs
44
+ has_attr 'id', String
45
+ end
46
+
47
+ class MM::W3Org2001XMLSchema::AppinfoTYPE < RGen::MetamodelBuilder::MMBase
48
+ has_many_attr 'anyObject', Object
49
+ has_attr 'source', String
50
+ has_attr 'text', String do
51
+ annotation :source => "xsd", :details => {'simpleContent' => 'true'}
52
+ end
53
+ end
54
+
55
+ class MM::W3Org2001XMLSchema::DocumentationTYPE < RGen::MetamodelBuilder::MMBase
56
+ has_many_attr 'anyObject', Object
57
+ has_attr 'source', String
58
+ has_attr 'lang', Object
59
+ has_attr 'text', String do
60
+ annotation :source => "xsd", :details => {'simpleContent' => 'true'}
61
+ end
62
+ end
63
+
64
+ class MM::W3Org2001XMLSchema::Attribute < MM::W3Org2001XMLSchema::Annotated
65
+ annotation :source => "xsd", :details => {'xmlName' => 'attribute'}
66
+ has_attr 'use', MM::W3Org2001XMLSchema::UseEnum
67
+ has_attr 'default', String
68
+ has_attr 'fixed', String
69
+ has_attr 'form', MM::W3Org2001XMLSchema::FormChoiceEnum
70
+ has_attr 'name', String
71
+ end
72
+
73
+ class MM::W3Org2001XMLSchema::Type < MM::W3Org2001XMLSchema::Annotated
74
+ end
75
+
76
+ class MM::W3Org2001XMLSchema::SimpleType < MM::W3Org2001XMLSchema::Type
77
+ abstract
78
+ annotation :source => "xsd", :details => {'xmlName' => 'simpleType'}
79
+ has_attr 'final', Object
80
+ has_attr 'name', String
81
+ end
82
+
83
+ class MM::W3Org2001XMLSchema::LocalSimpleType < MM::W3Org2001XMLSchema::SimpleType
84
+ annotation :source => "xsd", :details => {'xmlName' => 'localSimpleType'}
85
+ end
86
+
87
+ class MM::W3Org2001XMLSchema::RestrictionTYPE < MM::W3Org2001XMLSchema::Annotated
88
+ end
89
+
90
+ class MM::W3Org2001XMLSchema::ListTYPE < MM::W3Org2001XMLSchema::Annotated
91
+ end
92
+
93
+ class MM::W3Org2001XMLSchema::UnionTYPE < MM::W3Org2001XMLSchema::Annotated
94
+ end
95
+
96
+ class MM::W3Org2001XMLSchema::Facet < MM::W3Org2001XMLSchema::Annotated
97
+ annotation :source => "xsd", :details => {'xmlName' => 'facet'}
98
+ has_attr 'value', String
99
+ has_attr 'fixed', Boolean
100
+ end
101
+
102
+ class MM::W3Org2001XMLSchema::NumFacet < MM::W3Org2001XMLSchema::Facet
103
+ annotation :source => "xsd", :details => {'xmlName' => 'numFacet'}
104
+ end
105
+
106
+ class MM::W3Org2001XMLSchema::TotalDigitsTYPE < MM::W3Org2001XMLSchema::NumFacet
107
+ end
108
+
109
+ class MM::W3Org2001XMLSchema::NoFixedFacet < MM::W3Org2001XMLSchema::Facet
110
+ annotation :source => "xsd", :details => {'xmlName' => 'noFixedFacet'}
111
+ end
112
+
113
+ class MM::W3Org2001XMLSchema::WhiteSpaceTYPE < MM::W3Org2001XMLSchema::Facet
114
+ end
115
+
116
+ class MM::W3Org2001XMLSchema::PatternTYPE < MM::W3Org2001XMLSchema::NoFixedFacet
117
+ end
118
+
119
+ class MM::W3Org2001XMLSchema::TopLevelAttribute < MM::W3Org2001XMLSchema::Attribute
120
+ annotation :source => "xsd", :details => {'xmlName' => 'topLevelAttribute'}
121
+ end
122
+
123
+ class MM::W3Org2001XMLSchema::ComplexType < MM::W3Org2001XMLSchema::Type
124
+ abstract
125
+ annotation :source => "xsd", :details => {'xmlName' => 'complexType'}
126
+ has_attr 'name', String
127
+ has_attr 'mixed', Boolean
128
+ has_attr 'abstract', Boolean
129
+ has_attr 'final', Object
130
+ has_attr 'block', Object
131
+ end
132
+
133
+ class MM::W3Org2001XMLSchema::Group < MM::W3Org2001XMLSchema::Annotated
134
+ abstract
135
+ annotation :source => "xsd", :details => {'xmlName' => 'group'}
136
+ has_attr 'name', String
137
+ has_attr 'minOccurs', Integer
138
+ has_attr 'maxOccurs', Object
139
+ end
140
+
141
+ class MM::W3Org2001XMLSchema::RealGroup < MM::W3Org2001XMLSchema::Group
142
+ annotation :source => "xsd", :details => {'xmlName' => 'realGroup'}
143
+ end
144
+
145
+ class MM::W3Org2001XMLSchema::GroupRef < MM::W3Org2001XMLSchema::RealGroup
146
+ annotation :source => "xsd", :details => {'xmlName' => 'groupRef'}
147
+ end
148
+
149
+ class MM::W3Org2001XMLSchema::ExplicitGroup < MM::W3Org2001XMLSchema::Group
150
+ annotation :source => "xsd", :details => {'xmlName' => 'explicitGroup'}
151
+ end
152
+
153
+ class MM::W3Org2001XMLSchema::All < MM::W3Org2001XMLSchema::ExplicitGroup
154
+ annotation :source => "xsd", :details => {'xmlName' => 'all'}
155
+ end
156
+
157
+ class MM::W3Org2001XMLSchema::AttributeGroup < MM::W3Org2001XMLSchema::Annotated
158
+ abstract
159
+ annotation :source => "xsd", :details => {'xmlName' => 'attributeGroup'}
160
+ has_attr 'name', String
161
+ end
162
+
163
+ class MM::W3Org2001XMLSchema::AttributeGroupRef < MM::W3Org2001XMLSchema::AttributeGroup
164
+ annotation :source => "xsd", :details => {'xmlName' => 'attributeGroupRef'}
165
+ end
166
+
167
+ class MM::W3Org2001XMLSchema::Wildcard < MM::W3Org2001XMLSchema::Annotated
168
+ annotation :source => "xsd", :details => {'xmlName' => 'wildcard'}
169
+ has_attr 'namespace', Object
170
+ has_attr 'processContents', MM::W3Org2001XMLSchema::ProcessContentsEnum
171
+ end
172
+
173
+ class MM::W3Org2001XMLSchema::SimpleContentTYPE < MM::W3Org2001XMLSchema::Annotated
174
+ end
175
+
176
+ class MM::W3Org2001XMLSchema::ComplexContentTYPE < MM::W3Org2001XMLSchema::Annotated
177
+ has_attr 'mixed', Boolean
178
+ end
179
+
180
+ class MM::W3Org2001XMLSchema::Element < MM::W3Org2001XMLSchema::Annotated
181
+ abstract
182
+ annotation :source => "xsd", :details => {'xmlName' => 'element'}
183
+ has_attr 'default', String
184
+ has_attr 'fixed', String
185
+ has_attr 'nillable', Boolean
186
+ has_attr 'abstract', Boolean
187
+ has_attr 'final', Object
188
+ has_attr 'block', Object
189
+ has_attr 'form', MM::W3Org2001XMLSchema::FormChoiceEnum
190
+ has_attr 'name', String
191
+ has_attr 'minOccurs', Integer
192
+ has_attr 'maxOccurs', Object
193
+ end
194
+
195
+ class MM::W3Org2001XMLSchema::LocalElement < MM::W3Org2001XMLSchema::Element
196
+ annotation :source => "xsd", :details => {'xmlName' => 'localElement'}
197
+ end
198
+
199
+ class MM::W3Org2001XMLSchema::NarrowMaxMin < MM::W3Org2001XMLSchema::LocalElement
200
+ annotation :source => "xsd", :details => {'xmlName' => 'narrowMaxMin'}
201
+ end
202
+
203
+ class MM::W3Org2001XMLSchema::AnyTYPE < MM::W3Org2001XMLSchema::Wildcard
204
+ has_attr 'minOccurs', Integer
205
+ has_attr 'maxOccurs', Object
206
+ end
207
+
208
+ class MM::W3Org2001XMLSchema::RestrictionType < MM::W3Org2001XMLSchema::Annotated
209
+ annotation :source => "xsd", :details => {'xmlName' => 'restrictionType'}
210
+ end
211
+
212
+ class MM::W3Org2001XMLSchema::SimpleRestrictionType < MM::W3Org2001XMLSchema::RestrictionType
213
+ annotation :source => "xsd", :details => {'xmlName' => 'simpleRestrictionType'}
214
+ end
215
+
216
+ class MM::W3Org2001XMLSchema::ExtensionType < MM::W3Org2001XMLSchema::Annotated
217
+ annotation :source => "xsd", :details => {'xmlName' => 'extensionType'}
218
+ end
219
+
220
+ class MM::W3Org2001XMLSchema::SimpleExtensionType < MM::W3Org2001XMLSchema::ExtensionType
221
+ annotation :source => "xsd", :details => {'xmlName' => 'simpleExtensionType'}
222
+ end
223
+
224
+ class MM::W3Org2001XMLSchema::ComplexRestrictionType < MM::W3Org2001XMLSchema::RestrictionType
225
+ annotation :source => "xsd", :details => {'xmlName' => 'complexRestrictionType'}
226
+ end
227
+
228
+ class MM::W3Org2001XMLSchema::LocalComplexType < MM::W3Org2001XMLSchema::ComplexType
229
+ annotation :source => "xsd", :details => {'xmlName' => 'localComplexType'}
230
+ end
231
+
232
+ class MM::W3Org2001XMLSchema::Keybase < MM::W3Org2001XMLSchema::Annotated
233
+ annotation :source => "xsd", :details => {'xmlName' => 'keybase'}
234
+ has_attr 'name', String
235
+ end
236
+
237
+ class MM::W3Org2001XMLSchema::KeyrefTYPE < MM::W3Org2001XMLSchema::Keybase
238
+ has_attr 'refer', String
239
+ end
240
+
241
+ class MM::W3Org2001XMLSchema::SelectorTYPE < MM::W3Org2001XMLSchema::Annotated
242
+ has_attr 'xpath', String
243
+ end
244
+
245
+ class MM::W3Org2001XMLSchema::FieldTYPE < MM::W3Org2001XMLSchema::Annotated
246
+ has_attr 'xpath', String
247
+ end
248
+
249
+ class MM::W3Org2001XMLSchema::TopLevelComplexType < MM::W3Org2001XMLSchema::ComplexType
250
+ annotation :source => "xsd", :details => {'xmlName' => 'topLevelComplexType'}
251
+ end
252
+
253
+ class MM::W3Org2001XMLSchema::TopLevelElement < MM::W3Org2001XMLSchema::Element
254
+ annotation :source => "xsd", :details => {'xmlName' => 'topLevelElement'}
255
+ end
256
+
257
+ class MM::W3Org2001XMLSchema::NamedGroup < MM::W3Org2001XMLSchema::RealGroup
258
+ annotation :source => "xsd", :details => {'xmlName' => 'namedGroup'}
259
+ end
260
+
261
+ class MM::W3Org2001XMLSchema::AllTYPE < MM::W3Org2001XMLSchema::All
262
+ end
263
+
264
+ class MM::W3Org2001XMLSchema::SimpleExplicitGroup < MM::W3Org2001XMLSchema::ExplicitGroup
265
+ annotation :source => "xsd", :details => {'xmlName' => 'simpleExplicitGroup'}
266
+ end
267
+
268
+ class MM::W3Org2001XMLSchema::NamedAttributeGroup < MM::W3Org2001XMLSchema::AttributeGroup
269
+ annotation :source => "xsd", :details => {'xmlName' => 'namedAttributeGroup'}
270
+ end
271
+
272
+ class MM::W3Org2001XMLSchema::TopLevelSimpleType < MM::W3Org2001XMLSchema::SimpleType
273
+ annotation :source => "xsd", :details => {'xmlName' => 'topLevelSimpleType'}
274
+ end
275
+
276
+ class MM::W3Org2001XMLSchema::SchemaTYPE < MM::W3Org2001XMLSchema::OpenAttrs
277
+ has_attr 'targetNamespace', String
278
+ has_attr 'version', String
279
+ has_attr 'finalDefault', Object
280
+ has_attr 'blockDefault', Object
281
+ has_attr 'attributeFormDefault', MM::W3Org2001XMLSchema::FormChoiceEnum
282
+ has_attr 'elementFormDefault', MM::W3Org2001XMLSchema::FormChoiceEnum
283
+ has_attr 'id', String
284
+ has_attr 'lang', Object
285
+ end
286
+
287
+ class MM::W3Org2001XMLSchema::IncludeTYPE < MM::W3Org2001XMLSchema::Annotated
288
+ has_attr 'schemaLocation', String
289
+ end
290
+
291
+ class MM::W3Org2001XMLSchema::ImportTYPE < MM::W3Org2001XMLSchema::Annotated
292
+ has_attr 'namespace', String
293
+ has_attr 'schemaLocation', String
294
+ end
295
+
296
+ class MM::W3Org2001XMLSchema::RedefineTYPE < MM::W3Org2001XMLSchema::OpenAttrs
297
+ has_attr 'schemaLocation', String
298
+ has_attr 'id', String
299
+ end
300
+
301
+ class MM::W3Org2001XMLSchema::NotationTYPE < MM::W3Org2001XMLSchema::Annotated
302
+ has_attr 'name', String
303
+ has_attr 'public', String
304
+ has_attr 'system', String
305
+ end
306
+
307
+
308
+ MM::W3Org2001XMLSchema::Annotated.contains_one_uni 'annotation', MM::W3Org2001XMLSchema::AnnotationTYPE
309
+ MM::W3Org2001XMLSchema::AnnotationTYPE.contains_many_uni 'appinfo', MM::W3Org2001XMLSchema::AppinfoTYPE
310
+ MM::W3Org2001XMLSchema::AnnotationTYPE.contains_many_uni 'documentation', MM::W3Org2001XMLSchema::DocumentationTYPE
311
+ MM::W3Org2001XMLSchema::Attribute.contains_one 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType, 'containingAttribute'
312
+ MM::W3Org2001XMLSchema::Attribute.has_one 'ref', MM::W3Org2001XMLSchema::Attribute
313
+ MM::W3Org2001XMLSchema::Attribute.has_one 'type', MM::W3Org2001XMLSchema::SimpleType
314
+ MM::W3Org2001XMLSchema::Element.contains_one 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType, 'containingElement'
315
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'minExclusive', MM::W3Org2001XMLSchema::Facet
316
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'minInclusive', MM::W3Org2001XMLSchema::Facet
317
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'maxExclusive', MM::W3Org2001XMLSchema::Facet
318
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'maxInclusive', MM::W3Org2001XMLSchema::Facet
319
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'totalDigits', MM::W3Org2001XMLSchema::TotalDigitsTYPE
320
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'fractionDigits', MM::W3Org2001XMLSchema::NumFacet
321
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'length', MM::W3Org2001XMLSchema::NumFacet
322
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'minLength', MM::W3Org2001XMLSchema::NumFacet
323
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'maxLength', MM::W3Org2001XMLSchema::NumFacet
324
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'enumeration', MM::W3Org2001XMLSchema::NoFixedFacet
325
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'whiteSpace', MM::W3Org2001XMLSchema::WhiteSpaceTYPE
326
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'pattern', MM::W3Org2001XMLSchema::PatternTYPE
327
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_one_uni 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType
328
+ MM::W3Org2001XMLSchema::RestrictionTYPE.has_one 'base', MM::W3Org2001XMLSchema::Type
329
+ MM::W3Org2001XMLSchema::ListTYPE.contains_one_uni 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType
330
+ MM::W3Org2001XMLSchema::ListTYPE.has_one 'itemType', MM::W3Org2001XMLSchema::SimpleType
331
+ MM::W3Org2001XMLSchema::UnionTYPE.contains_many_uni 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType
332
+ MM::W3Org2001XMLSchema::UnionTYPE.has_many 'memberTypes', MM::W3Org2001XMLSchema::SimpleType
333
+ MM::W3Org2001XMLSchema::SimpleType.contains_one_uni 'restriction', MM::W3Org2001XMLSchema::RestrictionTYPE
334
+ MM::W3Org2001XMLSchema::SimpleType.contains_one_uni 'list', MM::W3Org2001XMLSchema::ListTYPE
335
+ MM::W3Org2001XMLSchema::SimpleType.contains_one_uni 'union', MM::W3Org2001XMLSchema::UnionTYPE
336
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'group', MM::W3Org2001XMLSchema::GroupRef
337
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'all', MM::W3Org2001XMLSchema::All
338
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'choice', MM::W3Org2001XMLSchema::ExplicitGroup
339
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'sequence', MM::W3Org2001XMLSchema::ExplicitGroup
340
+ MM::W3Org2001XMLSchema::ComplexType.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::Attribute
341
+ MM::W3Org2001XMLSchema::ComplexType.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::AttributeGroupRef
342
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'anyAttribute', MM::W3Org2001XMLSchema::Wildcard
343
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'simpleContent', MM::W3Org2001XMLSchema::SimpleContentTYPE
344
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'complexContent', MM::W3Org2001XMLSchema::ComplexContentTYPE
345
+ MM::W3Org2001XMLSchema::SimpleContentTYPE.contains_one_uni 'restriction', MM::W3Org2001XMLSchema::SimpleRestrictionType
346
+ MM::W3Org2001XMLSchema::SimpleContentTYPE.contains_one_uni 'extension', MM::W3Org2001XMLSchema::SimpleExtensionType
347
+ MM::W3Org2001XMLSchema::ComplexContentTYPE.contains_one_uni 'restriction', MM::W3Org2001XMLSchema::ComplexRestrictionType
348
+ MM::W3Org2001XMLSchema::ComplexContentTYPE.contains_one_uni 'extension', MM::W3Org2001XMLSchema::ExtensionType
349
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'element', MM::W3Org2001XMLSchema::LocalElement
350
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'group', MM::W3Org2001XMLSchema::GroupRef
351
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'all', MM::W3Org2001XMLSchema::All
352
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'choice', MM::W3Org2001XMLSchema::ExplicitGroup
353
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'sequence', MM::W3Org2001XMLSchema::ExplicitGroup
354
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'any', MM::W3Org2001XMLSchema::AnyTYPE
355
+ MM::W3Org2001XMLSchema::Group.has_one 'ref', MM::W3Org2001XMLSchema::Group
356
+ MM::W3Org2001XMLSchema::AttributeGroup.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::Attribute
357
+ MM::W3Org2001XMLSchema::AttributeGroup.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::AttributeGroupRef
358
+ MM::W3Org2001XMLSchema::AttributeGroup.contains_one_uni 'anyAttribute', MM::W3Org2001XMLSchema::Wildcard
359
+ MM::W3Org2001XMLSchema::AttributeGroup.has_one 'ref', MM::W3Org2001XMLSchema::AttributeGroup
360
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'group', MM::W3Org2001XMLSchema::GroupRef
361
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'all', MM::W3Org2001XMLSchema::All
362
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'choice', MM::W3Org2001XMLSchema::ExplicitGroup
363
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'sequence', MM::W3Org2001XMLSchema::ExplicitGroup
364
+ MM::W3Org2001XMLSchema::ExtensionType.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::Attribute
365
+ MM::W3Org2001XMLSchema::ExtensionType.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::AttributeGroupRef
366
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'anyAttribute', MM::W3Org2001XMLSchema::Wildcard
367
+ MM::W3Org2001XMLSchema::ExtensionType.has_one 'base', MM::W3Org2001XMLSchema::Type
368
+ MM::W3Org2001XMLSchema::Element.contains_one 'complexType', MM::W3Org2001XMLSchema::LocalComplexType, 'containingElement'
369
+ MM::W3Org2001XMLSchema::Keybase.contains_one_uni 'selector', MM::W3Org2001XMLSchema::SelectorTYPE, :lowerBound => 1
370
+ MM::W3Org2001XMLSchema::Keybase.contains_many_uni 'field', MM::W3Org2001XMLSchema::FieldTYPE, :lowerBound => 1
371
+ MM::W3Org2001XMLSchema::Element.contains_many_uni 'unique', MM::W3Org2001XMLSchema::Keybase
372
+ MM::W3Org2001XMLSchema::Element.contains_many_uni 'key', MM::W3Org2001XMLSchema::Keybase
373
+ MM::W3Org2001XMLSchema::Element.contains_many_uni 'keyref', MM::W3Org2001XMLSchema::KeyrefTYPE
374
+ MM::W3Org2001XMLSchema::Element.has_one 'ref', MM::W3Org2001XMLSchema::Element
375
+ MM::W3Org2001XMLSchema::Element.has_one 'type', MM::W3Org2001XMLSchema::Type
376
+ MM::W3Org2001XMLSchema::Element.many_to_one 'substitutionGroup', MM::W3Org2001XMLSchema::Element, 'substitutes'
377
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'group', MM::W3Org2001XMLSchema::GroupRef
378
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'all', MM::W3Org2001XMLSchema::All
379
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'choice', MM::W3Org2001XMLSchema::ExplicitGroup
380
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'sequence', MM::W3Org2001XMLSchema::ExplicitGroup
381
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'minExclusive', MM::W3Org2001XMLSchema::Facet
382
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'minInclusive', MM::W3Org2001XMLSchema::Facet
383
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'maxExclusive', MM::W3Org2001XMLSchema::Facet
384
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'maxInclusive', MM::W3Org2001XMLSchema::Facet
385
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'totalDigits', MM::W3Org2001XMLSchema::TotalDigitsTYPE
386
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'fractionDigits', MM::W3Org2001XMLSchema::NumFacet
387
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'length', MM::W3Org2001XMLSchema::NumFacet
388
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'minLength', MM::W3Org2001XMLSchema::NumFacet
389
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'maxLength', MM::W3Org2001XMLSchema::NumFacet
390
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'enumeration', MM::W3Org2001XMLSchema::NoFixedFacet
391
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'whiteSpace', MM::W3Org2001XMLSchema::WhiteSpaceTYPE
392
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'pattern', MM::W3Org2001XMLSchema::PatternTYPE
393
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType
394
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::Attribute
395
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::AttributeGroupRef
396
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'anyAttribute', MM::W3Org2001XMLSchema::Wildcard
397
+ MM::W3Org2001XMLSchema::RestrictionType.has_one 'base', MM::W3Org2001XMLSchema::Type
398
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'include', MM::W3Org2001XMLSchema::IncludeTYPE
399
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'import', MM::W3Org2001XMLSchema::ImportTYPE
400
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'redefine', MM::W3Org2001XMLSchema::RedefineTYPE
401
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'annotation', MM::W3Org2001XMLSchema::AnnotationTYPE
402
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'simpleType', MM::W3Org2001XMLSchema::TopLevelSimpleType
403
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'complexType', MM::W3Org2001XMLSchema::TopLevelComplexType
404
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'group', MM::W3Org2001XMLSchema::NamedGroup
405
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::NamedAttributeGroup
406
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'element', MM::W3Org2001XMLSchema::TopLevelElement
407
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::TopLevelAttribute
408
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'notation', MM::W3Org2001XMLSchema::NotationTYPE
409
+ MM::W3Org2001XMLSchema::RedefineTYPE.contains_many_uni 'simpleType', MM::W3Org2001XMLSchema::TopLevelSimpleType
410
+ MM::W3Org2001XMLSchema::RedefineTYPE.contains_many_uni 'complexType', MM::W3Org2001XMLSchema::TopLevelComplexType
411
+ MM::W3Org2001XMLSchema::RedefineTYPE.contains_many_uni 'group', MM::W3Org2001XMLSchema::NamedGroup
412
+ MM::W3Org2001XMLSchema::RedefineTYPE.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::NamedAttributeGroup
413
+ MM::W3Org2001XMLSchema::RedefineTYPE.contains_many_uni 'annotation', MM::W3Org2001XMLSchema::AnnotationTYPE
@@ -0,0 +1,3 @@
1
+ task :default do
2
+ sh "ruby ../metamodel_generator.rb --mm 1.0 -o metamodel.rb structures.xml datatypes.xml ../xml/xml.xsd"
3
+ end
@@ -0,0 +1,6 @@
1
+ This folder contains the following normative schema parts as published by the W3C
2
+
3
+ * datatypes.xml (http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/)
4
+ * structures.xml (http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/)
5
+
6
+ Copyright � 2004 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231