Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / HN15589 / xtdp.ttcn
1 /******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
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 // Generated from file(s):
9 //
10 // - XTDP-Message.xsd
11
12
13 module xtdp {
14
15
16
17
18
19 import from xtdl all;
20
21
22 /* ***********************************************************************
23 * XTDP ELEMENT TYPES *
24 *********************************************************************** */
25
26
27 /* Corrected by ethgry from: "(\p{L}|\d|_|\-|\.|\/){1,}"/> */
28 /* FIXME: IDENTIFIER CONVENSION IS CHANGED! FIRST CHARACTER SHALL NOT BE "_" "-" OR "."; IS IT OK? */
29 type charstring XTDP_Identifier (pattern "[a-zA-Z0-9]([a-zA-Z0-9]|_|\-|.|/)#(1,)")
30 with {
31 variant "name as 'XTDP-Identifier'";
32 };
33
34
35 /* ***********************************************************************
36 * XTDP INFORMATION ELEMENTS *
37 *********************************************************************** */
38
39
40 type record XTDP_AddRequest
41 {
42 integer requestId,
43 XTDP_Identifier parentWidgetId optional,
44 Widgets widgets
45 }
46 with {
47 variant "name as 'XTDP-AddRequest'";
48 variant (widgets) "namespace as 'http://ttcn.ericsson.se/protocolModules/xtdp/xtdl' prefix 'xtdl'";
49 };
50
51
52 /* ***********************************************************************
53 * XTDP MESSAGES *
54 *********************************************************************** */
55
56
57 type record XTDP_AddRequests
58 {
59 record length(1 .. infinity) of XTDP_AddRequest xTDP_AddRequest_list
60 }
61 with {
62 variant "name as 'XTDP-AddRequests'";
63 variant (xTDP_AddRequest_list) "untagged";
64 variant (xTDP_AddRequest_list[-]) "name as 'XTDP-AddRequest'";
65 };
66
67
68 /* ethgry: "noNamespaceSchemaLocation" is deleted; how to know about this attribute,
69 if the schema is not available? */
70 /* ethgry: transactionID is added to allow handling several procedures at the same time */
71 type record XTDP_Message
72 {
73 integer transactionID optional,
74 union {
75 XTDP_AddRequests xTDP_AddRequests,
76 charstring xTDP_AuthChallenge,
77 charstring xTDP_AuthResponse,
78 charstring xTDP_Bye
79 } choice
80 }
81 with {
82 variant "name as 'XTDP-Message'";
83 variant "element";
84 variant (transactionID) "attribute";
85 variant (choice) "untagged";
86 variant (choice.xTDP_AddRequests) "name as 'XTDP-AddRequests'";
87 variant (choice.xTDP_AuthChallenge) "name as 'XTDP-AuthChallenge'";
88 variant (choice.xTDP_AuthResponse) "name as 'XTDP-AuthResponse'";
89 variant (choice.xTDP_Bye) "name as 'XTDP-Bye'";
90 };
91
92
93 }
94 with {
95 encode "XML";
96 variant "namespace as 'http://ttcn.ericsson.se/protocolModules/xtdp/xtdp'";
97 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
98 }
This page took 0.037335 seconds and 5 git commands to generate.