1 /*******************************************************************************
2 * Copyright Ericsson Telecom AB
4 * XSD to TTCN-3 Translator
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 *******************************************************************************/
12 // File: www_XmlTest_org_time_withEnum_e.ttcn
17 // Updated: Thu Sep 5 17:35:03 2013
18 // Contact: http://ttcn.ericsson.se
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 //-----------------------------------------------------------------------------
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
36 module www_XmlTest_org_time_withEnum_e {
42 /* This documentum tests based on
43 XML Schema Part 0: Primer Second Edition,
46 XML Schema Part 2: Datatypes Second Edition
49 Only existence of built in data types are checked until pattern has been developed */
52 type enumerated DateTimeWithEnum
54 x2009_10_10T113300_000_0500,
55 x2009_10_10T143000_0500,
56 x2009_10_10T153100_0_0500,
57 x2009_10_10T163200_00_0500
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'";
67 type enumerated MyDate
72 variant "text 'x2009_10_10' as '2009-10-10'";
76 type enumerated MyTime
82 variant "text 'x143401_000' as '14:34:01.000'";
83 variant "text 'x143501_000' as '14:35:01.000'";
87 type enumerated MyGYear
94 variant "text 'x1914' as '1914'";
95 variant "text 'x1956' as '1956'";
96 variant "text 'x2009' as '2009'";
100 type enumerated MyGYearMonth
107 variant "text 'x1914_05' as '1914-05'";
108 variant "text 'x1956_12' as '1956-12'";
109 variant "text 'x2009_10' as '2009-10'";
113 type enumerated MyGMonth
120 variant "text 'x05' as '--05'";
121 variant "text 'x10' as '--10'";
122 variant "text 'x12' as '--12'";
126 type enumerated MyGMonthDay
133 variant "text 'x05_01' as '--05-01'";
134 variant "text 'x10_30' as '--10-30'";
135 variant "text 'x12_21' as '--12-21'";
139 type enumerated MyDay
146 variant "text 'x05' as '---05'";
147 variant "text 'x10' as '---10'";
148 variant "text 'x12' as '---12'";
155 variant "namespace as 'www.XmlTest.org/time_withEnum' prefix 'ns3'";
156 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";