Commit | Line | Data |
---|---|---|
970ed795 EL |
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: www_csapi_org_schema_parlayx_common_v2_0_e.ttcn | |
13 | // Description: | |
14 | // References: | |
15 | // Rev: | |
16 | // Prodnr: | |
17 | // Updated: | |
18 | // Contact: http://ttcn.ericsson.se | |
19 | // | |
20 | //////////////////////////////////////////////////////////////////////////////// | |
21 | // | |
22 | // Generated from file(s): | |
23 | // | |
24 | // - parlayx_common_types_2_0.xsd | |
25 | // /* xml version = "1.0" encoding = "UTF-8" */ | |
26 | // /* targetnamespace = "http://www.csapi.org/schema/parlayx/common/v2_0" */ | |
27 | // | |
28 | //////////////////////////////////////////////////////////////////////////////// | |
29 | ||
30 | ||
31 | module www_csapi_org_schema_parlayx_common_v2_0_e { | |
32 | ||
33 | ||
34 | import from XSD all; | |
35 | ||
36 | ||
37 | type record TimeMetric | |
38 | { | |
39 | TimeMetrics metric, | |
40 | XSD.Int units | |
41 | }; | |
42 | ||
43 | ||
44 | type record ChargingInformation | |
45 | { | |
46 | XSD.String description, | |
47 | XSD.String currency, | |
48 | XSD.Decimal amount, | |
49 | XSD.String code | |
50 | }; | |
51 | ||
52 | ||
53 | type record SimpleReference | |
54 | { | |
55 | XSD.AnyURI endpoint, | |
56 | XSD.String interfaceName, | |
57 | XSD.String correlator | |
58 | }; | |
59 | ||
60 | ||
61 | type record ServiceError | |
62 | { | |
63 | XSD.String messageId, | |
64 | XSD.String text, | |
65 | record of XSD.String variables_list | |
66 | } | |
67 | with { | |
3f84031e | 68 | variant (variables_list) "untagged"; |
69 | variant (variables_list[-]) "name as 'variables'"; | |
970ed795 EL |
70 | }; |
71 | ||
72 | ||
73 | type enumerated TimeMetrics | |
74 | { | |
75 | day, | |
76 | hour, | |
77 | millisecond, | |
78 | minute, | |
79 | month, | |
80 | second, | |
81 | week, | |
82 | year | |
83 | } | |
84 | with { | |
3f84031e | 85 | variant "text 'day' as capitalized"; |
86 | variant "text 'hour' as capitalized"; | |
87 | variant "text 'millisecond' as capitalized"; | |
88 | variant "text 'minute' as capitalized"; | |
89 | variant "text 'month' as capitalized"; | |
90 | variant "text 'second' as capitalized"; | |
91 | variant "text 'week' as capitalized"; | |
92 | variant "text 'year' as capitalized"; | |
970ed795 EL |
93 | }; |
94 | ||
95 | ||
96 | type ServiceException_1 ServiceException | |
97 | with { | |
3f84031e | 98 | variant "element"; |
970ed795 EL |
99 | }; |
100 | ||
101 | ||
102 | type record ServiceException_1 | |
103 | { | |
104 | XSD.String messageId, | |
105 | XSD.String text, | |
106 | record of XSD.String variables_list | |
107 | } | |
108 | with { | |
3f84031e | 109 | variant "name as 'ServiceException'"; |
110 | variant (variables_list) "untagged"; | |
111 | variant (variables_list[-]) "name as 'variables'"; | |
970ed795 EL |
112 | }; |
113 | ||
114 | ||
115 | type PolicyException_1 PolicyException | |
116 | with { | |
3f84031e | 117 | variant "element"; |
970ed795 EL |
118 | }; |
119 | ||
120 | ||
121 | type record PolicyException_1 | |
122 | { | |
123 | XSD.String messageId, | |
124 | XSD.String text, | |
125 | record of XSD.String variables_list | |
126 | } | |
127 | with { | |
3f84031e | 128 | variant "name as 'PolicyException'"; |
129 | variant (variables_list) "untagged"; | |
130 | variant (variables_list[-]) "name as 'variables'"; | |
970ed795 EL |
131 | }; |
132 | ||
133 | ||
134 | } | |
135 | with { | |
3f84031e | 136 | encode "XML"; |
137 | variant "namespace as 'http://www.csapi.org/schema/parlayx/common/v2_0' prefix 'parlayx_common_xsd'"; | |
138 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
970ed795 | 139 | } |