Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_boolean_variant_commented_e.ttcn
1 /*******************************************************************************
2 * Copyright Ericsson Telecom AB 2011
3 *
4 * XSD to TTCN-3 Translator version: CRL 113 200/4 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_boolean_variant_commented_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Tue Jul 7 11:01:43 2014
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - boolean_variant_commented.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/boolean/variant/commented/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_boolean_variant_commented {
37
38
39 import from XSD all;
40
41
42 type XSD.Boolean CelsiusBodyTemp
43 with {
44 variant "name as uncapitalized";
45 //variant "text 'true' as '1'";
46 //variant "text 'false' as '0'";
47 };
48
49
50 type XSD.Boolean BooleanElement
51 with {
52 variant "name as uncapitalized";
53 variant "element";
54 //variant "text 'true' as '1'";
55 //variant "text 'false' as '0'";
56 };
57
58
59 type XSD.Boolean BooleanSimple;
60 //with {
61 //variant "text 'true' as '1'";
62 //variant "text 'false' as '0'";
63 //};
64
65
66 type union Union_with_boolean
67 {
68 XSD.String alt_,
69 XSD.Boolean alt_1,
70 XSD.Integer alt_2
71 }
72 with {
73 variant "name as uncapitalized";
74 variant "useUnion";
75 variant "element";
76 variant (alt_) "name as ''";
77 variant (alt_1) "name as ''";
78 //variant (alt_1) "text 'true' as '1'";
79 //variant (alt_1) "text 'false' as '0'";
80 variant (alt_2) "name as ''";
81 };
82
83
84 type record Seq_with_boolean
85 {
86 XSD.Boolean stupid optional,
87 XSD.String titleElemBase,
88 XSD.String forenameElemBase,
89 XSD.Boolean smart
90 }
91 with {
92 variant "name as uncapitalized";
93 variant (stupid) "attribute";
94 //variant (stupid) "text 'true' as '1'";
95 //variant (stupid) "text 'false' as '0'";
96 //variant (smart) "text 'true' as '1'";
97 //variant (smart) "text 'false' as '0'";
98 };
99
100
101 type record E15b
102 {
103 record of XSD.Boolean foo_list,
104 XSD.Float bar
105 }
106 with {
107 variant "name as uncapitalized";
108 variant (foo_list) "untagged";
109 variant (foo_list[-]) "name as 'foo'";
110 //variant (foo_list[-]) "text 'true' as '1'";
111 //variant (foo_list[-]) "text 'false' as '0'";
112 };
113
114
115 type record E15b_2
116 {
117 XSD.Boolean foo,
118 XSD.Float bar
119 };
120 //with {
121 //variant (foo) "text 'true' as '1'";
122 //variant (foo) "text 'false' as '0'";
123 //};
124
125
126 }
127 with {
128 encode "XML";
129 variant "namespace as 'www.example.org/boolean/variant/commented'";
130 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
131 }
This page took 0.033408 seconds and 5 git commands to generate.