www_example_org_type_substitution_simpletype_e.ttcn 4.21 KB
Newer Older
1
/*******************************************************************************
Adam Knapp's avatar
Adam Knapp committed
2
* Copyright (c) 2000-2021 Ericsson Telecom AB
Elemer Lelik's avatar
Elemer Lelik committed
3
*
4
* XSD to TTCN-3 Translator         
Elemer Lelik's avatar
Elemer Lelik committed
5
6
*
* All rights reserved. This program and the accompanying materials
7
* are made available under the terms of the Eclipse Public License v2.0
Elemer Lelik's avatar
Elemer Lelik committed
8
* which accompanies this distribution, and is available at
9
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
Elemer Lelik's avatar
Elemer Lelik committed
10
11
12
13
*
* Contributors:
*   Balasko, Jeno
*   Szabo, Bence Janos
14
*   Botond, Baranyi
Elemer Lelik's avatar
Elemer Lelik committed
15
*
16
*******************************************************************************/
Elemer Lelik's avatar
Elemer Lelik committed
17
//
18
//  File:          www_example_org_type_substitution_simpletype.ttcn
Elemer Lelik's avatar
Elemer Lelik committed
19
20
21
22
//  Description:
//  References:
//  Rev:
//  Prodnr:
23
//  Updated:       Mon Jan 18 18:05:14 2021
Elemer Lelik's avatar
Elemer Lelik committed
24
25
26
27
//  Contact:       http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
//	Generated from file(s):
28
//	- type_substitution_simpletype.xsd
Elemer Lelik's avatar
Elemer Lelik committed
29
//			/* xml version = "1.0" encoding = "UTF-8" */
30
//			/* targetnamespace = "www.example.org/type/substitution/simpletype" */
Elemer Lelik's avatar
Elemer Lelik committed
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
////////////////////////////////////////////////////////////////////////////////
//     Modification header(s):
//-----------------------------------------------------------------------------
//  Modified by:
//  Modification date:
//  Description:
//  Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////


module www_example_org_type_substitution_simpletype {


import from XSD all;


type String_derivations Head
with {
Elemer Lelik's avatar
Elemer Lelik committed
50
51
  variant "name as uncapitalized";
  variant "element";
Elemer Lelik's avatar
Elemer Lelik committed
52
53
54
55
56
};


type String_derivations Head_1
with {
Elemer Lelik's avatar
Elemer Lelik committed
57
58
  variant "name as 'head_'";
  variant "element";
Elemer Lelik's avatar
Elemer Lelik committed
59
60
61
62
63
};


type Stringtype_derivations Head2
with {
Elemer Lelik's avatar
Elemer Lelik committed
64
65
  variant "name as uncapitalized";
  variant "element";
Elemer Lelik's avatar
Elemer Lelik committed
66
67
68
69
70
};


type XSD.String Stringtype
with {
Elemer Lelik's avatar
Elemer Lelik committed
71
  variant "name as uncapitalized";
Elemer Lelik's avatar
Elemer Lelik committed
72
73
74
75
76
};


type XSD.String Stringtype2 length(5)
with {
Elemer Lelik's avatar
Elemer Lelik committed
77
  variant "name as uncapitalized";
Elemer Lelik's avatar
Elemer Lelik committed
78
79
80
81
82
};


type Integer_derivations Int
with {
Elemer Lelik's avatar
Elemer Lelik committed
83
84
  variant "name as uncapitalized";
  variant "element";
Elemer Lelik's avatar
Elemer Lelik committed
85
86
87
88
89
};


type XSD.Integer ExtInt
with {
Elemer Lelik's avatar
Elemer Lelik committed
90
  variant "name as uncapitalized";
Elemer Lelik's avatar
Elemer Lelik committed
91
92
93
94
95
96
97
98
};


/* Test if the elements are changed in a complextype */


type Base64Binary_derivations Elem
with {
Elemer Lelik's avatar
Elemer Lelik committed
99
100
  variant "name as uncapitalized";
  variant "element";
Elemer Lelik's avatar
Elemer Lelik committed
101
102
103
104
105
106
107
108
};


type XSD.Base64Binary CrypBinary;


type Signature SignatureValue
with {
Elemer Lelik's avatar
Elemer Lelik committed
109
  variant "element";
Elemer Lelik's avatar
Elemer Lelik committed
110
111
112
113
114
115
116
117
118
};


type record Signature
{
	XSD.ID id optional,
	XSD.Base64Binary base
}
with {
Elemer Lelik's avatar
Elemer Lelik committed
119
120
121
  variant (id) "name as capitalized";
  variant (id) "attribute";
  variant (base) "untagged";
Elemer Lelik's avatar
Elemer Lelik committed
122
123
124
125
126
};


type DataType Data
with {
Elemer Lelik's avatar
Elemer Lelik committed
127
  variant "element";
Elemer Lelik's avatar
Elemer Lelik committed
128
129
130
131
132
133
134
135
136
137
138
};


type record DataType
{
	union {
		Base64Binary_derivations sKI,
		Base64Binary_derivations cert
	} choice
}
with {
Elemer Lelik's avatar
Elemer Lelik committed
139
140
141
  variant (choice) "untagged";
  variant (choice.sKI) "name as capitalized";
  variant (choice.cert) "name as capitalized";
Elemer Lelik's avatar
Elemer Lelik committed
142
143
144
};


145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/* Bug 569238 - xsd2ttcn creates cyclical definitions */


type XSD.Token Head569238 (pattern "[0-9]#(6,15)");


type Head569238 Type569238;


type record Complex569238
{
	union {
		Head569238_derivations head,
		Type569238 type_
	} choice
}
with {
  variant (choice) "untagged";
  variant (choice.type_) "name as 'type'";
};


Elemer Lelik's avatar
Elemer Lelik committed
167
168
type union String_derivations
{
169
	@default XSD.String string,
Elemer Lelik's avatar
Elemer Lelik committed
170
171
	Stringtype stringtype,
	Stringtype2 stringtype2
Elemer Lelik's avatar
Elemer Lelik committed
172
173
}
with {
Elemer Lelik's avatar
Elemer Lelik committed
174
  variant "useType";
Elemer Lelik's avatar
Elemer Lelik committed
175
176
177
178
179
};


type union Stringtype_derivations
{
180
	@default Stringtype stringtype,
Elemer Lelik's avatar
Elemer Lelik committed
181
182
183
	Stringtype2 stringtype2
}
with {
Elemer Lelik's avatar
Elemer Lelik committed
184
  variant "useType";
Elemer Lelik's avatar
Elemer Lelik committed
185
186
187
188
189
};


type union Integer_derivations
{
190
	@default XSD.Integer integer_,
Elemer Lelik's avatar
Elemer Lelik committed
191
192
193
	ExtInt extInt
}
with {
Elemer Lelik's avatar
Elemer Lelik committed
194
195
  variant "useType";
  variant (integer_) "name as 'integer'";
Elemer Lelik's avatar
Elemer Lelik committed
196
197
198
199
200
};


type union Base64Binary_derivations
{
201
	@default XSD.Base64Binary base64Binary,
Elemer Lelik's avatar
Elemer Lelik committed
202
203
204
	CrypBinary crypBinary
}
with {
Elemer Lelik's avatar
Elemer Lelik committed
205
206
  variant "useType";
  variant (crypBinary) "name as capitalized";
Elemer Lelik's avatar
Elemer Lelik committed
207
208
209
};


210
211
212
213
214
215
216
217
218
219
220
221
type union Head569238_derivations
{
	@default Head569238 head569238,
	Type569238 type569238
}
with {
  variant "useType";
  variant (head569238) "name as capitalized";
  variant (type569238) "name as capitalized";
};


Elemer Lelik's avatar
Elemer Lelik committed
222
223
}
with {
Elemer Lelik's avatar
Elemer Lelik committed
224
225
226
  encode "XML";
  variant "namespace as 'www.example.org/type/substitution/simpletype' prefix 'this'";
  variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
Elemer Lelik's avatar
Elemer Lelik committed
227
}