51fa56b9 |
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 { |
3f84031e |
44 | variant "name as uncapitalized"; |
45 | variant "element"; |
51fa56b9 |
46 | }; |
47 | |
48 | |
49 | type String_derivations Head_1 |
50 | with { |
3f84031e |
51 | variant "name as 'head_'"; |
52 | variant "element"; |
51fa56b9 |
53 | }; |
54 | |
55 | |
56 | type Stringtype_derivations Head2 |
57 | with { |
3f84031e |
58 | variant "name as uncapitalized"; |
59 | variant "element"; |
51fa56b9 |
60 | }; |
61 | |
62 | |
63 | type XSD.String Stringtype |
64 | with { |
3f84031e |
65 | variant "name as uncapitalized"; |
51fa56b9 |
66 | }; |
67 | |
68 | |
69 | type XSD.String Stringtype2 length(5) |
70 | with { |
3f84031e |
71 | variant "name as uncapitalized"; |
51fa56b9 |
72 | }; |
73 | |
74 | |
75 | type Integer_derivations Int |
76 | with { |
3f84031e |
77 | variant "name as uncapitalized"; |
78 | variant "element"; |
51fa56b9 |
79 | }; |
80 | |
81 | |
82 | type XSD.Integer ExtInt |
83 | with { |
3f84031e |
84 | variant "name as uncapitalized"; |
51fa56b9 |
85 | }; |
86 | |
87 | |
88 | /* Test if the elements are changed in a complextype */ |
89 | |
90 | |
91 | type Base64Binary_derivations Elem |
92 | with { |
3f84031e |
93 | variant "name as uncapitalized"; |
94 | variant "element"; |
51fa56b9 |
95 | }; |
96 | |
97 | |
98 | type XSD.Base64Binary CrypBinary; |
99 | |
100 | |
101 | type Signature SignatureValue |
102 | with { |
3f84031e |
103 | variant "element"; |
51fa56b9 |
104 | }; |
105 | |
106 | |
107 | type record Signature |
108 | { |
109 | XSD.ID id optional, |
110 | XSD.Base64Binary base |
111 | } |
112 | with { |
3f84031e |
113 | variant (id) "name as capitalized"; |
114 | variant (id) "attribute"; |
115 | variant (base) "untagged"; |
51fa56b9 |
116 | }; |
117 | |
118 | |
119 | type DataType Data |
120 | with { |
3f84031e |
121 | variant "element"; |
51fa56b9 |
122 | }; |
123 | |
124 | |
125 | type record DataType |
126 | { |
127 | union { |
128 | Base64Binary_derivations sKI, |
129 | Base64Binary_derivations cert |
130 | } choice |
131 | } |
132 | with { |
3f84031e |
133 | variant (choice) "untagged"; |
134 | variant (choice.sKI) "name as capitalized"; |
135 | variant (choice.cert) "name as capitalized"; |
51fa56b9 |
136 | }; |
137 | |
138 | |
139 | type union String_derivations |
140 | { |
141 | XSD.String string, |
3f84031e |
142 | Stringtype stringtype, |
143 | Stringtype2 stringtype2 |
51fa56b9 |
144 | } |
145 | with { |
3f84031e |
146 | variant "name as uncapitalized"; |
147 | variant "useType"; |
51fa56b9 |
148 | }; |
149 | |
150 | |
151 | type union Stringtype_derivations |
152 | { |
153 | Stringtype stringtype, |
154 | Stringtype2 stringtype2 |
155 | } |
156 | with { |
3f84031e |
157 | variant "name as uncapitalized"; |
158 | variant "useType"; |
51fa56b9 |
159 | }; |
160 | |
161 | |
162 | type union Integer_derivations |
163 | { |
164 | XSD.Integer integer_, |
165 | ExtInt extInt |
166 | } |
167 | with { |
3f84031e |
168 | variant "name as uncapitalized"; |
169 | variant "useType"; |
170 | variant (integer_) "name as 'integer'"; |
51fa56b9 |
171 | }; |
172 | |
173 | |
174 | type union Base64Binary_derivations |
175 | { |
176 | XSD.Base64Binary base64Binary, |
177 | CrypBinary crypBinary |
178 | } |
179 | with { |
3f84031e |
180 | variant "name as uncapitalized"; |
181 | variant "useType"; |
182 | variant (crypBinary) "name as capitalized"; |
51fa56b9 |
183 | }; |
184 | |
185 | |
186 | } |
187 | with { |
3f84031e |
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'"; |
51fa56b9 |
191 | } |