Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_type_substitution_simpletype_e.ttcn
1 /*******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
3 *
4 * XSD to TTCN-3 Translator version: CRL 113 200/5 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_type_substitution_simpletype_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Wed Nov 18 11:56:35 2014
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - type_substitution_simpletype_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/type/substitution/simpletype/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_simpletype {
37
38
39 import from XSD all;
40
41
42 type String_derivations Head
43 with {
44 variant "name as uncapitalized";
45 variant "element";
46 };
47
48
49 type String_derivations Head_1
50 with {
51 variant "name as 'head_'";
52 variant "element";
53 };
54
55
56 type Stringtype_derivations Head2
57 with {
58 variant "name as uncapitalized";
59 variant "element";
60 };
61
62
63 type XSD.String Stringtype
64 with {
65 variant "name as uncapitalized";
66 };
67
68
69 type XSD.String Stringtype2 length(5)
70 with {
71 variant "name as uncapitalized";
72 };
73
74
75 type Integer_derivations Int
76 with {
77 variant "name as uncapitalized";
78 variant "element";
79 };
80
81
82 type XSD.Integer ExtInt
83 with {
84 variant "name as uncapitalized";
85 };
86
87
88 /* Test if the elements are changed in a complextype */
89
90
91 type Base64Binary_derivations Elem
92 with {
93 variant "name as uncapitalized";
94 variant "element";
95 };
96
97
98 type XSD.Base64Binary CrypBinary;
99
100
101 type Signature SignatureValue
102 with {
103 variant "element";
104 };
105
106
107 type record Signature
108 {
109 XSD.ID id optional,
110 XSD.Base64Binary base
111 }
112 with {
113 variant (id) "name as capitalized";
114 variant (id) "attribute";
115 variant (base) "untagged";
116 };
117
118
119 type DataType Data
120 with {
121 variant "element";
122 };
123
124
125 type record DataType
126 {
127 union {
128 Base64Binary_derivations sKI,
129 Base64Binary_derivations cert
130 } choice
131 }
132 with {
133 variant (choice) "untagged";
134 variant (choice.sKI) "name as capitalized";
135 variant (choice.cert) "name as capitalized";
136 };
137
138
139 type union String_derivations
140 {
141 XSD.String string,
142 Stringtype stringtype,
143 Stringtype2 stringtype2
144 }
145 with {
146 variant "name as uncapitalized";
147 variant "useType";
148 };
149
150
151 type union Stringtype_derivations
152 {
153 Stringtype stringtype,
154 Stringtype2 stringtype2
155 }
156 with {
157 variant "name as uncapitalized";
158 variant "useType";
159 };
160
161
162 type union Integer_derivations
163 {
164 XSD.Integer integer_,
165 ExtInt extInt
166 }
167 with {
168 variant "name as uncapitalized";
169 variant "useType";
170 variant (integer_) "name as 'integer'";
171 };
172
173
174 type union Base64Binary_derivations
175 {
176 XSD.Base64Binary base64Binary,
177 CrypBinary crypBinary
178 }
179 with {
180 variant "name as uncapitalized";
181 variant "useType";
182 variant (crypBinary) "name as capitalized";
183 };
184
185
186 }
187 with {
188 encode "XML";
189 variant "namespace as 'www.example.org/type/substitution/simpletype' prefix 'this'";
190 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
191 }
This page took 0.041136 seconds and 5 git commands to generate.