Commit | Line | Data |
---|---|---|
970ed795 EL |
1 | /****************************************************************************** |
2 | * Copyright (c) 2000-2014 Ericsson Telecom AB | |
3 | * All rights reserved. This program and the accompanying materials | |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
7 | ******************************************************************************/ | |
8 | // | |
9 | // File: www_XmlTest_org_negativeTest_XML_Types.ttcn | |
10 | // Description: | |
11 | // References: | |
12 | // Rev: | |
13 | // Prodnr: | |
14 | // Updated: Mon Apr 18 18:05:24 2011 | |
15 | // Contact: http://ttcn.ericsson.se | |
16 | // | |
17 | //////////////////////////////////////////////////////////////////////////////// | |
18 | // | |
19 | // Generated from file(s): | |
20 | // | |
21 | // - NegTest_XML_Types.xsd | |
22 | // /* xml version = "1.0" */ | |
23 | // /* targetnamespace = "www.XmlTest.org/negativeTest_XML_Types" */ | |
24 | // | |
25 | //////////////////////////////////////////////////////////////////////////////// | |
26 | ||
27 | ||
28 | module www_XmlTest_org_negativeTest_XML_Types { | |
29 | ||
30 | ||
31 | import from XSD all; | |
32 | ||
33 | ||
34 | /* This documentum tests based on | |
35 | XML Schema Part 1: Structures Second Edition | |
36 | Last modified: 2011-04-13, ETHBAAT */ | |
37 | ||
38 | ||
39 | type XSD.Boolean B | |
40 | with { | |
41 | variant "name as uncapitalized"; | |
42 | }; | |
43 | ||
44 | ||
45 | type XSD.Integer I | |
46 | with { | |
47 | variant "name as uncapitalized"; | |
48 | }; | |
49 | ||
50 | ||
51 | type XSD.Integer J | |
52 | with { | |
53 | variant "name as uncapitalized"; | |
54 | }; | |
55 | ||
56 | ||
57 | type XSD.Integer K | |
58 | with { | |
59 | variant "name as uncapitalized"; | |
60 | }; | |
61 | ||
62 | ||
63 | type enumerated E | |
64 | { | |
65 | first, | |
66 | second, | |
67 | third | |
68 | } | |
69 | with { | |
70 | variant "name as uncapitalized"; | |
71 | }; | |
72 | ||
73 | ||
74 | type enumerated N | |
75 | { | |
76 | nULL | |
77 | } | |
78 | with { | |
79 | variant "text 'nULL' as capitalized"; | |
80 | variant "name as uncapitalized"; | |
81 | }; | |
82 | ||
83 | ||
84 | type XSD.Float F | |
85 | with { | |
86 | variant "name as uncapitalized"; | |
87 | }; | |
88 | ||
89 | ||
90 | type XSD.Float R | |
91 | with { | |
92 | variant "name as uncapitalized"; | |
93 | }; | |
94 | ||
95 | ||
96 | type XSD.Float FLOAT; | |
97 | ||
98 | ||
99 | type XSD.Float X | |
100 | with { | |
101 | variant "name as uncapitalized"; | |
102 | }; | |
103 | ||
104 | ||
105 | type XSD.Float Y | |
106 | with { | |
107 | variant "name as uncapitalized"; | |
108 | }; | |
109 | ||
110 | ||
111 | type Octetstring O | |
112 | with { | |
113 | variant "name as uncapitalized"; | |
114 | }; | |
115 | ||
116 | ||
117 | type XSD.String S | |
118 | with { | |
119 | variant "name as uncapitalized"; | |
120 | }; | |
121 | ||
122 | ||
123 | /* 0. elementary */ | |
124 | ||
125 | ||
126 | type enumerated MyEnum | |
127 | { | |
128 | first, | |
129 | second, | |
130 | third | |
131 | }; | |
132 | ||
133 | ||
134 | type enumerated NULL_1 | |
135 | { | |
136 | nULL | |
137 | } | |
138 | with { | |
139 | variant "text 'nULL' as capitalized"; | |
140 | variant "name as 'NULL'"; | |
141 | }; | |
142 | ||
143 | ||
144 | /* 1. Sequence (record_ */ | |
145 | ||
146 | ||
147 | type record MySeqEmpty | |
148 | { | |
149 | ||
150 | }; | |
151 | ||
152 | ||
153 | type record MySeqBool | |
154 | { | |
155 | XSD.Boolean b | |
156 | }; | |
157 | ||
158 | ||
159 | type record MySeqNull | |
160 | { | |
161 | NULL_1 n | |
162 | }; | |
163 | ||
164 | ||
165 | type record MySeqInt | |
166 | { | |
167 | XSD.Integer i | |
168 | }; | |
169 | ||
170 | ||
171 | type record MySeqMyEnum | |
172 | { | |
173 | MyEnum e | |
174 | }; | |
175 | ||
176 | ||
177 | type record MySeqInt2 | |
178 | { | |
179 | I i, | |
180 | J j | |
181 | }; | |
182 | ||
183 | ||
184 | type record MySeqInt2opt | |
185 | { | |
186 | XSD.Integer i, | |
187 | XSD.Integer j optional | |
188 | }; | |
189 | ||
190 | ||
191 | type record MySeqIntSeqInt2 | |
192 | { | |
193 | XSD.Integer i, | |
194 | MySeqInt2 jk | |
195 | }; | |
196 | ||
197 | ||
198 | type record MySeqIntSeqInt2opt | |
199 | { | |
200 | XSD.Integer i optional, | |
201 | MySeqInt2 jk | |
202 | }; | |
203 | ||
204 | ||
205 | type record MySeqIntSeqInt2optopt | |
206 | { | |
207 | XSD.Integer i optional, | |
208 | MySeqInt2opt jk | |
209 | }; | |
210 | ||
211 | ||
212 | type record MySeqInt3 | |
213 | { | |
214 | XSD.Integer i, | |
215 | XSD.Integer j, | |
216 | XSD.Integer k | |
217 | }; | |
218 | ||
219 | ||
220 | type record MySeqInt3opt | |
221 | { | |
222 | XSD.Integer i, | |
223 | XSD.Integer j, | |
224 | XSD.Integer k optional | |
225 | }; | |
226 | ||
227 | ||
228 | type record MySeqInt4 | |
229 | { | |
230 | XSD.Integer i, | |
231 | XSD.Integer j, | |
232 | XSD.Integer k, | |
233 | XSD.Integer l | |
234 | }; | |
235 | ||
236 | ||
237 | type record MySeqInt4opt | |
238 | { | |
239 | XSD.Integer i, | |
240 | XSD.Integer j, | |
241 | XSD.Integer k, | |
242 | XSD.Integer l optional | |
243 | }; | |
244 | ||
245 | ||
246 | type record MySeqReal | |
247 | { | |
248 | XSD.Float x | |
249 | }; | |
250 | ||
251 | ||
252 | type record MySeqReal2 | |
253 | { | |
254 | XSD.Float x, | |
255 | XSD.Float y | |
256 | }; | |
257 | ||
258 | ||
259 | type record MySeqStr | |
260 | { | |
261 | XSD.String s | |
262 | }; | |
263 | ||
264 | ||
265 | type record MySeqStr2 | |
266 | { | |
267 | XSD.String s, | |
268 | XSD.String t | |
269 | }; | |
270 | ||
271 | ||
272 | /* there is no such thing as a bitstring */ | |
273 | ||
274 | ||
275 | type XSD.Decimal Bitstring | |
276 | with { | |
277 | variant "name as uncapitalized"; | |
278 | variant "element"; | |
279 | }; | |
280 | ||
281 | ||
282 | type record MySeqBitStr | |
283 | { | |
284 | Bitstring b | |
285 | }; | |
286 | ||
287 | ||
288 | type record MySeqBitStr2 | |
289 | { | |
290 | Bitstring a, | |
291 | Bitstring b | |
292 | }; | |
293 | ||
294 | ||
295 | type record MySeqIntReal | |
296 | { | |
297 | XSD.Integer i, | |
298 | XSD.Float x | |
299 | }; | |
300 | ||
301 | ||
302 | type record MySeqIntStr | |
303 | { | |
304 | XSD.Integer i, | |
305 | XSD.String s | |
306 | }; | |
307 | ||
308 | ||
309 | type record MySeqIntBitStr | |
310 | { | |
311 | XSD.Integer i, | |
312 | Bitstring b | |
313 | }; | |
314 | ||
315 | ||
316 | /* there is no such thing as an octetstring, Double tested instead */ | |
317 | ||
318 | ||
319 | type XSD.Date Octetstring | |
320 | with { | |
321 | variant "name as uncapitalized"; | |
322 | variant "element"; | |
323 | }; | |
324 | ||
325 | ||
326 | type record MySeqOctStr | |
327 | { | |
328 | Octetstring o | |
329 | }; | |
330 | ||
331 | ||
332 | type record MySeqOJKL | |
333 | { | |
334 | Octetstring o, | |
335 | XSD.Integer j, | |
336 | XSD.Integer k, | |
337 | XSD.Integer l | |
338 | }; | |
339 | ||
340 | ||
341 | type record MySeqIOKL | |
342 | { | |
343 | XSD.Integer i, | |
344 | Octetstring o, | |
345 | XSD.Integer k, | |
346 | XSD.Integer l | |
347 | }; | |
348 | ||
349 | ||
350 | type record MySeqISKL | |
351 | { | |
352 | XSD.Integer i, | |
353 | MySeqInt4 s, | |
354 | XSD.Integer k, | |
355 | XSD.Integer l | |
356 | }; | |
357 | ||
358 | ||
359 | /* ===== sequence of sequence of sequence ==== */ | |
360 | ||
361 | ||
362 | type record MySeqIntSeqIntSeqInt2SeqReal2 | |
363 | { | |
364 | XSD.Integer i optional, | |
365 | MySeqIntSeqInt2 jkl, | |
366 | MySeqReal2 xy | |
367 | }; | |
368 | ||
369 | ||
370 | type record MySeqIntSeqIntSeqInt2optoptSeqReal2 | |
371 | { | |
372 | XSD.Integer i optional, | |
373 | MySeqIntSeqInt2optopt jkl, | |
374 | MySeqReal2 xy | |
375 | }; | |
376 | ||
377 | ||
378 | type record MySeqIntSeqReal2 | |
379 | { | |
380 | XSD.Integer i optional, | |
381 | MySeqReal2 xy | |
382 | }; | |
383 | ||
384 | ||
385 | type record MySeqIntSeqIntSeqInt2 | |
386 | { | |
387 | XSD.Integer i, | |
388 | MySeqIntSeqInt2 jkl | |
389 | }; | |
390 | ||
391 | ||
392 | type record MySeqSeqIntSeqInt2SeqReal2 | |
393 | { | |
394 | MySeqIntSeqInt2 jkl, | |
395 | MySeqReal2 xy | |
396 | }; | |
397 | ||
398 | ||
399 | type record MySeq_SeqSeqIntSeqInt2SeqReal2_SeqSeqIntSeqInt2SeqReal2 | |
400 | { | |
401 | MySeqSeqIntSeqInt2SeqReal2 s1, | |
402 | MySeqSeqIntSeqInt2SeqReal2 s2 | |
403 | }; | |
404 | ||
405 | ||
406 | type record MySeq_SeqSeqIntSeqInt2optoptSeqReal2_SeqSeqIntSeqInt2optoptSeqReal2 | |
407 | { | |
408 | MySeqIntSeqIntSeqInt2optoptSeqReal2 s1, | |
409 | MySeqIntSeqIntSeqInt2optoptSeqReal2 s2 | |
410 | }; | |
411 | ||
412 | ||
413 | type record MySeqBasicTypes | |
414 | { | |
415 | XSD.Boolean b, | |
416 | NULL_1 n, | |
417 | XSD.Integer i, | |
418 | MyEnum e, | |
419 | XSD.Float r, | |
420 | Bitstring bs, | |
421 | Octetstring os, | |
422 | XSD.String oi, | |
423 | XSD.String roi | |
424 | }; | |
425 | ||
426 | ||
427 | type record MySeqEnum | |
428 | { | |
429 | MyEnum e | |
430 | }; | |
431 | ||
432 | ||
433 | /* 2. Sequence of (record of) */ | |
434 | ||
435 | ||
436 | type record MySeqOfBool | |
437 | { | |
438 | record of XSD.Boolean b_list | |
439 | } | |
440 | with { | |
441 | variant (b_list) "untagged"; | |
442 | variant (b_list[-]) "name as 'b'"; | |
443 | }; | |
444 | ||
445 | ||
446 | type record MySeqOfNull | |
447 | { | |
448 | record of NULL_1 n_list | |
449 | } | |
450 | with { | |
451 | variant (n_list) "untagged"; | |
452 | variant (n_list[-]) "name as 'n'"; | |
453 | }; | |
454 | ||
455 | ||
456 | type record MySeqOfInt | |
457 | { | |
458 | record of XSD.Integer i_list | |
459 | } | |
460 | with { | |
461 | variant (i_list) "untagged"; | |
462 | variant (i_list[-]) "name as 'i'"; | |
463 | }; | |
464 | ||
465 | ||
466 | type record MySeqOfMyEnum | |
467 | { | |
468 | record of MyEnum e_list | |
469 | } | |
470 | with { | |
471 | variant (e_list) "untagged"; | |
472 | variant (e_list[-]) "name as 'e'"; | |
473 | }; | |
474 | ||
475 | ||
476 | type record MySeqOfEnum | |
477 | { | |
478 | record of MyEnum e_list | |
479 | } | |
480 | with { | |
481 | variant (e_list) "untagged"; | |
482 | variant (e_list[-]) "name as 'e'"; | |
483 | }; | |
484 | ||
485 | ||
486 | type record MySeqOfReal | |
487 | { | |
488 | record of XSD.Float r_list | |
489 | } | |
490 | with { | |
491 | variant (r_list) "untagged"; | |
492 | variant (r_list[-]) "name as 'r'"; | |
493 | }; | |
494 | ||
495 | ||
496 | type record MySeqOfBitStr | |
497 | { | |
498 | record of Bitstring bs_list | |
499 | } | |
500 | with { | |
501 | variant (bs_list) "untagged"; | |
502 | variant (bs_list[-]) "name as 'bs'"; | |
503 | }; | |
504 | ||
505 | ||
506 | type record MySeqOfOctStr | |
507 | { | |
508 | record of Octetstring os_list | |
509 | } | |
510 | with { | |
511 | variant (os_list) "untagged"; | |
512 | variant (os_list[-]) "name as 'os'"; | |
513 | }; | |
514 | ||
515 | ||
516 | type record MySeqOfObjId | |
517 | { | |
518 | record of XSD.String oi_list | |
519 | } | |
520 | with { | |
521 | variant (oi_list) "untagged"; | |
522 | variant (oi_list[-]) "name as 'oi'"; | |
523 | }; | |
524 | ||
525 | ||
526 | type record MySeqOfMyUnionBT | |
527 | { | |
528 | record of MyUnionBasicTypes u_list | |
529 | } | |
530 | with { | |
531 | variant (u_list) "untagged"; | |
532 | variant (u_list[-]) "name as 'u'"; | |
533 | }; | |
534 | ||
535 | ||
536 | type record MySeqOfSeqSeqIntSeqInt2SeqReal2 | |
537 | { | |
538 | record of MySeqSeqIntSeqInt2SeqReal2 s_list | |
539 | } | |
540 | with { | |
541 | variant (s_list) "untagged"; | |
542 | variant (s_list[-]) "name as 's'"; | |
543 | }; | |
544 | ||
545 | ||
546 | type record MySeqOfMySeqIntSeqIntSeqInt2optoptSeqReal2 | |
547 | { | |
548 | record of MySeqIntSeqIntSeqInt2optoptSeqReal2 s_list | |
549 | } | |
550 | with { | |
551 | variant (s_list) "untagged"; | |
552 | variant (s_list[-]) "name as 's'"; | |
553 | }; | |
554 | ||
555 | ||
556 | /* 3. Set */ | |
557 | ||
558 | ||
559 | type record MySetBool | |
560 | { | |
561 | record of enumerated { | |
562 | b | |
563 | } order, | |
564 | XSD.Boolean b | |
565 | } | |
566 | with { | |
567 | variant "useOrder"; | |
568 | }; | |
569 | ||
570 | ||
571 | type record MySetNull | |
572 | { | |
573 | record of enumerated { | |
574 | n | |
575 | } order, | |
576 | NULL_1 n | |
577 | } | |
578 | with { | |
579 | variant "useOrder"; | |
580 | }; | |
581 | ||
582 | ||
583 | type record MySetInt | |
584 | { | |
585 | record of enumerated { | |
586 | i | |
587 | } order, | |
588 | XSD.Integer i | |
589 | } | |
590 | with { | |
591 | variant "useOrder"; | |
592 | }; | |
593 | ||
594 | ||
595 | type record MySetMyEnum | |
596 | { | |
597 | record of enumerated { | |
598 | e | |
599 | } order, | |
600 | MyEnum e | |
601 | } | |
602 | with { | |
603 | variant "useOrder"; | |
604 | }; | |
605 | ||
606 | ||
607 | type record MySetInt2 | |
608 | { | |
609 | record of enumerated { | |
610 | i, | |
611 | j | |
612 | } order, | |
613 | I i, | |
614 | J j | |
615 | } | |
616 | with { | |
617 | variant "useOrder"; | |
618 | }; | |
619 | ||
620 | ||
621 | type record MySetInt2opt | |
622 | { | |
623 | record of enumerated { | |
624 | i, | |
625 | j | |
626 | } order, | |
627 | XSD.Integer i, | |
628 | XSD.Integer j optional | |
629 | } | |
630 | with { | |
631 | variant "useOrder"; | |
632 | }; | |
633 | ||
634 | ||
635 | type record MySetIntSetInt2 | |
636 | { | |
637 | record of enumerated { | |
638 | i, | |
639 | jk | |
640 | } order, | |
641 | XSD.Integer i, | |
642 | MySetInt2 jk | |
643 | } | |
644 | with { | |
645 | variant "useOrder"; | |
646 | }; | |
647 | ||
648 | ||
649 | type record MySetIntSetInt2opt | |
650 | { | |
651 | record of enumerated { | |
652 | i, | |
653 | jk | |
654 | } order, | |
655 | XSD.Integer i optional, | |
656 | MySetInt2 jk | |
657 | } | |
658 | with { | |
659 | variant "useOrder"; | |
660 | }; | |
661 | ||
662 | ||
663 | type record MySetIntSetInt2optopt | |
664 | { | |
665 | record of enumerated { | |
666 | i, | |
667 | jk | |
668 | } order, | |
669 | XSD.Integer i optional, | |
670 | MySetInt2opt jk | |
671 | } | |
672 | with { | |
673 | variant "useOrder"; | |
674 | }; | |
675 | ||
676 | ||
677 | type record MySetInt3 | |
678 | { | |
679 | record of enumerated { | |
680 | i, | |
681 | j, | |
682 | k | |
683 | } order, | |
684 | XSD.Integer i, | |
685 | XSD.Integer j, | |
686 | XSD.Integer k | |
687 | } | |
688 | with { | |
689 | variant "useOrder"; | |
690 | }; | |
691 | ||
692 | ||
693 | type record MySetInt3opt | |
694 | { | |
695 | record of enumerated { | |
696 | i, | |
697 | j, | |
698 | k | |
699 | } order, | |
700 | XSD.Integer i, | |
701 | XSD.Integer j, | |
702 | XSD.Integer k optional | |
703 | } | |
704 | with { | |
705 | variant "useOrder"; | |
706 | }; | |
707 | ||
708 | ||
709 | type record MySetInt4 | |
710 | { | |
711 | record of enumerated { | |
712 | i, | |
713 | j, | |
714 | k, | |
715 | l | |
716 | } order, | |
717 | XSD.Integer i, | |
718 | XSD.Integer j, | |
719 | XSD.Integer k, | |
720 | XSD.Integer l | |
721 | } | |
722 | with { | |
723 | variant "useOrder"; | |
724 | }; | |
725 | ||
726 | ||
727 | type record MySetInt4opt | |
728 | { | |
729 | record of enumerated { | |
730 | i, | |
731 | j, | |
732 | k, | |
733 | l | |
734 | } order, | |
735 | XSD.Integer i, | |
736 | XSD.Integer j, | |
737 | XSD.Integer k, | |
738 | XSD.Integer l optional | |
739 | } | |
740 | with { | |
741 | variant "useOrder"; | |
742 | }; | |
743 | ||
744 | ||
745 | type record MySetReal | |
746 | { | |
747 | record of enumerated { | |
748 | x | |
749 | } order, | |
750 | XSD.Float x | |
751 | } | |
752 | with { | |
753 | variant "useOrder"; | |
754 | }; | |
755 | ||
756 | ||
757 | type record MySetReal2 | |
758 | { | |
759 | record of enumerated { | |
760 | x, | |
761 | y | |
762 | } order, | |
763 | XSD.Float x, | |
764 | XSD.Float y | |
765 | } | |
766 | with { | |
767 | variant "useOrder"; | |
768 | }; | |
769 | ||
770 | ||
771 | type record MySetStr | |
772 | { | |
773 | record of enumerated { | |
774 | s | |
775 | } order, | |
776 | XSD.String s | |
777 | } | |
778 | with { | |
779 | variant "useOrder"; | |
780 | }; | |
781 | ||
782 | ||
783 | type record MySetStr2 | |
784 | { | |
785 | record of enumerated { | |
786 | s, | |
787 | t | |
788 | } order, | |
789 | XSD.String s, | |
790 | XSD.String t | |
791 | } | |
792 | with { | |
793 | variant "useOrder"; | |
794 | }; | |
795 | ||
796 | ||
797 | /* there is no such thing as a bitstring */ | |
798 | ||
799 | ||
800 | type record MySetBitStr | |
801 | { | |
802 | record of enumerated { | |
803 | b | |
804 | } order, | |
805 | Bitstring b | |
806 | } | |
807 | with { | |
808 | variant "useOrder"; | |
809 | }; | |
810 | ||
811 | ||
812 | type record MySetBitStr2 | |
813 | { | |
814 | record of enumerated { | |
815 | a, | |
816 | b | |
817 | } order, | |
818 | Bitstring a, | |
819 | Bitstring b | |
820 | } | |
821 | with { | |
822 | variant "useOrder"; | |
823 | }; | |
824 | ||
825 | ||
826 | type record MySetIntReal | |
827 | { | |
828 | record of enumerated { | |
829 | i, | |
830 | x | |
831 | } order, | |
832 | XSD.Integer i, | |
833 | XSD.Float x | |
834 | } | |
835 | with { | |
836 | variant "useOrder"; | |
837 | }; | |
838 | ||
839 | ||
840 | type record MySetIntStr | |
841 | { | |
842 | record of enumerated { | |
843 | i, | |
844 | s | |
845 | } order, | |
846 | XSD.Integer i, | |
847 | XSD.String s | |
848 | } | |
849 | with { | |
850 | variant "useOrder"; | |
851 | }; | |
852 | ||
853 | ||
854 | type record MySetIntBitStr | |
855 | { | |
856 | record of enumerated { | |
857 | i, | |
858 | b | |
859 | } order, | |
860 | XSD.Integer i, | |
861 | Bitstring b | |
862 | } | |
863 | with { | |
864 | variant "useOrder"; | |
865 | }; | |
866 | ||
867 | ||
868 | /* there is no such thing as an octetstring, Double tested instead */ | |
869 | ||
870 | ||
871 | type record MySetOctStr | |
872 | { | |
873 | record of enumerated { | |
874 | o | |
875 | } order, | |
876 | Octetstring o | |
877 | } | |
878 | with { | |
879 | variant "useOrder"; | |
880 | }; | |
881 | ||
882 | ||
883 | type record MySetOJKL | |
884 | { | |
885 | record of enumerated { | |
886 | o, | |
887 | j, | |
888 | k, | |
889 | l | |
890 | } order, | |
891 | Octetstring o, | |
892 | XSD.Integer j, | |
893 | XSD.Integer k, | |
894 | XSD.Integer l | |
895 | } | |
896 | with { | |
897 | variant "useOrder"; | |
898 | }; | |
899 | ||
900 | ||
901 | type record MySetIOKL | |
902 | { | |
903 | record of enumerated { | |
904 | i, | |
905 | o, | |
906 | k, | |
907 | l | |
908 | } order, | |
909 | XSD.Integer i, | |
910 | Octetstring o, | |
911 | XSD.Integer k, | |
912 | XSD.Integer l | |
913 | } | |
914 | with { | |
915 | variant "useOrder"; | |
916 | }; | |
917 | ||
918 | ||
919 | type record MySetIOSKL | |
920 | { | |
921 | record of enumerated { | |
922 | i, | |
923 | o, | |
924 | s, | |
925 | k, | |
926 | l | |
927 | } order, | |
928 | XSD.Integer i, | |
929 | Octetstring o, | |
930 | MySetInt4 s, | |
931 | XSD.Integer k, | |
932 | XSD.Integer l | |
933 | } | |
934 | with { | |
935 | variant "useOrder"; | |
936 | }; | |
937 | ||
938 | ||
939 | type record MySetISKL | |
940 | { | |
941 | record of enumerated { | |
942 | i, | |
943 | s, | |
944 | k, | |
945 | l | |
946 | } order, | |
947 | XSD.Integer i, | |
948 | MySetInt4 s, | |
949 | XSD.Integer k, | |
950 | XSD.Integer l | |
951 | } | |
952 | with { | |
953 | variant "useOrder"; | |
954 | }; | |
955 | ||
956 | ||
957 | type record MySetISOKL | |
958 | { | |
959 | record of enumerated { | |
960 | i, | |
961 | s, | |
962 | o, | |
963 | k, | |
964 | l | |
965 | } order, | |
966 | XSD.Integer i, | |
967 | MySetInt4 s, | |
968 | Octetstring o, | |
969 | XSD.Integer k, | |
970 | XSD.Integer l | |
971 | } | |
972 | with { | |
973 | variant "useOrder"; | |
974 | }; | |
975 | ||
976 | ||
977 | /* ===== all of all of all ==== */ | |
978 | ||
979 | ||
980 | type record MySetIntSetIntSetInt2SetReal2 | |
981 | { | |
982 | record of enumerated { | |
983 | i, | |
984 | jkl, | |
985 | xy | |
986 | } order, | |
987 | XSD.Integer i optional, | |
988 | MySetIntSetInt2 jkl, | |
989 | MySetReal2 xy | |
990 | } | |
991 | with { | |
992 | variant "useOrder"; | |
993 | }; | |
994 | ||
995 | ||
996 | type record MySetIntSeqIntSeqInt2optoptSeqReal2 | |
997 | { | |
998 | record of enumerated { | |
999 | i, | |
1000 | jkl, | |
1001 | xy | |
1002 | } order, | |
1003 | XSD.Integer i optional, | |
1004 | MySetIntSetInt2optopt jkl, | |
1005 | MySetReal2 xy | |
1006 | } | |
1007 | with { | |
1008 | variant "useOrder"; | |
1009 | }; | |
1010 | ||
1011 | ||
1012 | type record MySetIntSeqReal2 | |
1013 | { | |
1014 | record of enumerated { | |
1015 | i, | |
1016 | xy | |
1017 | } order, | |
1018 | XSD.Integer i optional, | |
1019 | MySetReal2 xy | |
1020 | } | |
1021 | with { | |
1022 | variant "useOrder"; | |
1023 | }; | |
1024 | ||
1025 | ||
1026 | type record MySetIntSeqIntSeqInt2 | |
1027 | { | |
1028 | record of enumerated { | |
1029 | i, | |
1030 | jkl | |
1031 | } order, | |
1032 | XSD.Integer i, | |
1033 | MySetIntSetInt2 jkl | |
1034 | } | |
1035 | with { | |
1036 | variant "useOrder"; | |
1037 | }; | |
1038 | ||
1039 | ||
1040 | type record MySetSetIntSetInt2SetReal2 | |
1041 | { | |
1042 | record of enumerated { | |
1043 | jkl, | |
1044 | xy | |
1045 | } order, | |
1046 | MySetIntSetInt2 jkl, | |
1047 | MySetReal2 xy | |
1048 | } | |
1049 | with { | |
1050 | variant "useOrder"; | |
1051 | }; | |
1052 | ||
1053 | ||
1054 | type record MySet_SetSetIntSetInt2SetReal2_SetSetIntSetInt2SetReal2 | |
1055 | { | |
1056 | record of enumerated { | |
1057 | s1, | |
1058 | s2 | |
1059 | } order, | |
1060 | MySetSetIntSetInt2SetReal2 s1, | |
1061 | MySetSetIntSetInt2SetReal2 s2 | |
1062 | } | |
1063 | with { | |
1064 | variant "useOrder"; | |
1065 | }; | |
1066 | ||
1067 | ||
1068 | type record MySetBasicTypes | |
1069 | { | |
1070 | record of enumerated { | |
1071 | b, | |
1072 | n, | |
1073 | i, | |
1074 | e, | |
1075 | r, | |
1076 | bs, | |
1077 | os, | |
1078 | oi, | |
1079 | roi | |
1080 | } order, | |
1081 | XSD.Boolean b, | |
1082 | NULL_1 n, | |
1083 | XSD.Integer i, | |
1084 | MyEnum e, | |
1085 | XSD.Float r, | |
1086 | Bitstring bs, | |
1087 | Octetstring os, | |
1088 | XSD.String oi, | |
1089 | XSD.String roi | |
1090 | } | |
1091 | with { | |
1092 | variant "useOrder"; | |
1093 | }; | |
1094 | ||
1095 | ||
1096 | type record MySetEnum | |
1097 | { | |
1098 | record of enumerated { | |
1099 | e | |
1100 | } order, | |
1101 | MyEnum e | |
1102 | } | |
1103 | with { | |
1104 | variant "useOrder"; | |
1105 | }; | |
1106 | ||
1107 | ||
1108 | /* 4. Set of */ | |
1109 | ||
1110 | ||
1111 | /* 5. Union */ | |
1112 | ||
1113 | ||
1114 | type record MyUnionBasicTypes | |
1115 | { | |
1116 | union { | |
1117 | XSD.Boolean b, | |
1118 | NULL_1 n, | |
1119 | XSD.Integer i, | |
1120 | MyEnum e, | |
1121 | XSD.Float r, | |
1122 | Bitstring bs, | |
1123 | Octetstring os, | |
1124 | XSD.String oi | |
1125 | } choice | |
1126 | } | |
1127 | with { | |
1128 | variant (choice) "untagged"; | |
1129 | }; | |
1130 | ||
1131 | ||
1132 | type record MyUnionComplexTypes | |
1133 | { | |
1134 | union { | |
1135 | MyUnionBasicTypes u, | |
1136 | MySeqOfReal sofreal | |
1137 | } choice | |
1138 | } | |
1139 | with { | |
1140 | variant (choice) "untagged"; | |
1141 | }; | |
1142 | ||
1143 | ||
1144 | type MyUnionBasicTypes MyUnionElement | |
1145 | with { | |
1146 | variant "element"; | |
1147 | }; | |
1148 | ||
1149 | ||
1150 | /* 5. Attribute */ | |
1151 | ||
1152 | ||
1153 | type XSD.Boolean MyAttr | |
1154 | with { | |
1155 | variant "name as uncapitalized"; | |
1156 | }; | |
1157 | ||
1158 | ||
1159 | type record InternationalPrice | |
1160 | { | |
1161 | XSD.String currency optional, | |
1162 | XSD.Decimal value_ optional, | |
1163 | MyUnionBasicTypes myUnionValue optional | |
1164 | } | |
1165 | with { | |
1166 | variant "name as uncapitalized"; | |
1167 | variant "element"; | |
1168 | variant (currency) "attribute"; | |
1169 | variant (value_) "name as 'value'"; | |
1170 | variant (value_) "attribute"; | |
1171 | }; | |
1172 | ||
1173 | ||
1174 | } | |
1175 | with { | |
1176 | encode "XML"; | |
1177 | variant "namespace as 'www.XmlTest.org/negativeTest_XML_Types' prefix 'n'"; | |
1178 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
1179 | } |