Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / HR49727 / http_jabber_org_protocol_pubsub_event.ttcn
CommitLineData
970ed795 1/******************************************************************************
3abe9331 2 * Copyright (c) 2000-2015 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
7 ******************************************************************************/
8//
9// File: http_jabber_org_protocol_pubsub_event.ttcn
10// Description:
11// References:
12// Rev:
13// Prodnr:
14// Updated: Sun Jan 6 13:51:49 2013
15// Contact: http://ttcn.ericsson.se
16//
17////////////////////////////////////////////////////////////////////////////////
18//
19// Generated from file(s):
20//
21// - pubsub#event.xsd
22// /* xml version = "1.0" encoding = "UTF-8" */
23// /* targetnamespace = "http://jabber.org/protocol/pubsub#event" */
24//
25////////////////////////////////////////////////////////////////////////////////
26
27////////////////////////////////////////////////////////////////////////////////
28//
29//
30//XEP-0060: Publish-Subscribe
31//
32//
33////////////////////////////////////////////////////////////////////////////////
34
35
36module http_jabber_org_protocol_pubsub_event {
37
38
39import from XSD all;
40
41
42import from jabber_x_data all;
43
44
45/* xmlns:xdata='jabber:x:data' is needed to trick the converter */
46
47
48/* The protocol documented by this schema is defined in
49 XEP-0060: http://xmpp.org/extensions/xep-0060.html */
50
51
52/* http://xmpp.org/schemas/x-data.xsd */
53
54
55type record Event
56{
57 union {
58 Collection collection,
59 Configuration configuration,
60 Delete delete,
61 Items items,
62 Purge purge,
63 Subscription subscription
64 } choice
65}
66with {
67variant "name as uncapitalized";
68variant "element";
69variant (choice) "untagged";
70};
71
72
73type record Collection
74{
75 XSD.String node optional,
76 union {
77 Associate associate,
78 Disassociate disassociate
79 } choice
80}
81with {
82variant "name as uncapitalized";
83variant "element";
84variant (node) "attribute";
85variant (choice) "untagged";
86};
87
88
89type record Associate
90{
91 XSD.String node//,
92 //Empty base
93}
94with {
95variant "name as uncapitalized";
96variant "element";
97variant (node) "attribute";
98//variant (base) "untagged";
99};
100
101
102type record Disassociate
103{
104 XSD.String node//,
105 //Empty base
106}
107with {
108variant "name as uncapitalized";
109variant "element";
110variant (node) "attribute";
111//variant (base) "untagged";
112};
113
114
115type record Configuration
116{
117 XSD.String node optional,
118 record {
119 X x
120 } sequence optional
121}
122with {
123variant "name as uncapitalized";
124variant "element";
125variant (node) "attribute";
126variant (sequence) "untagged";
127variant (sequence.x) "namespace as 'jabber:x:data' prefix 'xdata'";
128};
129
130
131type record Delete
132{
133 XSD.String node,
134 Redirect redirect optional
135}
136with {
137variant "name as uncapitalized";
138variant "element";
139variant (node) "attribute";
140};
141
142
143type record Items
144{
145 XSD.String node,
146 union {
147 record of Item item_list,
148 record length(1 .. infinity) of Retract retract_list
149 } choice
150}
151with {
152variant "name as uncapitalized";
153variant "element";
154variant (node) "attribute";
155variant (choice) "untagged";
156variant (choice.item_list) "untagged";
157variant (choice.retract_list) "untagged";
158};
159
160
161type record Item
162{
163 XSD.String id optional,
164 XSD.String node optional,
165 XSD.String publisher optional,
166 union {
167 XSD.String elem,
168 XSD.String alma
169 } choice optional
170}
171with {
172variant "name as uncapitalized";
173variant "element";
174variant (id) "attribute";
175variant (node) "attribute";
176variant (publisher) "attribute";
177variant (choice) "untagged";
178variant (choice.elem) "anyElement except unqualified, 'http://jabber.org/protocol/pubsub#event'";
179};
180
181
182type record Purge
183{
184 XSD.String node//,
185 //Empty base
186}
187with {
188variant "name as uncapitalized";
189variant "element";
190variant (node) "attribute";
191//variant (base) "untagged";
192};
193
194
195type record Redirect
196{
197 XSD.String uri//,
198 //Empty base
199}
200with {
201variant "name as uncapitalized";
202variant "element";
203variant (uri) "attribute";
204//variant (base) "untagged";
205};
206
207
208type record Retract
209{
210 XSD.String id//,
211 //Empty base
212}
213with {
214variant "name as uncapitalized";
215variant "element";
216variant (id) "attribute";
217//variant (base) "untagged";
218};
219
220
221type record Subscription
222{
223 XSD.DateTime expiry optional,
224 XSD.String jid,
225 XSD.String node optional,
226 XSD.String subid optional,
227 enumerated {
228 none_,
229 pending,
230 subscribed,
231 unconfigured
232 } subscription optional//,
233 //Empty base
234}
235with {
236variant "name as uncapitalized";
237variant "element";
238variant (expiry) "attribute";
239variant (jid) "attribute";
240variant (node) "attribute";
241variant (subid) "attribute";
242variant (subscription) "text 'none_' as 'none'";
243variant (subscription) "attribute";
244//variant (base) "untagged";
245};
246
247
248type enumerated Empty
249{
250 x
251}
252with {
253variant "text 'x' as ''";
254variant "name as uncapitalized";
255};
256
257
258}
259with {
260encode "XML";
261variant "namespace as 'http://jabber.org/protocol/pubsub#event'";
262variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
263variant "elementFormQualified";
264}
This page took 0.0651 seconds and 5 git commands to generate.