Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / schemas_ericsson_com_cai3g1_1_e.ttcn
1 /*******************************************************************************
2 * Copyright Ericsson Telecom AB
3 *
4 * XSD to TTCN-3 Translator
5 *
6 * All rights reserved. This program and the accompanying materials
7 * are made available under the terms of the Eclipse Public License v1.0
8 * which accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
10 *******************************************************************************/
11 //
12 // File: schemas_ericsson_com_cai3g1_1_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated:
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 //
22 // Generated from file(s):
23 //
24 // - GenericCai3gType.xsd
25 // /* xml version = "1.0" */
26 // /* targetnamespace = "http://schemas.ericsson.com/cai3g1.1/" */
27 //
28 ////////////////////////////////////////////////////////////////////////////////
29
30
31 module schemas_ericsson_com_cai3g1_1_e {
32
33
34 import from XSD all;
35
36
37 type record Create
38 {
39 MoType mOType,
40 AnyMOIdType mOId optional,
41 record {
42 CreateMODefinition createMODefinition
43 } mOAttributes optional,
44 AnySequenceType extension_ optional
45 }
46 with {
47 variant "element";
48 variant (mOType) "name as capitalized";
49 variant (mOId) "name as capitalized";
50 variant (mOAttributes) "name as capitalized";
51 variant (mOAttributes.createMODefinition) "name as capitalized";
52 variant (extension_) "name as 'extension'";
53 };
54
55
56 type record CreateResponse
57 {
58 AnyMOIdType mOId,
59 GetResponseMOAttributesType mOAttributes optional
60 }
61 with {
62 variant "element";
63 variant (mOId) "name as capitalized";
64 variant (mOAttributes) "name as capitalized";
65 };
66
67
68 type record Get
69 {
70 MoType mOType,
71 AnyMOIdType mOId optional,
72 AnySequenceType extension_ optional
73 }
74 with {
75 variant "element";
76 variant (mOType) "name as capitalized";
77 variant (mOId) "name as capitalized";
78 variant (extension_) "name as 'extension'";
79 };
80
81
82 type record GetResponse
83 {
84 record of AnyMOIdType mOId_list,
85 GetResponseMOAttributesType mOAttributes optional
86 }
87 with {
88 variant "element";
89 variant (mOId_list) "untagged";
90 variant (mOId_list[-]) "name as 'MOId'";
91 variant (mOAttributes) "name as capitalized";
92 };
93
94
95 type record Set
96 {
97 MoType mOType,
98 AnyMOIdType mOId,
99 record {
100 SetMODefinition setMODefinition
101 } mOAttributes,
102 AnySequenceType extension_ optional
103 }
104 with {
105 variant "element";
106 variant (mOType) "name as capitalized";
107 variant (mOId) "name as capitalized";
108 variant (mOAttributes) "name as capitalized";
109 variant (mOAttributes.setMODefinition) "name as capitalized";
110 variant (extension_) "name as 'extension'";
111 };
112
113
114 type record SetResponse
115 {
116 GetResponseMOAttributesType mOAttributes optional
117 }
118 with {
119 variant "element";
120 variant (mOAttributes) "name as capitalized";
121 };
122
123
124 type record Delete
125 {
126 MoType mOType,
127 AnyMOIdType mOId,
128 AnySequenceType extension_ optional
129 }
130 with {
131 variant "element";
132 variant (mOType) "name as capitalized";
133 variant (mOId) "name as capitalized";
134 variant (extension_) "name as 'extension'";
135 };
136
137
138 type record DeleteResponse
139 {
140 AnyMOIdType mOId optional,
141 GetResponseMOAttributesType mOAttributes optional
142 }
143 with {
144 variant "element";
145 variant (mOId) "name as capitalized";
146 variant (mOAttributes) "name as capitalized";
147 };
148
149
150 type record Search
151 {
152 MoType mOType,
153 SearchFiltersType filters,
154 AnySequenceType extension_ optional
155 }
156 with {
157 variant "element";
158 variant (mOType) "name as capitalized";
159 variant (extension_) "name as 'extension'";
160 };
161
162
163 type record SearchResponse
164 {
165 record of AnyMOIdType mOId_list
166 }
167 with {
168 variant "element";
169 variant (mOId_list) "untagged";
170 variant (mOId_list[-]) "name as 'MOId'";
171 };
172
173
174 type record Login
175 {
176 XSD.String userId,
177 XSD.String pwd
178 }
179 with {
180 variant "element";
181 };
182
183
184 type record LoginResponse
185 {
186 SessionIdType sessionId,
187 XSD.UnsignedLong baseSequenceId
188 }
189 with {
190 variant "element";
191 };
192
193
194 type record Logout
195 {
196 SessionIdType sessionId
197 }
198 with {
199 variant "element";
200 };
201
202
203 type record LogoutResponse
204 {
205
206 }
207 with {
208 variant "element";
209 };
210
211
212 type record Subscribe
213 {
214 XSD.AnyURI managerRef,
215 NotificationFiltersType filters
216 }
217 with {
218 variant "element";
219 };
220
221
222 type record SubscribeResponse
223 {
224 XSD.String subscriptionId
225 }
226 with {
227 variant "element";
228 };
229
230
231 type record Unsubscribe
232 {
233 XSD.AnyURI managerRef,
234 XSD.String subscriptionId optional
235 }
236 with {
237 variant "element";
238 };
239
240
241 type record UnsubscribeResponse
242 {
243
244 }
245 with {
246 variant "element";
247 };
248
249
250 type record Notify
251 {
252 NotificationHeaderType notificationHeader,
253 record of XSD.String correlatedNotifications_list,
254 XSD.String additionalText optional,
255 XSD.AnyURI sourceIndicator optional,
256 record {
257 record length(1 .. infinity) of XSD.String elem_list
258 } notificationData
259 }
260 with {
261 variant "element";
262 variant (correlatedNotifications_list) "untagged";
263 variant (correlatedNotifications_list[-]) "name as 'correlatedNotifications'";
264 variant (notificationData.elem_list) "untagged";
265 variant (notificationData.elem_list[-]) "anyElement";
266 };
267
268
269 type record NotifyResponse
270 {
271
272 }
273 with {
274 variant "element";
275 };
276
277
278 type record GetResponseMOAttributesType
279 {
280 GetMODefinition getMODefinition
281 }
282 with {
283 variant (getMODefinition) "name as capitalized";
284 };
285
286
287 type record AbstractCreateAttributeType
288 {
289
290 };
291
292
293 type record AbstractSetAttributeType
294 {
295
296 };
297
298
299 type record AbstractGetAttributeType
300 {
301
302 };
303
304
305 type XSD.AnySimpleType CreateMODefinition
306 with {
307 variant "element";
308 };
309
310
311 type XSD.AnySimpleType GetMODefinition
312 with {
313 variant "element";
314 };
315
316
317 type XSD.AnySimpleType SetMODefinition
318 with {
319 variant "element";
320 };
321
322
323 type AbstractCreateAttributeType CreateMODef
324 with {
325 variant "element";
326 };
327
328
329 type AbstractSetAttributeType SetMODef
330 with {
331 variant "element";
332 };
333
334
335 type AbstractGetAttributeType GetMODef
336 with {
337 variant "element";
338 };
339
340
341 type record AnyMOIdType
342 {
343 record length(1 .. infinity) of XSD.String elem_list
344 }
345 with {
346 variant (elem_list) "untagged";
347 variant (elem_list[-]) "anyElement";
348 };
349
350
351 type record AnySequenceType
352 {
353 record length(1 .. infinity) of XSD.String elem_list
354 }
355 with {
356 variant (elem_list) "untagged";
357 variant (elem_list[-]) "anyElement";
358 };
359
360
361 type XSD.String MoType (pattern "[A-Za-z][_A-Za-z0-9]*@?*");
362
363
364 type SessionIdType SessionId
365 with {
366 variant "element";
367 };
368
369
370 type XSD.UnsignedLong TransactionId
371 with {
372 variant "element";
373 };
374
375
376 type XSD.UnsignedLong SequenceId
377 with {
378 variant "element";
379 };
380
381
382 type XSD.String SessionIdType (pattern "[\d\w]#(1,)");
383
384
385 type record SearchFiltersType
386 {
387 record length(1 .. infinity) of SearchFilterType filter_list
388 }
389 with {
390 variant (filter_list) "untagged";
391 variant (filter_list[-]) "name as 'filter'";
392 };
393
394
395 type record SearchFilterType
396 {
397 record length(1 .. infinity) of XSD.String mOAttributes_list
398 }
399 with {
400 variant (mOAttributes_list) "untagged";
401 variant (mOAttributes_list[-]) "name as 'MOAttributes'";
402 };
403
404
405 type record NotificationHeaderType
406 {
407 XSD.String cai3gUser,
408 MoType mOType,
409 AnyMOIdType mOId,
410 XSD.String notificationId optional,
411 XSD.DateTime eventTime,
412 XSD.AnyURI notificationActor optional,
413 NotificationOperationType operation,
414 XSD.String subscriptionId
415 }
416 with {
417 variant (mOType) "name as capitalized";
418 variant (mOId) "name as capitalized";
419 };
420
421
422 /* How to make sure there must exist one element */
423 type record NotificationFilterType
424 {
425 record of XSD.String cai3gUser_list,
426 record of XSD.String mOType_list,
427 record length(0 .. 3) of NotificationOperationType operation_list,
428 record of XSD.String mOId_list,
429 record of XSD.String mOAttributes_list
430 }
431 with {
432 variant (cai3gUser_list) "untagged";
433 variant (cai3gUser_list[-]) "name as 'cai3gUser'";
434 variant (mOType_list) "untagged";
435 variant (mOType_list[-]) "name as 'MOType'";
436 variant (operation_list) "untagged";
437 variant (operation_list[-]) "name as 'operation'";
438 variant (mOId_list) "untagged";
439 variant (mOId_list[-]) "name as 'MOId'";
440 variant (mOAttributes_list) "untagged";
441 variant (mOAttributes_list[-]) "name as 'MOAttributes'";
442 };
443
444
445 type record NotificationFiltersType
446 {
447 record length(1 .. infinity) of NotificationFilterType filter_list
448 }
449 with {
450 variant (filter_list) "untagged";
451 variant (filter_list[-]) "name as 'filter'";
452 };
453
454
455 type enumerated NotificationOperationType
456 {
457 create_,
458 delete,
459 set_
460 }
461 with {
462 variant "text 'create_' as 'Create'";
463 variant "text 'delete' as capitalized";
464 variant "text 'set_' as 'Set'";
465 };
466
467
468 type record Cai3gFault
469 {
470 XSD.Integer faultcode,
471 record {
472 record length(1 .. infinity) of XSD.String reasonText_list
473 } faultreason,
474 XSD.String faultrole,
475 record {
476 XSD.String elem
477 } details optional
478 }
479 with {
480 variant "element";
481 variant (faultreason.reasonText_list) "untagged";
482 variant (faultreason.reasonText_list[-]) "name as 'reasonText'";
483 variant (details.elem) "anyElement";
484 };
485
486
487 type record HeaderFaultType
488 {
489 XSD.String faultactor,
490 XSD.String description
491 };
492
493
494 type record SessionIdFault
495 {
496 XSD.String faultactor,
497 XSD.String description,
498 enumerated {
499 invalid_SessionId,
500 session_Timeout,
501 sessionId_Syntax_Error
502 } faultcode
503 }
504 with {
505 variant (faultcode) "text 'invalid_SessionId' as 'Invalid SessionId'";
506 variant (faultcode) "text 'sessionId_Syntax_Error' as 'SessionId Syntax Error'";
507 variant (faultcode) "text 'session_Timeout' as 'Session Timeout'";
508 };
509
510
511 type record SequenceIdFault
512 {
513 XSD.String faultactor,
514 XSD.String description,
515 enumerated {
516 invalid_SequenceId
517 } faultcode
518 }
519 with {
520 variant (faultcode) "text 'invalid_SequenceId' as 'Invalid SequenceId'";
521 };
522
523
524 type record TransactionIdFault
525 {
526 XSD.String faultactor,
527 XSD.String description,
528 enumerated {
529 invalid_TransactionId
530 } faultcode
531 }
532 with {
533 variant (faultcode) "text 'invalid_TransactionId' as 'Invalid TransactionId'";
534 };
535
536
537 }
538 with {
539 encode "XML";
540 variant "namespace as 'http://schemas.ericsson.com/cai3g1.1/'";
541 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
542 variant "elementFormQualified";
543 }
This page took 0.056574 seconds and 5 git commands to generate.