Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_type_substitution_complex_cascade_e.ttcn
1 /*******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
3 *
4 * XSD to TTCN-3 Translator version: CRL 113 200/5 R3B
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_example_org_type_substitution_complex_cascade_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Thu Dec 10 13:10:23 2014
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - type_substitution_complex_cascade_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/type/substitution/complex/cascade/e" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
28 // Modified by:
29 // Modification date:
30 // Description:
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
34
35
36 module www_example_org_type_substitution_complex_cascade {
37
38
39 import from XSD all;
40
41
42 type RequestType_derivations Request
43 with {
44 variant "name as uncapitalized";
45 variant "element";
46 };
47
48
49 type XSD.String MyProductionRequestType
50 with {
51 variant "name as 'myProductionRequestType_'";
52 variant "element";
53 };
54
55
56 type XSD.String MyProductionRequestType2
57 with {
58 variant "name as 'myProductionRequestType2_'";
59 variant "element";
60 };
61
62
63 /* The generic base type */
64
65
66 type record RequestType
67 {
68 XSD.String commonName
69 }
70 with {
71 variant "name as uncapitalized";
72 };
73
74
75 /* Production implementation */
76
77
78 type MyProductionRequestType_derivations Product
79 with {
80 variant "name as uncapitalized";
81 variant "element";
82 };
83
84
85 type record MyProductionRequestType_1
86 {
87 XSD.String commonName,
88 XSD.String productionName
89 }
90 with {
91 variant "name as 'myProductionRequestType'";
92 };
93
94
95 type MyProductionRequestType2_derivations Product2
96 with {
97 variant "name as uncapitalized";
98 variant "element";
99 };
100
101
102 /* Derived type of myProductionRequestType */
103
104
105 type record MyProductionRequestType2_1
106 {
107 XSD.String commonName,
108 XSD.String productionName,
109 XSD.Integer productItem optional
110 }
111 with {
112 variant "name as 'myProductionRequestType2'";
113 };
114
115
116 /* Derived type of myProductionRequestType2 */
117
118
119 type record MyProductionRequestType3
120 {
121 XSD.String commonName,
122 XSD.String productionName,
123 XSD.Integer productItem
124 }
125 with {
126 variant "name as uncapitalized";
127 };
128
129
130 /* Derived type of myProductionRequestType3 */
131
132
133 type record MyProductionRequestType4
134 {
135 XSD.String commonName,
136 XSD.Integer productItem
137 }
138 with {
139 variant "name as uncapitalized";
140 };
141
142
143 type union RequestType_derivations
144 {
145 RequestType requestType,
146 MyProductionRequestType_1 myProductionRequestType,
147 MyProductionRequestType2_1 myProductionRequestType2,
148 MyProductionRequestType3 myProductionRequestType3,
149 MyProductionRequestType4 myProductionRequestType4
150 }
151 with {
152 variant "name as uncapitalized";
153 variant "useType";
154 };
155
156
157 type union MyProductionRequestType_derivations
158 {
159 MyProductionRequestType_1 myProductionRequestType,
160 MyProductionRequestType2_1 myProductionRequestType2,
161 MyProductionRequestType3 myProductionRequestType3,
162 MyProductionRequestType4 myProductionRequestType4
163 }
164 with {
165 variant "name as uncapitalized";
166 variant "useType";
167 };
168
169
170 type union MyProductionRequestType2_derivations
171 {
172 MyProductionRequestType2_1 myProductionRequestType2,
173 MyProductionRequestType3 myProductionRequestType3,
174 MyProductionRequestType4 myProductionRequestType4
175 }
176 with {
177 variant "name as uncapitalized";
178 variant "useType";
179 };
180
181
182 }
183 with {
184 encode "XML";
185 variant "namespace as 'www.example.org/type/substitution/complex/cascade'";
186 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
187 }
This page took 0.036065 seconds and 5 git commands to generate.