/******************************************************************************* * Copyright Ericsson Telecom AB * * XSD to TTCN-3 Translator * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html *******************************************************************************/ // // File: www_XmlTest_org_time_withEnum_e.ttcn // Description: // References: // Rev: // Prodnr: // Updated: Thu Sep 5 17:35:03 2013 // Contact: http://ttcn.ericsson.se // //////////////////////////////////////////////////////////////////////////////// // Generated from file(s): // - XmlTest_time_withEnum.xsd // /* xml version = "1.0" */ // /* targetnamespace = "www.XmlTest.org/time_withEnum" */ //////////////////////////////////////////////////////////////////////////////// // Modification header(s): //----------------------------------------------------------------------------- // Modified by: // Modification date: // Description: // Modification contact: //------------------------------------------------------------------------------ //////////////////////////////////////////////////////////////////////////////// module www_XmlTest_org_time_withEnum_e { import from XSD all; /* This documentum tests based on XML Schema Part 0: Primer Second Edition, 2.3 Simple Types and Appendix B XML Schema Part 2: Datatypes Second Edition 3 Built-in Datatypes Only existence of built in data types are checked until pattern has been developed */ type enumerated DateTimeWithEnum { x2009_10_10T113300_000_0500, x2009_10_10T143000_0500, x2009_10_10T153100_0_0500, x2009_10_10T163200_00_0500 } with { variant "text 'x2009_10_10T113300_000_0500' as '2009-10-10T11:33:00.000-05:00'"; variant "text 'x2009_10_10T143000_0500' as '2009-10-10T14:30:00-05:00'"; variant "text 'x2009_10_10T153100_0_0500' as '2009-10-10T15:31:00.0-05:00'"; variant "text 'x2009_10_10T163200_00_0500' as '2009-10-10T16:32:00.00-05:00'"; }; type enumerated MyDate { x2009_10_10 } with { variant "text 'x2009_10_10' as '2009-10-10'"; }; type enumerated MyTime { x143401_000, x143501_000 } with { variant "text 'x143401_000' as '14:34:01.000'"; variant "text 'x143501_000' as '14:35:01.000'"; }; type enumerated MyGYear { x1914, x1956, x2009 } with { variant "text 'x1914' as '1914'"; variant "text 'x1956' as '1956'"; variant "text 'x2009' as '2009'"; }; type enumerated MyGYearMonth { x1914_05, x1956_12, x2009_10 } with { variant "text 'x1914_05' as '1914-05'"; variant "text 'x1956_12' as '1956-12'"; variant "text 'x2009_10' as '2009-10'"; }; type enumerated MyGMonth { x05, x10, x12 } with { variant "text 'x05' as '--05'"; variant "text 'x10' as '--10'"; variant "text 'x12' as '--12'"; }; type enumerated MyGMonthDay { x05_01, x10_30, x12_21 } with { variant "text 'x05_01' as '--05-01'"; variant "text 'x10_30' as '--10-30'"; variant "text 'x12_21' as '--12-21'"; }; type enumerated MyDay { x05, x10, x12 } with { variant "text 'x05' as '---05'"; variant "text 'x10' as '---10'"; variant "text 'x12' as '---12'"; }; } with { encode "XML"; variant "namespace as 'www.XmlTest.org/time_withEnum' prefix 'ns3'"; variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; }