Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_XmlTest_org_complex_minOccursMaxOccurs_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: www_XmlTest_org_complex_minOccursMaxOccurs_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Thu Sep 5 17:35:05 2013
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - XmlTest_complex_minOccursMaxOccurs.xsd
23 // /* xml version = "1.0" */
24 // /* targetnamespace = "www.XmlTest.org/complex_minOccursMaxOccurs" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
28 // Modified by:
29 // Modification date:
30 // Description:
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
34
35
36 module www_XmlTest_org_complex_minOccursMaxOccurs_e {
37
38
39 import from XSD all;
40
41
42 /* GLOBAL COMPLEX TYPES WITH MIN/MAX OF COMPOSITOR */
43
44
45 type record SeqTypeMin0max0
46 {
47
48 };
49
50
51 type record SeqTypeMin0max1
52 {
53 record {
54 XSD.String elem
55 } sequence optional
56 }
57 with {
58 variant (sequence) "untagged";
59 };
60
61
62 type record SeqTypeMin1max1
63 {
64 XSD.String elem
65 };
66
67
68 type record SeqTypeMin0maxU
69 {
70 record of record {
71 XSD.String elem
72 } sequence_list
73 }
74 with {
75 variant (sequence_list) "untagged";
76 variant (sequence_list[-]) "untagged";
77 };
78
79
80 type record SeqTypeMin1maxU
81 {
82 record length(1 .. infinity) of record {
83 XSD.String elem
84 } sequence_list
85 }
86 with {
87 variant (sequence_list) "untagged";
88 variant (sequence_list[-]) "untagged";
89 };
90
91
92 type record ChoTypeMin0max1
93 {
94 union {
95 XSD.String elem1,
96 XSD.String elem2
97 } choice optional
98 }
99 with {
100 variant (choice) "untagged";
101 };
102
103
104 type record ChoTypeMin0maxU
105 {
106 record of union {
107 XSD.String elem1,
108 XSD.String elem2
109 } choice_list
110 }
111 with {
112 variant (choice_list) "untagged";
113 variant (choice_list[-]) "untagged";
114 };
115
116
117 type record ChoiceChildMinMax
118 {
119 union {
120 record length(1 .. 5) of XSD.String elem0_list,
121 record length(0 .. 1) of XSD.String elem1_list,
122 record length(1) of XSD.String elem2_list,
123 record length(1 .. infinity) of XSD.String elem3_list
124 } choice
125 }
126 with {
127 variant "element";
128 variant (choice) "untagged";
129 variant (choice.elem0_list) "untagged";
130 variant (choice.elem0_list[-]) "name as 'elem0'";
131 variant (choice.elem1_list) "untagged";
132 variant (choice.elem1_list[-]) "name as 'elem1'";
133 variant (choice.elem2_list) "untagged";
134 variant (choice.elem2_list[-]) "name as 'elem2'";
135 variant (choice.elem3_list) "untagged";
136 variant (choice.elem3_list[-]) "name as 'elem3'";
137 };
138
139
140 type record MinOccurs_maxOccurs_frame
141 {
142 record of union {
143 ChoiceChildMinMax choiceChildMinMax
144 } choice_list
145 }
146 with {
147 variant "name as uncapitalized";
148 variant "element";
149 variant (choice_list) "untagged";
150 variant (choice_list[-]) "untagged";
151 variant (choice_list[-].choiceChildMinMax) "name as capitalized";
152 };
153
154
155 type record AllTypeMin0max1
156 {
157 record of enumerated {
158 elem1,
159 elem2
160 } order,
161 XSD.String elem1 optional,
162 XSD.String elem2 optional
163 }
164 with {
165 variant "useOrder";
166 };
167
168
169 /* maxOccurs > 1 is not allowed for all */
170
171
172 /* GLOBAL GROUPS WITH MIN/MAX OF COMPOSITOR */
173
174
175 /* Note: minOcurs and maxOccurs are not allowed on named group definitions */
176
177
178 type record SeqGroup
179 {
180 XSD.String elem
181 }
182 with {
183 variant "untagged";
184 };
185
186
187 type union ChoGroup
188 {
189 XSD.String elem
190 }
191 with {
192 variant "untagged";
193 };
194
195
196 type record AllGroup
197 {
198 record of enumerated {
199 elem
200 } order,
201 XSD.String elem
202 }
203 with {
204 variant "useOrder";
205 variant "untagged";
206 };
207
208
209 type record SeqMixed
210 {
211 XSD.String min0max1 optional,
212 XSD.String min1max1,
213 record of XSD.String min0maxU_list,
214 record length(1 .. infinity) of XSD.String min1maxU_list,
215 record {
216 XSD.String content optional
217 } nilmin0max1 optional,
218 record of record {
219 XSD.String content optional
220 } nilmin0maxU_list,
221 XSD.String item optional,
222 XSD.String item_1
223 }
224 with {
225 variant (min0maxU_list) "untagged";
226 variant (min0maxU_list[-]) "name as 'min0maxU'";
227 variant (min1maxU_list) "untagged";
228 variant (min1maxU_list[-]) "name as 'min1maxU'";
229 variant (nilmin0max1) "useNil";
230 variant (nilmin0maxU_list) "untagged";
231 variant (nilmin0maxU_list[-]) "name as 'nilmin0maxU'";
232 variant (nilmin0maxU_list[-]) "useNil";
233 variant (item) "name as capitalized";
234 variant (item_1) "name as 'Item'";
235 };
236
237
238 }
239 with {
240 encode "XML";
241 variant "namespace as 'www.XmlTest.org/complex_minOccursMaxOccurs' prefix 'ns38'";
242 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
243 }
This page took 0.038629 seconds and 6 git commands to generate.