Titan Core Initial Contribution
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_XmlTest_org_complex_minOccursMaxOccurs_e.ttcn
CommitLineData
970ed795
EL
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
36module www_XmlTest_org_complex_minOccursMaxOccurs_e {
37
38
39import from XSD all;
40
41
42/* GLOBAL COMPLEX TYPES WITH MIN/MAX OF COMPOSITOR */
43
44
45type record SeqTypeMin0max0
46{
47
48};
49
50
51type record SeqTypeMin0max1
52{
53 record {
54 XSD.String elem
55 } sequence optional
56}
57with {
58variant (sequence) "untagged";
59};
60
61
62type record SeqTypeMin1max1
63{
64 XSD.String elem
65};
66
67
68type record SeqTypeMin0maxU
69{
70 record of record {
71 XSD.String elem
72 } sequence_list
73}
74with {
75variant (sequence_list) "untagged";
76variant (sequence_list[-]) "untagged";
77};
78
79
80type record SeqTypeMin1maxU
81{
82 record length(1 .. infinity) of record {
83 XSD.String elem
84 } sequence_list
85}
86with {
87variant (sequence_list) "untagged";
88variant (sequence_list[-]) "untagged";
89};
90
91
92type record ChoTypeMin0max1
93{
94 union {
95 XSD.String elem1,
96 XSD.String elem2
97 } choice optional
98}
99with {
100variant (choice) "untagged";
101};
102
103
104type record ChoTypeMin0maxU
105{
106 record of union {
107 XSD.String elem1,
108 XSD.String elem2
109 } choice_list
110}
111with {
112variant (choice_list) "untagged";
113variant (choice_list[-]) "untagged";
114};
115
116
117type 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}
126with {
127variant "element";
128variant (choice) "untagged";
129variant (choice.elem0_list) "untagged";
130variant (choice.elem0_list[-]) "name as 'elem0'";
131variant (choice.elem1_list) "untagged";
132variant (choice.elem1_list[-]) "name as 'elem1'";
133variant (choice.elem2_list) "untagged";
134variant (choice.elem2_list[-]) "name as 'elem2'";
135variant (choice.elem3_list) "untagged";
136variant (choice.elem3_list[-]) "name as 'elem3'";
137};
138
139
140type record MinOccurs_maxOccurs_frame
141{
142 record of union {
143 ChoiceChildMinMax choiceChildMinMax
144 } choice_list
145}
146with {
147variant "name as uncapitalized";
148variant "element";
149variant (choice_list) "untagged";
150variant (choice_list[-]) "untagged";
151variant (choice_list[-].choiceChildMinMax) "name as capitalized";
152};
153
154
155type record AllTypeMin0max1
156{
157 record of enumerated {
158 elem1,
159 elem2
160 } order,
161 XSD.String elem1 optional,
162 XSD.String elem2 optional
163}
164with {
165variant "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
178type record SeqGroup
179{
180 XSD.String elem
181}
182with {
183variant "untagged";
184};
185
186
187type union ChoGroup
188{
189 XSD.String elem
190}
191with {
192variant "untagged";
193};
194
195
196type record AllGroup
197{
198 record of enumerated {
199 elem
200 } order,
201 XSD.String elem
202}
203with {
204variant "useOrder";
205variant "untagged";
206};
207
208
209type 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}
224with {
225variant (min0maxU_list) "untagged";
226variant (min0maxU_list[-]) "name as 'min0maxU'";
227variant (min1maxU_list) "untagged";
228variant (min1maxU_list[-]) "name as 'min1maxU'";
229variant (nilmin0max1) "useNil";
230variant (nilmin0maxU_list) "untagged";
231variant (nilmin0maxU_list[-]) "name as 'nilmin0maxU'";
232variant (nilmin0maxU_list[-]) "useNil";
233variant (item) "name as capitalized";
234variant (item_1) "name as 'Item'";
235};
236
237
238}
239with {
240encode "XML";
241variant "namespace as 'www.XmlTest.org/complex_minOccursMaxOccurs' prefix 'ns38'";
242variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
243}
This page took 0.038026 seconds and 5 git commands to generate.