7ad51d69cbfc12836f18d0941e5bd4eeb9bf77dc
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / uri_etsi_org_ngn_params_xml_simservs_sci_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: uri_etsi_org_ngn_params_xml_simservs_sci_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Mon Dec 14 16:19:47 2009
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 //
22 // Generated from file(s):
23 //
24 // - SIP.xsd
25 // /* xml version = "1.0" encoding = "UTF-8" */
26 // /* targetnamespace = "http://uri.etsi.org/ngn/params/xml/simservs/sci" */
27 //
28 ////////////////////////////////////////////////////////////////////////////////
29
30
31 module uri_etsi_org_ngn_params_xml_simservs_sci_e {
32
33
34 import from XSD all;
35
36
37 /* XML Schema Definition for the AOC information */
38
39
40 /* Definition of simple types */
41
42
43 /* The boolean datatype value "true" maps to bit value "1" and the value "false" to bit value "0" */
44 type XSD.Boolean BitType
45 with {
46 variant "name as uncapitalized";
47 };
48
49
50 type XSD.HexBinary EightBitType length(1);
51
52
53 type XSD.HexBinary SixteenBitType length(2);
54
55
56 /* Following structure of the networkIdentification value may be used: */
57
58
59 /* {itu-t (0) administration (2) <national regulation authority> (x) network (y) node identification (z)} */
60
61
62 /* The value for x is the value of the national regulation authority, the value for y is under the control */
63
64
65 /* of the national regulation authority concerned, the value for z is under the control of the network concerned. */
66
67
68 type XSD.String NetworkIdentificationType (pattern "02[0-9A-F]+");
69
70
71 /* The currency shall be coded according to ISO 4217 */
72 type XSD.String CurrencyType length(3);
73
74
75 type XSD.Integer CurrencyFactorType (0 .. 999999);
76
77
78 type XSD.Integer CurrencyScaleType (-7 .. 3);
79
80
81 type XSD.Integer TariffDurationType (0 .. 36000);
82
83
84 /* Definition of complex types */
85
86
87 type record TariffSwitchPulseType
88 {
89 TariffPulseFormatType nextTariffPulse,
90 EightBitType tariffSwitchOverTime
91 };
92
93
94 /* the choice type shall be replaced with sequence according to ASN.1 in ES 201 296 V1.3.1 */
95 type record CommunicationChargePulseType
96 {
97 EightBitType pulseUnits,
98 SixteenBitType chargeUnitTimeInterval,
99 TariffDurationType tariffDuration
100 };
101
102
103 type record TariffPulseFormatType
104 {
105 record length(1 .. 4) of CommunicationChargePulseType communicationChargeSequencePulse_list,
106 BitType tariffControlIndicators,
107 EightBitType callAttemptChargePulse,
108 EightBitType callSetupChargePulse
109 }
110 with {
111 variant (communicationChargeSequencePulse_list) "untagged";
112 variant (communicationChargeSequencePulse_list[-]) "name as 'communicationChargeSequencePulse'";
113 };
114
115
116 type record CommunicationChargeCurrencyType
117 {
118 CurrencyFactorScaleType currencyFactorScale,
119 TariffDurationType tariffDuration,
120 BitType subTariffControl
121 };
122
123
124 type record TariffSwitchCurrencyType
125 {
126 TariffCurrencyFormatType nextTariffCurrency,
127 EightBitType tariffSwitchOverTime
128 };
129
130
131 type record TariffCurrencyFormatType
132 {
133 record length(1 .. 4) of CommunicationChargeCurrencyType communicationChargeSequenceCurrency_list,
134 BitType tariffControlIndicators,
135 CurrencyFactorScaleType callAttemptChargeCurrency,
136 CurrencyFactorScaleType callSetupChargeCurrency
137 }
138 with {
139 variant (communicationChargeSequenceCurrency_list) "untagged";
140 variant (communicationChargeSequenceCurrency_list[-]) "name as 'communicationChargeSequenceCurrency'";
141 };
142
143
144 type record CurrencyFactorScaleType
145 {
146 CurrencyFactorType currencyFactor,
147 CurrencyScaleType currencyScale
148 };
149
150
151 type record TariffPulseType
152 {
153 TariffPulseFormatType currentTariffPulse,
154 TariffSwitchPulseType tariffSwitchPulse
155 };
156
157
158 type record TariffCurrencyType
159 {
160 TariffCurrencyFormatType currentTariffCurrency,
161 TariffSwitchCurrencyType tariffSwitchCurrency
162 };
163
164
165 /* the choice type shall be replaced with sequence according to ASN.1 in ES 201 296 V1.3.1 */
166 type record ChargingControlIndicatorsType
167 {
168 BitType immediateChangeOfActuallyAppliedTariff,
169 BitType delayUntilStart
170 };
171
172
173 type record ChargingReferenceIdentificationType
174 {
175 NetworkIdentificationType networkIdentification,
176 XSD.NonNegativeInteger referenceID
177 };
178
179
180 type record ChargingTariffInformationType
181 {
182 ChargingControlIndicatorsType chargingControlIndicators,
183 record {
184 union {
185 TariffCurrencyType tariffCurrency,
186 TariffPulseType tariffPulse
187 } choice
188 } chargingTariff,
189 ChargingReferenceIdentificationType originationIdentification,
190 ChargingReferenceIdentificationType destinationIdentification optional,
191 CurrencyType currency
192 }
193 with {
194 variant (chargingTariff.choice) "untagged";
195 };
196
197
198 type record AddOnChargingInformationType
199 {
200 ChargingControlIndicatorsType chargingControlIndicators,
201 record {
202 union {
203 CurrencyFactorScaleType addOnChargeCurrency,
204 EightBitType addOnChargePulse
205 } choice
206 } addOnCharge,
207 ChargingReferenceIdentificationType originationIdentification,
208 ChargingReferenceIdentificationType destinationIdentification optional,
209 CurrencyType currency
210 }
211 with {
212 variant (addOnCharge.choice) "untagged";
213 };
214
215
216 /* Definition of document structure */
217
218
219 type record MessageType
220 {
221 union {
222 ChargingTariffInformationType crgt,
223 AddOnChargingInformationType aocrg
224 } choice
225 }
226 with {
227 variant "name as uncapitalized";
228 variant "element";
229 variant (choice) "untagged";
230 };
231
232
233 }
234 with {
235 encode "XML";
236 variant "namespace as 'http://uri.etsi.org/ngn/params/xml/simservs/sci' prefix 'sci'";
237 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
238 variant "elementFormQualified";
239 }
This page took 0.045277 seconds and 4 git commands to generate.