3abe9331 |
1 | /******************************************************************************* |
2 | * Copyright (c) 2000-2015 Ericsson Telecom AB |
3 | * |
4 | * XSD to TTCN-3 Translator version: CRL 113 200/5 R1A |
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_fixed_value_e.ttcn |
13 | // Description: |
14 | // References: |
15 | // Rev: |
16 | // Prodnr: |
17 | // Updated: Mon Sep 7 12:19:26 2011 |
18 | // Contact: http://ttcn.ericsson.se |
19 | // |
20 | //////////////////////////////////////////////////////////////////////////////// |
21 | // Generated from file(s): |
22 | // - a.xsd |
23 | // /* xml version = "1.0" encoding = "UTF-8" */ |
24 | // /* targetnamespace = "www.example.org/fixed/value" */ |
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_fixed_value { |
37 | |
38 | |
39 | import from XSD all; |
40 | |
41 | |
42 | type XSD.String StringType ("a") |
43 | with { |
44 | variant "defaultForEmpty as 'a'"; |
45 | variant "element"; |
46 | }; |
47 | |
48 | |
49 | type XSD.Integer IntegerType (7) |
50 | with { |
51 | variant "defaultForEmpty as '7'"; |
52 | variant "element"; |
53 | }; |
54 | |
55 | |
56 | type XSD.Float FloatType (7.0) |
57 | with { |
58 | variant "defaultForEmpty as '7.0'"; |
59 | variant "element"; |
60 | }; |
61 | |
62 | |
63 | type XSD.Double DoubleType (7.0) |
64 | with { |
65 | variant "defaultForEmpty as '7.0'"; |
66 | variant "element"; |
67 | }; |
68 | |
69 | |
70 | type XSD.Boolean BooleanType (true) |
71 | with { |
72 | variant "defaultForEmpty as 'true'"; |
73 | variant "element"; |
74 | //variant "text 'true' as '1'"; |
75 | //variant "text 'false' as '0'"; |
76 | }; |
77 | |
78 | |
79 | type XSD.Boolean BooleanType2 (false) |
80 | with { |
81 | variant "defaultForEmpty as '0'"; |
82 | variant "element"; |
83 | //variant "text 'true' as '1'"; |
84 | //variant "text 'false' as '0'"; |
85 | }; |
86 | |
87 | |
88 | type XSD.Date DateType ("2011-11-11") |
89 | with { |
90 | variant "defaultForEmpty as '2011-11-11'"; |
91 | variant "element"; |
92 | }; |
93 | |
94 | |
95 | type XSD.Time TimeType ("11:11:11") |
96 | with { |
97 | variant "defaultForEmpty as '11:11:11'"; |
98 | variant "element"; |
99 | }; |
100 | |
101 | |
102 | type XSD.DateTime DateTimeType ("2002-05-30T09:00:00") |
103 | with { |
104 | variant "defaultForEmpty as '2002-05-30T09:00:00'"; |
105 | variant "element"; |
106 | }; |
107 | |
108 | |
109 | type XSD.GDay DayType ("---13") |
110 | with { |
111 | variant "defaultForEmpty as '---13'"; |
112 | variant "element"; |
113 | }; |
114 | |
115 | |
116 | type XSD.GMonth MonthType ("--11") |
117 | with { |
118 | variant "defaultForEmpty as '--11'"; |
119 | variant "element"; |
120 | }; |
121 | |
122 | |
123 | type XSD.GMonthDay MonthDayType ("--11-30") |
124 | with { |
125 | variant "defaultForEmpty as '--11-30'"; |
126 | variant "element"; |
127 | }; |
128 | |
129 | |
130 | type XSD.GYear YearType ("1999") |
131 | with { |
132 | variant "defaultForEmpty as '1999'"; |
133 | variant "element"; |
134 | }; |
135 | |
136 | |
137 | type XSD.GYearMonth YearMonthType ("1999-11") |
138 | with { |
139 | variant "defaultForEmpty as '1999-11'"; |
140 | variant "element"; |
141 | }; |
142 | |
143 | |
144 | type XSD.HexBinary HexType |
145 | with { |
146 | variant "element"; |
147 | }; |
148 | |
149 | |
150 | type XSD.Base64Binary Base64Type |
151 | with { |
152 | variant "element"; |
153 | }; |
154 | |
155 | |
156 | } |
157 | with { |
158 | encode "XML"; |
159 | variant "namespace as 'www.example.org/fixed/value'"; |
160 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
161 | } |