Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_attr_ext_rest_e.ttcn
1 /*******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
3 *
4 * XSD to TTCN-3 Translator version: CRL 110 200/0 R3A
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_attr_ext_rest.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Fri Aug 26 09:42:11 2011
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - attrib_restriction_extension_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/attr/ext/rest" */
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_attr_ext_rest_e {
37
38
39 import from XSD all;
40
41
42 type record E25seq
43 {
44 XSD.Integer genderAttrBase optional,
45 XSD.String titleElemBase,
46 XSD.String forenameElemBase,
47 XSD.String surnameElemBase
48 }
49 with {
50 variant "name as uncapitalized";
51 variant (genderAttrBase) "attribute";
52 };
53
54
55 type record E25seqa
56 {
57 XSD.Integer gender optional,
58 XSD.Integer genderAttrBase optional,
59 XSD.String titleElemBase,
60 XSD.String forenameElemBase,
61 XSD.String surnameElemBase
62 }
63 with {
64 variant "name as uncapitalized";
65 variant (gender) "attribute";
66 variant (genderAttrBase) "attribute";
67 };
68
69
70 type record E25seqb
71 {
72 XSD.Integer gender optional,
73 XSD.Integer genderAttrBase optional,
74 XSD.String titleElemBase,
75 XSD.String forenameElemBase,
76 XSD.String surnameElemBase,
77 XSD.Integer ageElemExt
78 }
79 with {
80 variant "name as uncapitalized";
81 variant (gender) "attribute";
82 variant (genderAttrBase) "attribute";
83 };
84
85
86 type record E25seqc
87 {
88 XSD.Integer gender optional,
89 XSD.Integer ageElemExt
90 }
91 with {
92 variant "name as uncapitalized";
93 variant (gender) "attribute";
94 };
95
96
97 type record E25seqd
98 {
99 XSD.Integer gender optional,
100 XSD.Integer genderAttrBase,
101 XSD.Integer ageElemExt
102 }
103 with {
104 variant "name as uncapitalized";
105 variant (gender) "attribute";
106 variant (genderAttrBase) "attribute";
107 };
108
109
110 type XSD.String Comment
111 with {
112 variant "name as uncapitalized";
113 variant "element";
114 };
115
116
117 type record PurchaseOrderType
118 {
119 XSD.Date orderDate optional,
120 XSD.Date shipDate optional,
121 XSD.String shipTo,
122 XSD.String billTo,
123 Comment comment optional
124 }
125 with {
126 variant (orderDate) "attribute";
127 variant (shipDate) "attribute";
128 };
129
130
131 /* The restricting type is: */
132
133
134 type record RestrictedPurchaseOrderType
135 {
136 XSD.Date shipDate,
137 XSD.String shipTo,
138 Comment comment
139 }
140 with {
141 variant (shipDate) "attribute";
142 };
143
144
145 type record E23
146 {
147 XSD.Integer bar optional,
148 XSD.Integer base optional,
149 XSD.Float foo optional,
150 XSD.String base_1
151 }
152 with {
153 variant "name as uncapitalized";
154 variant "element";
155 variant (bar) "attribute";
156 variant (base) "attribute";
157 variant (foo) "attribute";
158 variant (base_1) "name as 'base'";
159 variant (base_1) "untagged";
160 };
161
162
163 type record E24
164 {
165 XSD.Integer bar optional,
166 XSD.Integer base optional,
167 XSD.Float foo optional,
168 XSD.Integer goo optional,
169 XSD.String base_1
170 }
171 with {
172 variant "name as uncapitalized";
173 variant "element";
174 variant (bar) "attribute";
175 variant (base) "attribute";
176 variant (foo) "attribute";
177 variant (goo) "attribute";
178 variant (base_1) "name as 'base'";
179 variant (base_1) "untagged";
180 };
181
182
183 type record E25
184 {
185 XSD.Integer bar optional,
186 XSD.Integer goo,
187 XSD.String base length(4)
188 }
189 with {
190 variant "name as uncapitalized";
191 variant "element";
192 variant (bar) "attribute";
193 variant (goo) "attribute";
194 variant (base) "untagged";
195 };
196
197
198 type record E26
199 {
200 XSD.Integer bar optional,
201 XSD.Float foo,
202 XSD.Integer goo,
203 XSD.String base length(4)
204 }
205 with {
206 variant "name as uncapitalized";
207 variant "element";
208 variant (bar) "attribute";
209 variant (foo) "attribute";
210 variant (goo) "attribute";
211 variant (base) "untagged";
212 };
213
214
215 }
216 with {
217 encode "XML";
218 variant "namespace as 'www.example.org/attr/ext/rest' prefix 'nss'";
219 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
220 }
This page took 0.037007 seconds and 5 git commands to generate.