Sync with 5.4.1
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_list_simpletype_e.ttcn
CommitLineData
3abe9331 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
36module www_example_org_list_simpletype {
37
38
39import from XSD all;
40
41
42type record of enumerated
43{
44 orange,
45 red
46} SimpleListEnumeration
47with {
48variant ([-]) "text 'orange' as capitalized";
49variant ([-]) "text 'red' as capitalized";
50variant "list";
51variant "element";
52};
53
54
55type record of union
56{
57 XSD.Boolean alt_,
58 XSD.Float alt_1
59} SimpleListUnion
60with {
61variant "list";
62variant "element";
63variant ([-]) "useUnion";
64variant ([-].alt_) "name as ''";
65//variant ([-].alt_) "text 'true' as '1'";
66//variant ([-].alt_) "text 'false' as '0'";
67variant ([-].alt_1) "name as ''";
68};
69
70
71type record of enumerated
72{
73 int_5(-5),
74 int0(0),
75 int5(5),
76 int10(10)
77} SimpleListEnumerationNumber
78with {
79variant ([-]) "useNumber";
80variant "list";
81variant "element";
82};
83
84
85type 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}
96with {
97variant "element";
98variant (listEnumeration) "name as capitalized";
99variant (listEnumeration) "list";
100variant (listEnumeration[-]) "text 'orange' as capitalized";
101variant (listEnumeration[-]) "text 'red' as capitalized";
102variant (listUnion) "name as capitalized";
103variant (listUnion[-]) "useUnion";
104variant (listUnion) "list";
105variant (listUnion[-].alt_) "name as ''";
106//variant (listUnion[-].alt_) "text 'true' as '1'";
107//variant (listUnion[-].alt_) "text 'false' as '0'";
108variant (listUnion[-].alt_1) "name as ''";
109};
110
111
112}
113with {
114encode "XML";
115variant "namespace as 'www.example.org/list/simpletype' prefix 'this'";
116variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
117}
This page took 0.02841 seconds and 5 git commands to generate.