Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_list_simpletype_e.ttcn
1 /*******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
3 *
4 * XSD to TTCN-3 Translator version: CRL 113 200/5 R2A
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_list_simpletype_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Wed Oct 21 12:34:20 2014
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - list_simpletype.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/list/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_list_simpletype {
37
38
39 import from XSD all;
40
41
42 type record of enumerated
43 {
44 orange,
45 red
46 } SimpleListEnumeration
47 with {
48 variant ([-]) "text 'orange' as capitalized";
49 variant ([-]) "text 'red' as capitalized";
50 variant "list";
51 variant "element";
52 };
53
54
55 type record of union
56 {
57 XSD.Boolean alt_,
58 XSD.Float alt_1
59 } SimpleListUnion
60 with {
61 variant "list";
62 variant "element";
63 variant ([-]) "useUnion";
64 variant ([-].alt_) "name as ''";
65 //variant ([-].alt_) "text 'true' as '1'";
66 //variant ([-].alt_) "text 'false' as '0'";
67 variant ([-].alt_1) "name as ''";
68 };
69
70
71 type record of enumerated
72 {
73 int_5(-5),
74 int0(0),
75 int5(5),
76 int10(10)
77 } SimpleListEnumerationNumber
78 with {
79 variant ([-]) "useNumber";
80 variant "list";
81 variant "element";
82 };
83
84
85 type record ComplexListUnionEnumeration
86 {
87 record of enumerated {
88 red,
89 orange
90 } listEnumeration,
91 record of union {
92 XSD.Boolean alt_,
93 XSD.Float alt_1
94 } listUnion
95 }
96 with {
97 variant "element";
98 variant (listEnumeration) "name as capitalized";
99 variant (listEnumeration) "list";
100 variant (listEnumeration[-]) "text 'orange' as capitalized";
101 variant (listEnumeration[-]) "text 'red' as capitalized";
102 variant (listUnion) "name as capitalized";
103 variant (listUnion[-]) "useUnion";
104 variant (listUnion) "list";
105 variant (listUnion[-].alt_) "name as ''";
106 //variant (listUnion[-].alt_) "text 'true' as '1'";
107 //variant (listUnion[-].alt_) "text 'false' as '0'";
108 variant (listUnion[-].alt_1) "name as ''";
109 };
110
111
112 }
113 with {
114 encode "XML";
115 variant "namespace as 'www.example.org/list/simpletype' prefix 'this'";
116 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
117 }
This page took 0.039433 seconds and 5 git commands to generate.