Commit | Line | Data |
---|---|---|
970ed795 | 1 | /****************************************************************************** |
d44e3c4f | 2 | * Copyright (c) 2000-2016 Ericsson Telecom AB |
970ed795 EL |
3 | * All rights reserved. This program and the accompanying materials |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
d44e3c4f | 7 | * |
8 | * Contributors: | |
9 | * Balasko, Jeno | |
10 | * Raduly, Csaba | |
11 | * | |
970ed795 EL |
12 | ******************************************************************************/ |
13 | // Generated from file(s): | |
14 | // | |
15 | // - XTDL.xsd | |
16 | ||
17 | module xtdl { | |
18 | ||
19 | type union Widgets | |
20 | { | |
21 | Window window, | |
22 | Tabbox tabbox | |
23 | } | |
24 | with { | |
25 | variant "untagged"; | |
26 | }; | |
27 | ||
28 | ||
29 | type Window Windowelem | |
30 | with { | |
31 | variant "name as uncapitalized"; | |
32 | variant "element"; | |
33 | }; | |
34 | ||
35 | ||
36 | /* not much of a */ | |
37 | type union Embeddedwidget | |
38 | { | |
39 | Tabbox tabbox | |
40 | } | |
41 | with { | |
42 | variant "untagged"; | |
43 | }; | |
44 | ||
45 | ||
46 | type record Embeddedwidgets | |
47 | { | |
48 | record of Embeddedwidget embeddedwidget_list | |
49 | } | |
50 | with { | |
51 | variant "untagged"; | |
52 | variant (embeddedwidget_list) "untagged"; | |
53 | }; | |
54 | ||
55 | ||
56 | type record Window | |
57 | { | |
58 | float height optional, | |
59 | charstring id optional, | |
60 | Orientation orientation optional, | |
61 | charstring title optional, | |
62 | float width optional, | |
63 | record of Image image_list, | |
64 | Embeddedwidgets embeddedwidgets | |
65 | } | |
66 | with { | |
67 | variant "name as uncapitalized"; | |
68 | variant (height) "attribute"; | |
69 | variant (id) "attribute"; | |
70 | variant (orientation) "defaultForEmpty as 'vertical'"; | |
71 | variant (orientation) "attribute"; | |
72 | variant (title) "attribute"; | |
73 | variant (width) "attribute"; | |
74 | variant (image_list) "untagged"; | |
75 | variant (image_list[-]) "name as 'image'"; | |
76 | }; | |
77 | ||
78 | ||
79 | type record Tabbox | |
80 | { | |
81 | boolean disabled optional, | |
82 | float flex optional, | |
83 | charstring id optional, | |
84 | Tablayout layout optional, | |
85 | Tabs tabs, | |
86 | Tabpanels tabpanels | |
87 | } | |
88 | with { | |
89 | variant "name as uncapitalized"; | |
90 | variant (disabled) "attribute"; | |
91 | variant (flex) "attribute"; | |
92 | variant (id) "attribute"; | |
93 | variant (layout) "attribute"; | |
94 | }; | |
95 | ||
96 | ||
97 | type record Tabs | |
98 | { | |
99 | record of Tab tab_list | |
100 | } | |
101 | with { | |
102 | variant "name as uncapitalized"; | |
103 | variant (tab_list) "untagged"; | |
104 | variant (tab_list[-]) "name as 'tab'"; | |
105 | }; | |
106 | ||
107 | ||
108 | type record Tab | |
109 | { | |
110 | charstring id optional, | |
111 | charstring label_ | |
112 | } | |
113 | with { | |
114 | variant "name as uncapitalized"; | |
115 | variant (id) "attribute"; | |
116 | variant (label_) "name as 'label'"; | |
117 | variant (label_) "attribute"; | |
118 | }; | |
119 | ||
120 | ||
121 | type record Tabpanels | |
122 | { | |
123 | record of Tabpanel tabpanel_list | |
124 | } | |
125 | with { | |
126 | variant "name as uncapitalized"; | |
127 | variant (tabpanel_list) "untagged"; | |
128 | variant (tabpanel_list[-]) "name as 'tabpanel'"; | |
129 | }; | |
130 | ||
131 | ||
132 | type record Tabpanel | |
133 | { | |
134 | charstring id optional, | |
135 | float maxheight optional, | |
136 | Orientation orientation optional, | |
137 | Embeddedwidgets embeddedwidgets | |
138 | } | |
139 | with { | |
140 | variant "name as uncapitalized"; | |
141 | variant (id) "attribute"; | |
142 | variant (maxheight) "attribute"; | |
143 | variant (orientation) "attribute"; | |
144 | }; | |
145 | ||
146 | ||
147 | type enumerated Tablayout | |
148 | { | |
149 | cARD, | |
150 | lISTCARD, | |
151 | sCROLL, | |
152 | wRAP | |
153 | } | |
154 | with { | |
155 | variant "text 'cARD' as capitalized"; | |
156 | variant "text 'lISTCARD' as capitalized"; | |
157 | variant "text 'sCROLL' as capitalized"; | |
158 | variant "text 'wRAP' as capitalized"; | |
159 | variant "name as uncapitalized"; | |
160 | }; | |
161 | ||
162 | ||
163 | type record Image | |
164 | { | |
165 | charstring id, | |
166 | charstring imagedata optional, | |
167 | charstring imageurl optional | |
168 | } | |
169 | with { | |
170 | variant "name as uncapitalized"; | |
171 | variant (id) "attribute"; | |
172 | variant (imagedata) "attribute"; | |
173 | variant (imageurl) "attribute"; | |
174 | }; | |
175 | ||
176 | ||
177 | type enumerated Orientation | |
178 | { | |
179 | horizontal, | |
180 | vertical | |
181 | } | |
182 | with { | |
183 | variant "name as uncapitalized"; | |
184 | }; | |
185 | ||
186 | ||
187 | } | |
188 | with { | |
189 | encode "XML"; | |
190 | variant "namespace as 'http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'"; | |
191 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
192 | variant "elementFormQualified"; | |
193 | } |