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,488 @@
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
+ ModeEnum = Enum.new(:name => 'ModeEnum', :literals =>[ :none, :interleave, :suffix ])
16
+ ProcessContentsEnum = Enum.new(:name => 'ProcessContentsEnum', :literals =>[ :skip, :lax, :strict ])
17
+ ModeEnum2 = Enum.new(:name => 'ModeEnum2', :literals =>[ :interleave, :suffix ])
18
+ end
19
+
20
+ module W3OrgXML1998Namespace
21
+ extend RGen::MetamodelBuilder::ModuleExtension
22
+ include RGen::MetamodelBuilder::DataTypes
23
+ annotation :source => "xsd", :details => {'xmlName' => 'http://www.w3.org/XML/1998/namespace'}
24
+
25
+ end
26
+ end
27
+
28
+ class MM::W3Org2001XMLSchema::AnyType < RGen::MetamodelBuilder::MMBase
29
+ annotation :source => "xsd", :details => {'xmlName' => 'anyType'}
30
+ has_many_attr 'anyObject', Object
31
+ has_attr 'text', String do
32
+ annotation :source => "xsd", :details => {'simpleContent' => 'true'}
33
+ end
34
+ end
35
+
36
+ class MM::W3Org2001XMLSchema::OpenAttrs < MM::W3Org2001XMLSchema::AnyType
37
+ annotation :source => "xsd", :details => {'xmlName' => 'openAttrs'}
38
+ end
39
+
40
+ class MM::W3Org2001XMLSchema::Annotated < MM::W3Org2001XMLSchema::OpenAttrs
41
+ annotation :source => "xsd", :details => {'xmlName' => 'annotated'}
42
+ has_attr 'id', String
43
+ end
44
+
45
+ class MM::W3Org2001XMLSchema::AnnotationTYPE < MM::W3Org2001XMLSchema::OpenAttrs
46
+ has_attr 'id', String
47
+ end
48
+
49
+ class MM::W3Org2001XMLSchema::AppinfoTYPE < RGen::MetamodelBuilder::MMBase
50
+ has_many_attr 'anyObject', Object
51
+ has_attr 'source', String
52
+ has_attr 'text', String do
53
+ annotation :source => "xsd", :details => {'simpleContent' => 'true'}
54
+ end
55
+ end
56
+
57
+ class MM::W3Org2001XMLSchema::DocumentationTYPE < RGen::MetamodelBuilder::MMBase
58
+ has_many_attr 'anyObject', Object
59
+ has_attr 'source', String
60
+ has_attr 'lang', Object
61
+ has_attr 'text', String do
62
+ annotation :source => "xsd", :details => {'simpleContent' => 'true'}
63
+ end
64
+ end
65
+
66
+ class MM::W3Org2001XMLSchema::Attribute < MM::W3Org2001XMLSchema::Annotated
67
+ annotation :source => "xsd", :details => {'xmlName' => 'attribute'}
68
+ has_attr 'use', MM::W3Org2001XMLSchema::UseEnum
69
+ has_attr 'default', String
70
+ has_attr 'fixed', String
71
+ has_attr 'form', MM::W3Org2001XMLSchema::FormChoiceEnum
72
+ has_attr 'targetNamespace', String
73
+ has_attr 'inheritable', Boolean
74
+ has_attr 'name', String
75
+ end
76
+
77
+ class MM::W3Org2001XMLSchema::Type < MM::W3Org2001XMLSchema::Annotated
78
+ end
79
+
80
+ class MM::W3Org2001XMLSchema::SimpleType < MM::W3Org2001XMLSchema::Type
81
+ abstract
82
+ annotation :source => "xsd", :details => {'xmlName' => 'simpleType'}
83
+ has_attr 'final', Object
84
+ has_attr 'name', String
85
+ end
86
+
87
+ class MM::W3Org2001XMLSchema::LocalSimpleType < MM::W3Org2001XMLSchema::SimpleType
88
+ annotation :source => "xsd", :details => {'xmlName' => 'localSimpleType'}
89
+ end
90
+
91
+ class MM::W3Org2001XMLSchema::RestrictionTYPE < MM::W3Org2001XMLSchema::Annotated
92
+ end
93
+
94
+ class MM::W3Org2001XMLSchema::ListTYPE < MM::W3Org2001XMLSchema::Annotated
95
+ end
96
+
97
+ class MM::W3Org2001XMLSchema::UnionTYPE < MM::W3Org2001XMLSchema::Annotated
98
+ end
99
+
100
+ class MM::W3Org2001XMLSchema::Facet < MM::W3Org2001XMLSchema::Annotated
101
+ annotation :source => "xsd", :details => {'xmlName' => 'facet'}
102
+ has_attr 'value', String
103
+ has_attr 'fixed', Boolean
104
+ end
105
+
106
+ class MM::W3Org2001XMLSchema::NumFacet < MM::W3Org2001XMLSchema::Facet
107
+ annotation :source => "xsd", :details => {'xmlName' => 'numFacet'}
108
+ end
109
+
110
+ class MM::W3Org2001XMLSchema::TotalDigitsTYPE < MM::W3Org2001XMLSchema::NumFacet
111
+ end
112
+
113
+ class MM::W3Org2001XMLSchema::NoFixedFacet < MM::W3Org2001XMLSchema::Facet
114
+ annotation :source => "xsd", :details => {'xmlName' => 'noFixedFacet'}
115
+ end
116
+
117
+ class MM::W3Org2001XMLSchema::WhiteSpaceTYPE < MM::W3Org2001XMLSchema::Facet
118
+ end
119
+
120
+ class MM::W3Org2001XMLSchema::PatternTYPE < MM::W3Org2001XMLSchema::NoFixedFacet
121
+ end
122
+
123
+ class MM::W3Org2001XMLSchema::Assertion < MM::W3Org2001XMLSchema::Annotated
124
+ annotation :source => "xsd", :details => {'xmlName' => 'assertion'}
125
+ has_attr 'test', String
126
+ has_attr 'xpathDefaultNamespace', Object
127
+ end
128
+
129
+ class MM::W3Org2001XMLSchema::ExplicitTimezoneTYPE < MM::W3Org2001XMLSchema::Facet
130
+ end
131
+
132
+ class MM::W3Org2001XMLSchema::TopLevelAttribute < MM::W3Org2001XMLSchema::Attribute
133
+ annotation :source => "xsd", :details => {'xmlName' => 'topLevelAttribute'}
134
+ end
135
+
136
+ class MM::W3Org2001XMLSchema::ComplexType < MM::W3Org2001XMLSchema::Type
137
+ abstract
138
+ annotation :source => "xsd", :details => {'xmlName' => 'complexType'}
139
+ has_attr 'name', String
140
+ has_attr 'mixed', Boolean
141
+ has_attr 'abstract', Boolean
142
+ has_attr 'final', Object
143
+ has_attr 'block', Object
144
+ has_attr 'defaultAttributesApply', Boolean
145
+ end
146
+
147
+ class MM::W3Org2001XMLSchema::Group < MM::W3Org2001XMLSchema::Annotated
148
+ abstract
149
+ annotation :source => "xsd", :details => {'xmlName' => 'group'}
150
+ has_attr 'name', String
151
+ has_attr 'minOccurs', Integer
152
+ has_attr 'maxOccurs', Object
153
+ end
154
+
155
+ class MM::W3Org2001XMLSchema::RealGroup < MM::W3Org2001XMLSchema::Group
156
+ annotation :source => "xsd", :details => {'xmlName' => 'realGroup'}
157
+ end
158
+
159
+ class MM::W3Org2001XMLSchema::GroupRef < MM::W3Org2001XMLSchema::RealGroup
160
+ annotation :source => "xsd", :details => {'xmlName' => 'groupRef'}
161
+ end
162
+
163
+ class MM::W3Org2001XMLSchema::ExplicitGroup < MM::W3Org2001XMLSchema::Group
164
+ annotation :source => "xsd", :details => {'xmlName' => 'explicitGroup'}
165
+ end
166
+
167
+ class MM::W3Org2001XMLSchema::All < MM::W3Org2001XMLSchema::ExplicitGroup
168
+ annotation :source => "xsd", :details => {'xmlName' => 'all'}
169
+ end
170
+
171
+ class MM::W3Org2001XMLSchema::AttributeGroup < MM::W3Org2001XMLSchema::Annotated
172
+ abstract
173
+ annotation :source => "xsd", :details => {'xmlName' => 'attributeGroup'}
174
+ has_attr 'name', String
175
+ end
176
+
177
+ class MM::W3Org2001XMLSchema::AttributeGroupRef < MM::W3Org2001XMLSchema::AttributeGroup
178
+ annotation :source => "xsd", :details => {'xmlName' => 'attributeGroupRef'}
179
+ end
180
+
181
+ class MM::W3Org2001XMLSchema::Wildcard < MM::W3Org2001XMLSchema::Annotated
182
+ annotation :source => "xsd", :details => {'xmlName' => 'wildcard'}
183
+ has_attr 'namespace', Object
184
+ has_many_attr 'notNamespace', Object, :lowerBound => 1
185
+ has_attr 'processContents', MM::W3Org2001XMLSchema::ProcessContentsEnum
186
+ end
187
+
188
+ class MM::W3Org2001XMLSchema::AnyAttributeTYPE < MM::W3Org2001XMLSchema::Wildcard
189
+ has_many_attr 'notQName', Object
190
+ end
191
+
192
+ class MM::W3Org2001XMLSchema::OpenContentTYPE < MM::W3Org2001XMLSchema::Annotated
193
+ has_attr 'mode', MM::W3Org2001XMLSchema::ModeEnum
194
+ end
195
+
196
+ class MM::W3Org2001XMLSchema::SimpleContentTYPE < MM::W3Org2001XMLSchema::Annotated
197
+ end
198
+
199
+ class MM::W3Org2001XMLSchema::ComplexContentTYPE < MM::W3Org2001XMLSchema::Annotated
200
+ has_attr 'mixed', Boolean
201
+ end
202
+
203
+ class MM::W3Org2001XMLSchema::Element < MM::W3Org2001XMLSchema::Annotated
204
+ abstract
205
+ annotation :source => "xsd", :details => {'xmlName' => 'element'}
206
+ has_attr 'default', String
207
+ has_attr 'fixed', String
208
+ has_attr 'nillable', Boolean
209
+ has_attr 'abstract', Boolean
210
+ has_attr 'final', Object
211
+ has_attr 'block', Object
212
+ has_attr 'form', MM::W3Org2001XMLSchema::FormChoiceEnum
213
+ has_attr 'targetNamespace', String
214
+ has_attr 'name', String
215
+ has_attr 'minOccurs', Integer
216
+ has_attr 'maxOccurs', Object
217
+ end
218
+
219
+ class MM::W3Org2001XMLSchema::LocalElement < MM::W3Org2001XMLSchema::Element
220
+ annotation :source => "xsd", :details => {'xmlName' => 'localElement'}
221
+ end
222
+
223
+ class MM::W3Org2001XMLSchema::AnyTYPE < MM::W3Org2001XMLSchema::Wildcard
224
+ has_many_attr 'notQName', Object
225
+ has_attr 'minOccurs', Integer
226
+ has_attr 'maxOccurs', Object
227
+ end
228
+
229
+ class MM::W3Org2001XMLSchema::GroupTYPE < MM::W3Org2001XMLSchema::GroupRef
230
+ end
231
+
232
+ class MM::W3Org2001XMLSchema::RestrictionType < MM::W3Org2001XMLSchema::Annotated
233
+ annotation :source => "xsd", :details => {'xmlName' => 'restrictionType'}
234
+ end
235
+
236
+ class MM::W3Org2001XMLSchema::SimpleRestrictionType < MM::W3Org2001XMLSchema::RestrictionType
237
+ annotation :source => "xsd", :details => {'xmlName' => 'simpleRestrictionType'}
238
+ end
239
+
240
+ class MM::W3Org2001XMLSchema::ExtensionType < MM::W3Org2001XMLSchema::Annotated
241
+ annotation :source => "xsd", :details => {'xmlName' => 'extensionType'}
242
+ end
243
+
244
+ class MM::W3Org2001XMLSchema::SimpleExtensionType < MM::W3Org2001XMLSchema::ExtensionType
245
+ annotation :source => "xsd", :details => {'xmlName' => 'simpleExtensionType'}
246
+ end
247
+
248
+ class MM::W3Org2001XMLSchema::ComplexRestrictionType < MM::W3Org2001XMLSchema::RestrictionType
249
+ annotation :source => "xsd", :details => {'xmlName' => 'complexRestrictionType'}
250
+ end
251
+
252
+ class MM::W3Org2001XMLSchema::LocalComplexType < MM::W3Org2001XMLSchema::ComplexType
253
+ annotation :source => "xsd", :details => {'xmlName' => 'localComplexType'}
254
+ end
255
+
256
+ class MM::W3Org2001XMLSchema::Keybase < MM::W3Org2001XMLSchema::Annotated
257
+ annotation :source => "xsd", :details => {'xmlName' => 'keybase'}
258
+ has_attr 'name', String
259
+ has_attr 'ref', String
260
+ end
261
+
262
+ class MM::W3Org2001XMLSchema::KeyrefTYPE < MM::W3Org2001XMLSchema::Keybase
263
+ has_attr 'refer', String
264
+ end
265
+
266
+ class MM::W3Org2001XMLSchema::AltType < MM::W3Org2001XMLSchema::Annotated
267
+ annotation :source => "xsd", :details => {'xmlName' => 'altType'}
268
+ has_attr 'test', String
269
+ has_attr 'type', String
270
+ has_attr 'xpathDefaultNamespace', Object
271
+ end
272
+
273
+ class MM::W3Org2001XMLSchema::SelectorTYPE < MM::W3Org2001XMLSchema::Annotated
274
+ has_attr 'xpath', String
275
+ has_attr 'xpathDefaultNamespace', Object
276
+ end
277
+
278
+ class MM::W3Org2001XMLSchema::FieldTYPE < MM::W3Org2001XMLSchema::Annotated
279
+ has_attr 'xpath', String
280
+ has_attr 'xpathDefaultNamespace', Object
281
+ end
282
+
283
+ class MM::W3Org2001XMLSchema::TopLevelComplexType < MM::W3Org2001XMLSchema::ComplexType
284
+ annotation :source => "xsd", :details => {'xmlName' => 'topLevelComplexType'}
285
+ end
286
+
287
+ class MM::W3Org2001XMLSchema::TopLevelElement < MM::W3Org2001XMLSchema::Element
288
+ annotation :source => "xsd", :details => {'xmlName' => 'topLevelElement'}
289
+ end
290
+
291
+ class MM::W3Org2001XMLSchema::NamedGroup < MM::W3Org2001XMLSchema::RealGroup
292
+ annotation :source => "xsd", :details => {'xmlName' => 'namedGroup'}
293
+ end
294
+
295
+ class MM::W3Org2001XMLSchema::AllTYPE < MM::W3Org2001XMLSchema::All
296
+ end
297
+
298
+ class MM::W3Org2001XMLSchema::SimpleExplicitGroup < MM::W3Org2001XMLSchema::ExplicitGroup
299
+ annotation :source => "xsd", :details => {'xmlName' => 'simpleExplicitGroup'}
300
+ end
301
+
302
+ class MM::W3Org2001XMLSchema::NamedAttributeGroup < MM::W3Org2001XMLSchema::AttributeGroup
303
+ annotation :source => "xsd", :details => {'xmlName' => 'namedAttributeGroup'}
304
+ end
305
+
306
+ class MM::W3Org2001XMLSchema::TopLevelSimpleType < MM::W3Org2001XMLSchema::SimpleType
307
+ annotation :source => "xsd", :details => {'xmlName' => 'topLevelSimpleType'}
308
+ end
309
+
310
+ class MM::W3Org2001XMLSchema::IntFacet < MM::W3Org2001XMLSchema::Facet
311
+ annotation :source => "xsd", :details => {'xmlName' => 'intFacet'}
312
+ end
313
+
314
+ class MM::W3Org2001XMLSchema::SchemaTYPE < MM::W3Org2001XMLSchema::OpenAttrs
315
+ has_attr 'targetNamespace', String
316
+ has_attr 'version', String
317
+ has_attr 'finalDefault', Object
318
+ has_attr 'blockDefault', Object
319
+ has_attr 'attributeFormDefault', MM::W3Org2001XMLSchema::FormChoiceEnum
320
+ has_attr 'elementFormDefault', MM::W3Org2001XMLSchema::FormChoiceEnum
321
+ has_attr 'defaultAttributes', String
322
+ has_attr 'xpathDefaultNamespace', Object
323
+ has_attr 'id', String
324
+ has_attr 'lang', Object
325
+ end
326
+
327
+ class MM::W3Org2001XMLSchema::DefaultOpenContentTYPE < MM::W3Org2001XMLSchema::Annotated
328
+ has_attr 'appliesToEmpty', Boolean
329
+ has_attr 'mode', MM::W3Org2001XMLSchema::ModeEnum2
330
+ end
331
+
332
+ class MM::W3Org2001XMLSchema::NotationTYPE < MM::W3Org2001XMLSchema::Annotated
333
+ has_attr 'name', String
334
+ has_attr 'public', String
335
+ has_attr 'system', String
336
+ end
337
+
338
+ class MM::W3Org2001XMLSchema::IncludeTYPE < MM::W3Org2001XMLSchema::Annotated
339
+ has_attr 'schemaLocation', String
340
+ end
341
+
342
+ class MM::W3Org2001XMLSchema::ImportTYPE < MM::W3Org2001XMLSchema::Annotated
343
+ has_attr 'namespace', String
344
+ has_attr 'schemaLocation', String
345
+ end
346
+
347
+ class MM::W3Org2001XMLSchema::RedefineTYPE < MM::W3Org2001XMLSchema::OpenAttrs
348
+ has_attr 'schemaLocation', String
349
+ has_attr 'id', String
350
+ end
351
+
352
+ class MM::W3Org2001XMLSchema::OverrideTYPE < MM::W3Org2001XMLSchema::OpenAttrs
353
+ has_attr 'schemaLocation', String
354
+ has_attr 'id', String
355
+ end
356
+
357
+
358
+ MM::W3Org2001XMLSchema::Annotated.contains_one_uni 'annotation', MM::W3Org2001XMLSchema::AnnotationTYPE
359
+ MM::W3Org2001XMLSchema::AnnotationTYPE.contains_many_uni 'appinfo', MM::W3Org2001XMLSchema::AppinfoTYPE
360
+ MM::W3Org2001XMLSchema::AnnotationTYPE.contains_many_uni 'documentation', MM::W3Org2001XMLSchema::DocumentationTYPE
361
+ MM::W3Org2001XMLSchema::Attribute.contains_one 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType, 'containingAttribute'
362
+ MM::W3Org2001XMLSchema::Attribute.has_one 'ref', MM::W3Org2001XMLSchema::Attribute
363
+ MM::W3Org2001XMLSchema::Attribute.has_one 'type', MM::W3Org2001XMLSchema::SimpleType
364
+ MM::W3Org2001XMLSchema::Element.contains_one 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType, 'containingElement'
365
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'minExclusive', MM::W3Org2001XMLSchema::Facet
366
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'minInclusive', MM::W3Org2001XMLSchema::Facet
367
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'maxExclusive', MM::W3Org2001XMLSchema::Facet
368
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'maxInclusive', MM::W3Org2001XMLSchema::Facet
369
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'totalDigits', MM::W3Org2001XMLSchema::TotalDigitsTYPE
370
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'fractionDigits', MM::W3Org2001XMLSchema::NumFacet
371
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'length', MM::W3Org2001XMLSchema::NumFacet
372
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'minLength', MM::W3Org2001XMLSchema::NumFacet
373
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'maxLength', MM::W3Org2001XMLSchema::NumFacet
374
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'enumeration', MM::W3Org2001XMLSchema::NoFixedFacet
375
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'whiteSpace', MM::W3Org2001XMLSchema::WhiteSpaceTYPE
376
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'pattern', MM::W3Org2001XMLSchema::PatternTYPE
377
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'assertion', MM::W3Org2001XMLSchema::Assertion
378
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_many_uni 'explicitTimezone', MM::W3Org2001XMLSchema::ExplicitTimezoneTYPE
379
+ MM::W3Org2001XMLSchema::RestrictionTYPE.contains_one_uni 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType
380
+ MM::W3Org2001XMLSchema::RestrictionTYPE.has_one 'base', MM::W3Org2001XMLSchema::Type
381
+ MM::W3Org2001XMLSchema::ListTYPE.contains_one_uni 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType
382
+ MM::W3Org2001XMLSchema::ListTYPE.has_one 'itemType', MM::W3Org2001XMLSchema::SimpleType
383
+ MM::W3Org2001XMLSchema::UnionTYPE.contains_many_uni 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType
384
+ MM::W3Org2001XMLSchema::UnionTYPE.has_many 'memberTypes', MM::W3Org2001XMLSchema::SimpleType
385
+ MM::W3Org2001XMLSchema::SimpleType.contains_one_uni 'restriction', MM::W3Org2001XMLSchema::RestrictionTYPE
386
+ MM::W3Org2001XMLSchema::SimpleType.contains_one_uni 'list', MM::W3Org2001XMLSchema::ListTYPE
387
+ MM::W3Org2001XMLSchema::SimpleType.contains_one_uni 'union', MM::W3Org2001XMLSchema::UnionTYPE
388
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'group', MM::W3Org2001XMLSchema::GroupRef
389
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'all', MM::W3Org2001XMLSchema::All
390
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'choice', MM::W3Org2001XMLSchema::ExplicitGroup
391
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'sequence', MM::W3Org2001XMLSchema::ExplicitGroup
392
+ MM::W3Org2001XMLSchema::ComplexType.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::Attribute
393
+ MM::W3Org2001XMLSchema::ComplexType.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::AttributeGroupRef
394
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'anyAttribute', MM::W3Org2001XMLSchema::AnyAttributeTYPE
395
+ MM::W3Org2001XMLSchema::ComplexType.contains_many_uni 'assert', MM::W3Org2001XMLSchema::Assertion
396
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'openContent', MM::W3Org2001XMLSchema::OpenContentTYPE
397
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'simpleContent', MM::W3Org2001XMLSchema::SimpleContentTYPE
398
+ MM::W3Org2001XMLSchema::ComplexType.contains_one_uni 'complexContent', MM::W3Org2001XMLSchema::ComplexContentTYPE
399
+ MM::W3Org2001XMLSchema::OpenContentTYPE.contains_one_uni 'any', MM::W3Org2001XMLSchema::Wildcard
400
+ MM::W3Org2001XMLSchema::SimpleContentTYPE.contains_one_uni 'restriction', MM::W3Org2001XMLSchema::SimpleRestrictionType
401
+ MM::W3Org2001XMLSchema::SimpleContentTYPE.contains_one_uni 'extension', MM::W3Org2001XMLSchema::SimpleExtensionType
402
+ MM::W3Org2001XMLSchema::ComplexContentTYPE.contains_one_uni 'restriction', MM::W3Org2001XMLSchema::ComplexRestrictionType
403
+ MM::W3Org2001XMLSchema::ComplexContentTYPE.contains_one_uni 'extension', MM::W3Org2001XMLSchema::ExtensionType
404
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'element', MM::W3Org2001XMLSchema::LocalElement
405
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'group', MM::W3Org2001XMLSchema::GroupRef
406
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'all', MM::W3Org2001XMLSchema::All
407
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'choice', MM::W3Org2001XMLSchema::ExplicitGroup
408
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'sequence', MM::W3Org2001XMLSchema::ExplicitGroup
409
+ MM::W3Org2001XMLSchema::Group.contains_many_uni 'any', MM::W3Org2001XMLSchema::AnyTYPE
410
+ MM::W3Org2001XMLSchema::Group.has_one 'ref', MM::W3Org2001XMLSchema::Group
411
+ MM::W3Org2001XMLSchema::AttributeGroup.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::Attribute
412
+ MM::W3Org2001XMLSchema::AttributeGroup.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::AttributeGroupRef
413
+ MM::W3Org2001XMLSchema::AttributeGroup.contains_one_uni 'anyAttribute', MM::W3Org2001XMLSchema::AnyAttributeTYPE
414
+ MM::W3Org2001XMLSchema::AttributeGroup.has_one 'ref', MM::W3Org2001XMLSchema::AttributeGroup
415
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'group', MM::W3Org2001XMLSchema::GroupRef
416
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'all', MM::W3Org2001XMLSchema::All
417
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'choice', MM::W3Org2001XMLSchema::ExplicitGroup
418
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'sequence', MM::W3Org2001XMLSchema::ExplicitGroup
419
+ MM::W3Org2001XMLSchema::ExtensionType.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::Attribute
420
+ MM::W3Org2001XMLSchema::ExtensionType.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::AttributeGroupRef
421
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'anyAttribute', MM::W3Org2001XMLSchema::AnyAttributeTYPE
422
+ MM::W3Org2001XMLSchema::ExtensionType.contains_many_uni 'assert', MM::W3Org2001XMLSchema::Assertion
423
+ MM::W3Org2001XMLSchema::ExtensionType.contains_one_uni 'openContent', MM::W3Org2001XMLSchema::OpenContentTYPE
424
+ MM::W3Org2001XMLSchema::ExtensionType.has_one 'base', MM::W3Org2001XMLSchema::Type
425
+ MM::W3Org2001XMLSchema::Element.contains_one 'complexType', MM::W3Org2001XMLSchema::LocalComplexType, 'containingElement'
426
+ MM::W3Org2001XMLSchema::Keybase.contains_one_uni 'selector', MM::W3Org2001XMLSchema::SelectorTYPE
427
+ MM::W3Org2001XMLSchema::Keybase.contains_many_uni 'field', MM::W3Org2001XMLSchema::FieldTYPE
428
+ MM::W3Org2001XMLSchema::AltType.contains_one_uni 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType
429
+ MM::W3Org2001XMLSchema::AltType.contains_one_uni 'complexType', MM::W3Org2001XMLSchema::LocalComplexType
430
+ MM::W3Org2001XMLSchema::Element.contains_many_uni 'unique', MM::W3Org2001XMLSchema::Keybase
431
+ MM::W3Org2001XMLSchema::Element.contains_many_uni 'key', MM::W3Org2001XMLSchema::Keybase
432
+ MM::W3Org2001XMLSchema::Element.contains_many_uni 'keyref', MM::W3Org2001XMLSchema::KeyrefTYPE
433
+ MM::W3Org2001XMLSchema::Element.contains_many_uni 'alternative', MM::W3Org2001XMLSchema::AltType
434
+ MM::W3Org2001XMLSchema::Element.has_one 'ref', MM::W3Org2001XMLSchema::Element
435
+ MM::W3Org2001XMLSchema::Element.has_one 'type', MM::W3Org2001XMLSchema::Type
436
+ MM::W3Org2001XMLSchema::Element.many_to_many 'substitutionGroup', MM::W3Org2001XMLSchema::Element, 'substitutes'
437
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'group', MM::W3Org2001XMLSchema::GroupRef
438
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'all', MM::W3Org2001XMLSchema::All
439
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'choice', MM::W3Org2001XMLSchema::ExplicitGroup
440
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'sequence', MM::W3Org2001XMLSchema::ExplicitGroup
441
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'openContent', MM::W3Org2001XMLSchema::OpenContentTYPE
442
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'minExclusive', MM::W3Org2001XMLSchema::Facet
443
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'minInclusive', MM::W3Org2001XMLSchema::Facet
444
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'maxExclusive', MM::W3Org2001XMLSchema::Facet
445
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'maxInclusive', MM::W3Org2001XMLSchema::Facet
446
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'totalDigits', MM::W3Org2001XMLSchema::TotalDigitsTYPE
447
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'fractionDigits', MM::W3Org2001XMLSchema::NumFacet
448
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'length', MM::W3Org2001XMLSchema::NumFacet
449
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'minLength', MM::W3Org2001XMLSchema::NumFacet
450
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'maxLength', MM::W3Org2001XMLSchema::NumFacet
451
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'enumeration', MM::W3Org2001XMLSchema::NoFixedFacet
452
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'whiteSpace', MM::W3Org2001XMLSchema::WhiteSpaceTYPE
453
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'pattern', MM::W3Org2001XMLSchema::PatternTYPE
454
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'assertion', MM::W3Org2001XMLSchema::Assertion
455
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'explicitTimezone', MM::W3Org2001XMLSchema::ExplicitTimezoneTYPE
456
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'simpleType', MM::W3Org2001XMLSchema::LocalSimpleType
457
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::Attribute
458
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::AttributeGroupRef
459
+ MM::W3Org2001XMLSchema::RestrictionType.contains_one_uni 'anyAttribute', MM::W3Org2001XMLSchema::AnyAttributeTYPE
460
+ MM::W3Org2001XMLSchema::RestrictionType.contains_many_uni 'assert', MM::W3Org2001XMLSchema::Assertion
461
+ MM::W3Org2001XMLSchema::RestrictionType.has_one 'base', MM::W3Org2001XMLSchema::Type
462
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_one_uni 'defaultOpenContent', MM::W3Org2001XMLSchema::DefaultOpenContentTYPE
463
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'annotation', MM::W3Org2001XMLSchema::AnnotationTYPE
464
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'simpleType', MM::W3Org2001XMLSchema::TopLevelSimpleType
465
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'complexType', MM::W3Org2001XMLSchema::TopLevelComplexType
466
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'group', MM::W3Org2001XMLSchema::NamedGroup
467
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::NamedAttributeGroup
468
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'element', MM::W3Org2001XMLSchema::TopLevelElement
469
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::TopLevelAttribute
470
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'notation', MM::W3Org2001XMLSchema::NotationTYPE
471
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'include', MM::W3Org2001XMLSchema::IncludeTYPE
472
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'import', MM::W3Org2001XMLSchema::ImportTYPE
473
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'redefine', MM::W3Org2001XMLSchema::RedefineTYPE
474
+ MM::W3Org2001XMLSchema::SchemaTYPE.contains_many_uni 'override', MM::W3Org2001XMLSchema::OverrideTYPE
475
+ MM::W3Org2001XMLSchema::DefaultOpenContentTYPE.contains_one_uni 'any', MM::W3Org2001XMLSchema::Wildcard, :lowerBound => 1
476
+ MM::W3Org2001XMLSchema::RedefineTYPE.contains_many_uni 'simpleType', MM::W3Org2001XMLSchema::TopLevelSimpleType
477
+ MM::W3Org2001XMLSchema::RedefineTYPE.contains_many_uni 'complexType', MM::W3Org2001XMLSchema::TopLevelComplexType
478
+ MM::W3Org2001XMLSchema::RedefineTYPE.contains_many_uni 'group', MM::W3Org2001XMLSchema::NamedGroup
479
+ MM::W3Org2001XMLSchema::RedefineTYPE.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::NamedAttributeGroup
480
+ MM::W3Org2001XMLSchema::RedefineTYPE.contains_many_uni 'annotation', MM::W3Org2001XMLSchema::AnnotationTYPE
481
+ MM::W3Org2001XMLSchema::OverrideTYPE.contains_many_uni 'simpleType', MM::W3Org2001XMLSchema::TopLevelSimpleType
482
+ MM::W3Org2001XMLSchema::OverrideTYPE.contains_many_uni 'complexType', MM::W3Org2001XMLSchema::TopLevelComplexType
483
+ MM::W3Org2001XMLSchema::OverrideTYPE.contains_many_uni 'group', MM::W3Org2001XMLSchema::NamedGroup
484
+ MM::W3Org2001XMLSchema::OverrideTYPE.contains_many_uni 'attributeGroup', MM::W3Org2001XMLSchema::NamedAttributeGroup
485
+ MM::W3Org2001XMLSchema::OverrideTYPE.contains_many_uni 'element', MM::W3Org2001XMLSchema::TopLevelElement
486
+ MM::W3Org2001XMLSchema::OverrideTYPE.contains_many_uni 'attribute', MM::W3Org2001XMLSchema::TopLevelAttribute
487
+ MM::W3Org2001XMLSchema::OverrideTYPE.contains_many_uni 'notation', MM::W3Org2001XMLSchema::NotationTYPE
488
+ MM::W3Org2001XMLSchema::OverrideTYPE.contains_one_uni 'annotation', MM::W3Org2001XMLSchema::AnnotationTYPE
@@ -0,0 +1,3 @@
1
+ task :default do
2
+ sh "ruby ../metamodel_generator.rb --mm 1.1 -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/2012/REC-xmlschema11-2-20120405/)
4
+ * structures.xml (http://www.w3.org/TR/2012/REC-xmlschema11-1-20120405/)
5
+
6
+ Copyright � 2012 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