/
XMLModule.idl
397 lines (373 loc) · 15.8 KB
/
XMLModule.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
#ifndef XMLMODULE_IDL
#define XMLMODULE_IDL
#pragma prefix "org.omg.cwm.resource"
#include "Reflective.idl"
#include "InstanceModule.idl"
#include "CoreModule.idl"
module XMLModule
{
typedef sequence<CoreModule::Feature> FeatureUList;
typedef sequence<CoreModule::ModelElement> ModelElementSet;
interface SchemaClass;
interface Schema;
typedef sequence<Schema> SchemaSet;
interface ElementTypeClass;
interface ElementType;
typedef sequence<ElementType> ElementTypeSet;
interface XmlAttributeClass;
interface XmlAttribute;
typedef sequence<XmlAttribute> XmlAttributeSet;
interface ContentClass;
interface Content;
typedef sequence<Content> ContentSet;
interface ElementContentClass;
interface ElementContent;
typedef sequence<ElementContent> ElementContentSet;
interface MixedContentClass;
interface MixedContent;
typedef sequence<MixedContent> MixedContentSet;
interface ElementTypeReferenceClass;
interface ElementTypeReference;
typedef sequence<ElementTypeReference> ElementTypeReferenceSet;
interface TextClass;
interface Text;
typedef sequence<Text> TextSet;
interface XmlElementClass;
interface XmlElement;
typedef sequence<XmlElement> XmlElementSet;
interface DocumentClass;
interface Document;
typedef sequence<Document> DocumentSet;
interface XMLModulePackage;
enum AttributeDefault {xml_required, xml_implied, xml_default, xml_fixed};
enum ContentType {xml_empty, xml_any, xml_mixed, xml_element};
enum OccurrenceType {xml_one, xml_zeroOrOne, xml_zeroOrMore, xml_oneOrMore};
enum ElementOrderType {xml_choice, xml_sequence};
interface SchemaClass : CoreModule::PackageClass
{
readonly attribute SchemaSet all_of_type_schema;
readonly attribute SchemaSet all_of_class_schema;
Schema create_schema (
in CoreModule::Name name,
in CoreModule::VisibilityKind visibility,
in string version,
in string xml_namespace)
raises (Reflective::MofError);
};
interface Schema : SchemaClass, CoreModule::Package
{
string version ()
raises (Reflective::MofError);
void set_version (in string new_value)
raises (Reflective::MofError);
string xml_namespace ()
raises (Reflective::MofError);
void set_xml_namespace (in string new_value)
raises (Reflective::MofError);
ModelElementSet element_type ()
raises (Reflective::MofError);
void set_element_type (in ModelElementSet new_value)
raises (Reflective::MofError);
void unset_element_type ()
raises (Reflective::MofError);
void add_element_type (in CoreModule::ModelElement new_element)
raises (Reflective::MofError);
void modify_element_type (
in CoreModule::ModelElement old_element,
in CoreModule::ModelElement new_element)
raises (Reflective::NotFound, Reflective::MofError);
void remove_element_type (in CoreModule::ModelElement old_element)
raises (Reflective::NotFound, Reflective::MofError);
}; // end of interface Schema
interface ElementTypeClass : CoreModule::ClassClass
{
readonly attribute ElementTypeSet all_of_type_element_type;
readonly attribute ElementTypeSet all_of_class_element_type;
ElementType create_element_type (
in CoreModule::Name name,
in CoreModule::VisibilityKind visibility,
in boolean is_abstract)
raises (Reflective::MofError);
};
interface ElementType : ElementTypeClass, CoreModule::Class
{
CoreModule::Namespace schema ()
raises (Reflective::NotSet, Reflective::MofError);
void set_schema (in CoreModule::Namespace new_value)
raises (Reflective::MofError);
void unset_schema ()
raises (Reflective::MofError);
FeatureUList xml_attribute ()
raises (Reflective::MofError);
void set_xml_attribute (in FeatureUList new_value)
raises (Reflective::MofError);
void unset_xml_attribute ()
raises (Reflective::MofError);
void add_xml_attribute (in CoreModule::Feature new_element)
raises (Reflective::MofError);
void add_xml_attribute_before (
in CoreModule::Feature new_element,
in CoreModule::Feature before_element)
raises (Reflective::NotFound, Reflective::MofError);
void modify_xml_attribute (
in CoreModule::Feature old_element,
in CoreModule::Feature new_element)
raises (Reflective::NotFound, Reflective::MofError);
void remove_xml_attribute (in CoreModule::Feature old_element)
raises (Reflective::NotFound, Reflective::MofError);
XMLModule::Content content ()
raises (Reflective::NotSet, Reflective::MofError);
void set_content (in XMLModule::Content new_value)
raises (Reflective::MofError);
void unset_content ()
raises (Reflective::MofError);
}; // end of interface ElementType
interface XmlAttributeClass : CoreModule::UmlAttributeClass
{
readonly attribute XmlAttributeSet all_of_type_xml_attribute;
readonly attribute XmlAttributeSet all_of_class_xml_attribute;
XmlAttribute create_xml_attribute (
in CoreModule::Name name,
in CoreModule::VisibilityKind visibility,
in CoreModule::ScopeKind owner_scope,
in CoreModule::ChangeableKind changeability,
in CoreModule::Multiplicity multiplicity,
in CoreModule::OrderingKind ordering,
in CoreModule::ScopeKind target_scope,
in CoreModule::Expression initial_value,
in AttributeDefault default_kind)
raises (Reflective::MofError);
};
interface XmlAttribute : XmlAttributeClass, CoreModule::UmlAttribute
{
AttributeDefault default_kind ()
raises (Reflective::MofError);
void set_default_kind (in AttributeDefault new_value)
raises (Reflective::MofError);
CoreModule::Classifier element_type ()
raises (Reflective::NotSet, Reflective::MofError);
void set_element_type (in CoreModule::Classifier new_value)
raises (Reflective::MofError);
void unset_element_type ()
raises (Reflective::MofError);
}; // end of interface XmlAttribute
interface ContentClass : CoreModule::ModelElementClass
{
readonly attribute ContentSet all_of_type_content;
readonly attribute ContentSet all_of_class_content;
Content create_content (
in CoreModule::Name name,
in CoreModule::VisibilityKind visibility,
in ContentType type,
in OccurrenceType occurrence)
raises (Reflective::MofError);
};
interface Content : ContentClass, CoreModule::ModelElement
{
ContentType type ()
raises (Reflective::MofError);
void set_type (in ContentType new_value)
raises (Reflective::MofError);
OccurrenceType occurrence ()
raises (Reflective::MofError);
void set_occurrence (in OccurrenceType new_value)
raises (Reflective::MofError);
ElementTypeSet element_type ()
raises (Reflective::MofError);
void set_element_type (in ElementTypeSet new_value)
raises (Reflective::MofError);
void unset_element_type ()
raises (Reflective::MofError);
void add_element_type (in ElementType new_element)
raises (Reflective::MofError);
void modify_element_type (
in ElementType old_element,
in ElementType new_element)
raises (Reflective::NotFound, Reflective::MofError);
void remove_element_type (in ElementType old_element)
raises (Reflective::NotFound, Reflective::MofError);
ElementTypeReferenceSet owned_element_type ()
raises (Reflective::MofError);
void set_owned_element_type (in ElementTypeReferenceSet new_value)
raises (Reflective::MofError);
void unset_owned_element_type ()
raises (Reflective::MofError);
void add_owned_element_type (in ElementTypeReference new_element)
raises (Reflective::MofError);
void modify_owned_element_type (
in ElementTypeReference old_element,
in ElementTypeReference new_element)
raises (Reflective::NotFound, Reflective::MofError);
void remove_owned_element_type (in ElementTypeReference old_element)
raises (Reflective::NotFound, Reflective::MofError);
}; // end of interface Content
interface ElementContentClass : ContentClass
{
readonly attribute ElementContentSet all_of_type_element_content;
readonly attribute ElementContentSet all_of_class_element_content;
ElementContent create_element_content (
in CoreModule::Name name,
in CoreModule::VisibilityKind visibility,
in ContentType type,
in OccurrenceType occurrence,
in ElementOrderType order)
raises (Reflective::MofError);
};
interface ElementContent : ElementContentClass, Content
{
ElementOrderType order ()
raises (Reflective::MofError);
void set_order (in ElementOrderType new_value)
raises (Reflective::MofError);
ElementContentSet owned_content ()
raises (Reflective::MofError);
void set_owned_content (in ElementContentSet new_value)
raises (Reflective::MofError);
void unset_owned_content ()
raises (Reflective::MofError);
void add_owned_content (in ElementContent new_element)
raises (Reflective::MofError);
void modify_owned_content (
in ElementContent old_element,
in ElementContent new_element)
raises (Reflective::NotFound, Reflective::MofError);
void remove_owned_content (in ElementContent old_element)
raises (Reflective::NotFound, Reflective::MofError);
ElementContentSet owner_content ()
raises (Reflective::MofError);
void set_owner_content (in ElementContentSet new_value)
raises (Reflective::MofError);
void unset_owner_content ()
raises (Reflective::MofError);
void add_owner_content (in ElementContent new_element)
raises (Reflective::MofError);
void modify_owner_content (
in ElementContent old_element,
in ElementContent new_element)
raises (Reflective::NotFound, Reflective::MofError);
void remove_owner_content (in ElementContent old_element)
raises (Reflective::NotFound, Reflective::MofError);
}; // end of interface ElementContent
interface MixedContentClass : ContentClass
{
readonly attribute MixedContentSet all_of_type_mixed_content;
readonly attribute MixedContentSet all_of_class_mixed_content;
MixedContent create_mixed_content (
in CoreModule::Name name,
in CoreModule::VisibilityKind visibility,
in ContentType type,
in OccurrenceType occurrence)
raises (Reflective::MofError);
};
interface MixedContent : MixedContentClass, Content
{
XMLModule::Text text ()
raises (Reflective::MofError);
void set_text (in XMLModule::Text new_value)
raises (Reflective::MofError);
}; // end of interface MixedContent
interface ElementTypeReferenceClass : CoreModule::UmlAttributeClass
{
readonly attribute ElementTypeReferenceSet all_of_type_element_type_reference;
readonly attribute ElementTypeReferenceSet all_of_class_element_type_reference;
ElementTypeReference create_element_type_reference (
in CoreModule::Name name,
in CoreModule::VisibilityKind visibility,
in CoreModule::ScopeKind owner_scope,
in CoreModule::ChangeableKind changeability,
in CoreModule::Multiplicity multiplicity,
in CoreModule::OrderingKind ordering,
in CoreModule::ScopeKind target_scope,
in CoreModule::Expression initial_value,
in OccurrenceType occurrence)
raises (Reflective::MofError);
};
interface ElementTypeReference : ElementTypeReferenceClass, CoreModule::UmlAttribute
{
OccurrenceType occurrence ()
raises (Reflective::MofError);
void set_occurrence (in OccurrenceType new_value)
raises (Reflective::MofError);
ContentSet owner_content ()
raises (Reflective::MofError);
void set_owner_content (in ContentSet new_value)
raises (Reflective::MofError);
void unset_owner_content ()
raises (Reflective::MofError);
void add_owner_content (in Content new_element)
raises (Reflective::MofError);
void modify_owner_content (
in Content old_element,
in Content new_element)
raises (Reflective::NotFound, Reflective::MofError);
void remove_owner_content (in Content old_element)
raises (Reflective::NotFound, Reflective::MofError);
}; // end of interface ElementTypeReference
interface TextClass : CoreModule::UmlAttributeClass
{
readonly attribute TextSet all_of_type_text;
readonly attribute TextSet all_of_class_text;
Text create_text (
in CoreModule::Name name,
in CoreModule::VisibilityKind visibility,
in CoreModule::ScopeKind owner_scope,
in CoreModule::ChangeableKind changeability,
in CoreModule::Multiplicity multiplicity,
in CoreModule::OrderingKind ordering,
in CoreModule::ScopeKind target_scope,
in CoreModule::Expression initial_value)
raises (Reflective::MofError);
};
interface Text : TextClass, CoreModule::UmlAttribute
{
MixedContent owner_content ()
raises (Reflective::MofError);
void set_owner_content (in MixedContent new_value)
raises (Reflective::MofError);
}; // end of interface Text
interface XmlElementClass : InstanceModule::UmlObjectClass
{
readonly attribute XmlElementSet all_of_type_xml_element;
readonly attribute XmlElementSet all_of_class_xml_element;
XmlElement create_xml_element (
in CoreModule::Name name,
in CoreModule::VisibilityKind visibility)
raises (Reflective::MofError);
};
interface XmlElement : XmlElementClass, InstanceModule::UmlObject
{
}; // end of interface XmlElement
interface DocumentClass : InstanceModule::ExtentClass
{
readonly attribute DocumentSet all_of_type_document;
readonly attribute DocumentSet all_of_class_document;
Document create_document (
in CoreModule::Name name,
in CoreModule::VisibilityKind visibility)
raises (Reflective::MofError);
};
interface Document : DocumentClass, InstanceModule::Extent
{
}; // end of interface Document
interface XMLModulePackageFactory
{
XMLModulePackage create_xmlmodule_package ()
raises (Reflective::MofError);
};
interface XMLModulePackage : Reflective::RefPackage
{
readonly attribute CoreModule::CoreModulePackage core_ref;
readonly attribute InstanceModule::InstanceModulePackage instance_ref;
readonly attribute SchemaClass schema_ref;
readonly attribute ElementTypeClass element_type_ref;
readonly attribute XmlAttributeClass xml_attribute_ref;
readonly attribute ContentClass content_ref;
readonly attribute ElementContentClass element_content_ref;
readonly attribute MixedContentClass mixed_content_ref;
readonly attribute ElementTypeReferenceClass element_type_reference_ref;
readonly attribute TextClass text_ref;
readonly attribute XmlElementClass xml_element_ref;
readonly attribute DocumentClass document_ref;
};
};
#endif