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: ietf_params_xml_ns_pidf_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 | // - pidf.xsd | |
25 | // /* xml version = "1.0" encoding = "UTF-8" */ | |
26 | // /* targetnamespace = "urn:ietf:params:xml:ns:pidf" */ | |
27 | // | |
28 | //////////////////////////////////////////////////////////////////////////////// | |
29 | ||
30 | ||
31 | module ietf_params_xml_ns_pidf_e { | |
32 | ||
33 | ||
34 | import from XSD all; | |
35 | ||
36 | ||
37 | import from www_w3_org_XML_1998_namespace_e all; | |
38 | ||
39 | ||
40 | /* This import brings in the XML language attribute xml:lang */ | |
41 | ||
42 | ||
43 | type Presence_1 Presence | |
44 | with { | |
45 | variant "name as uncapitalized"; | |
46 | variant "element"; | |
47 | }; | |
48 | ||
49 | ||
50 | type record Presence_1 | |
51 | { | |
52 | XSD.AnyURI entity, | |
53 | record of Tuple tuple_list, | |
54 | record of Note note_list, | |
55 | record of XSD.String elem_list | |
56 | } | |
57 | with { | |
58 | variant "name as 'presence'"; | |
59 | variant (entity) "attribute"; | |
60 | variant (tuple_list) "untagged"; | |
61 | variant (tuple_list[-]) "name as 'tuple'"; | |
62 | variant (note_list) "untagged"; | |
63 | variant (note_list[-]) "name as 'note'"; | |
64 | variant (elem_list) "untagged"; | |
65 | variant (elem_list[-]) "anyElement except unqualified, 'urn:ietf:params:xml:ns:pidf'"; | |
66 | }; | |
67 | ||
68 | ||
69 | type record Tuple | |
70 | { | |
71 | XSD.ID id, | |
72 | Status status, | |
73 | record of XSD.String elem_list, | |
74 | Contact contact optional, | |
75 | record of Note note_list, | |
76 | XSD.DateTime timestamp optional | |
77 | } | |
78 | with { | |
79 | variant "name as uncapitalized"; | |
80 | variant (id) "attribute"; | |
81 | variant (elem_list) "untagged"; | |
82 | variant (elem_list[-]) "anyElement except unqualified, 'urn:ietf:params:xml:ns:pidf'"; | |
83 | variant (note_list) "untagged"; | |
84 | variant (note_list[-]) "name as 'note'"; | |
85 | }; | |
86 | ||
87 | ||
88 | type record Status | |
89 | { | |
90 | Basic basic optional, | |
91 | record of XSD.String elem_list | |
92 | } | |
93 | with { | |
94 | variant "name as uncapitalized"; | |
95 | variant (elem_list) "untagged"; | |
96 | variant (elem_list[-]) "anyElement except unqualified, 'urn:ietf:params:xml:ns:pidf'"; | |
97 | }; | |
98 | ||
99 | ||
100 | type enumerated Basic | |
101 | { | |
102 | closed, | |
103 | open | |
104 | } | |
105 | with { | |
106 | variant "name as uncapitalized"; | |
107 | }; | |
108 | ||
109 | ||
110 | type record Contact | |
111 | { | |
112 | Qvalue priority optional, | |
113 | XSD.AnyURI base | |
114 | } | |
115 | with { | |
116 | variant "name as uncapitalized"; | |
117 | variant (priority) "attribute"; | |
118 | variant (base) "untagged"; | |
119 | }; | |
120 | ||
121 | ||
122 | type record Note | |
123 | { | |
124 | Lang lang optional, | |
125 | XSD.String base | |
126 | } | |
127 | with { | |
128 | variant "name as uncapitalized"; | |
129 | variant (lang) "attribute"; | |
130 | variant (base) "untagged"; | |
131 | }; | |
132 | ||
133 | ||
134 | type XSD.Decimal Qvalue | |
135 | with { | |
136 | variant "name as uncapitalized"; | |
137 | }; | |
138 | ||
139 | ||
140 | /* Global Attributes */ | |
141 | ||
142 | ||
143 | /* This attribute may be used on any element within an optional | |
144 | PIDF extension to indicate that the corresponding element must | |
145 | be understood by the PIDF processor if the enclosing optional | |
146 | element is to be handled. */ | |
147 | type XSD.Boolean MustUnderstand | |
148 | with { | |
149 | variant "name as uncapitalized"; | |
150 | variant "defaultForEmpty as '0'"; | |
151 | variant "attribute"; | |
152 | }; | |
153 | ||
154 | ||
155 | } | |
156 | with { | |
157 | encode "XML"; | |
158 | variant "namespace as 'urn:ietf:params:xml:ns:pidf' prefix 'pidf'"; | |
159 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
160 | variant "elementFormQualified"; | |
161 | } |