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