Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_XmlTest_org_time_withEnum_e.ttcn
1 /*******************************************************************************
2 * Copyright Ericsson Telecom AB
3 *
4 * XSD to TTCN-3 Translator
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_XmlTest_org_time_withEnum_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Thu Sep 5 17:35:03 2013
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - XmlTest_time_withEnum.xsd
23 // /* xml version = "1.0" */
24 // /* targetnamespace = "www.XmlTest.org/time_withEnum" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
28 // Modified by:
29 // Modification date:
30 // Description:
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
34
35
36 module www_XmlTest_org_time_withEnum_e {
37
38
39 import from XSD all;
40
41
42 /* This documentum tests based on
43 XML Schema Part 0: Primer Second Edition,
44 2.3 Simple Types and
45 Appendix B
46 XML Schema Part 2: Datatypes Second Edition
47 3 Built-in Datatypes
48
49 Only existence of built in data types are checked until pattern has been developed */
50
51
52 type enumerated DateTimeWithEnum
53 {
54 x2009_10_10T113300_000_0500,
55 x2009_10_10T143000_0500,
56 x2009_10_10T153100_0_0500,
57 x2009_10_10T163200_00_0500
58 }
59 with {
60 variant "text 'x2009_10_10T113300_000_0500' as '2009-10-10T11:33:00.000-05:00'";
61 variant "text 'x2009_10_10T143000_0500' as '2009-10-10T14:30:00-05:00'";
62 variant "text 'x2009_10_10T153100_0_0500' as '2009-10-10T15:31:00.0-05:00'";
63 variant "text 'x2009_10_10T163200_00_0500' as '2009-10-10T16:32:00.00-05:00'";
64 };
65
66
67 type enumerated MyDate
68 {
69 x2009_10_10
70 }
71 with {
72 variant "text 'x2009_10_10' as '2009-10-10'";
73 };
74
75
76 type enumerated MyTime
77 {
78 x143401_000,
79 x143501_000
80 }
81 with {
82 variant "text 'x143401_000' as '14:34:01.000'";
83 variant "text 'x143501_000' as '14:35:01.000'";
84 };
85
86
87 type enumerated MyGYear
88 {
89 x1914,
90 x1956,
91 x2009
92 }
93 with {
94 variant "text 'x1914' as '1914'";
95 variant "text 'x1956' as '1956'";
96 variant "text 'x2009' as '2009'";
97 };
98
99
100 type enumerated MyGYearMonth
101 {
102 x1914_05,
103 x1956_12,
104 x2009_10
105 }
106 with {
107 variant "text 'x1914_05' as '1914-05'";
108 variant "text 'x1956_12' as '1956-12'";
109 variant "text 'x2009_10' as '2009-10'";
110 };
111
112
113 type enumerated MyGMonth
114 {
115 x05,
116 x10,
117 x12
118 }
119 with {
120 variant "text 'x05' as '--05'";
121 variant "text 'x10' as '--10'";
122 variant "text 'x12' as '--12'";
123 };
124
125
126 type enumerated MyGMonthDay
127 {
128 x05_01,
129 x10_30,
130 x12_21
131 }
132 with {
133 variant "text 'x05_01' as '--05-01'";
134 variant "text 'x10_30' as '--10-30'";
135 variant "text 'x12_21' as '--12-21'";
136 };
137
138
139 type enumerated MyDay
140 {
141 x05,
142 x10,
143 x12
144 }
145 with {
146 variant "text 'x05' as '---05'";
147 variant "text 'x10' as '---10'";
148 variant "text 'x12' as '---12'";
149 };
150
151
152 }
153 with {
154 encode "XML";
155 variant "namespace as 'www.XmlTest.org/time_withEnum' prefix 'ns3'";
156 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
157 }
This page took 0.035785 seconds and 6 git commands to generate.