Titan Core Initial Contribution
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / NoTargetNamespace_XML_RPC_e.ttcn
CommitLineData
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: NoTargetNamespace_XML_RPC_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// - XML_RPC.xsd
25// /* xml version = "1.0" */
26// /* targetnamespace = "NoTargetNamespace" */
27//
28////////////////////////////////////////////////////////////////////////////////
29
30
31module NoTargetNamespace_XML_RPC_e {
32
33
34import from XSD all;
35
36
37/* The only two possible root elements are methodResponse and
38 methodCall so these are the only two I use a top-level
39 declaration for. */
40
41
42type record MethodCall
43{
44 record of enumerated {
45 methodName,
46 params
47 } order,
48 ASCIIString methodName,
49 record {
50 record of ParamType param_list
51 } params optional
52}
53with {
54variant "name as uncapitalized";
55variant "useOrder";
56variant "element";
57variant (params.param_list) "untagged";
58variant (params.param_list[-]) "name as 'param'";
59};
60
61
62/* What can appear inside a fault is very restricted */
63type record MethodResponse
64{
65 union {
66 record {
67 ParamType param_
68 } params,
69 record {
70 record {
71 record {
72 MemberType member,
73 MemberType member_1
74 } struct
75 } value_
76 } fault
77 } choice
78}
79with {
80variant "name as uncapitalized";
81variant "element";
82variant (choice) "untagged";
83variant (choice.params.param_) "name as 'param'";
84variant (choice.fault.value_) "name as 'value'";
85variant (choice.fault.value_.struct.member_1) "name as 'member'";
86};
87
88
89type record ParamType
90{
91 ValueType value_
92}
93with {
94variant (value_) "name as 'value'";
95};
96
97
98/* I need to figure out how to say that this
99 is either a simple xsd:string type or that
100 it contains one of these elements; but that otherwise
101 it does not have mixed content */
102type record ValueType
103{
104 record of XSD.String embed_values,
105 union {
106 XSD.Int i4,
107 XSD.Int int,
108 ASCIIString string,
109 XSD.Decimal double,
110 XSD.Base64Binary base64,
111 NumericBoolean boolean_,
112 XSD.DateTime dateTime_iso8601,
113 ArrayType array,
114 StructType struct
115 } choice
116}
117with {
118variant "embedValues";
119variant (choice) "untagged";
120variant (choice.base64) "name as capitalized";
121variant (choice.boolean_) "name as 'boolean'";
122variant (choice.dateTime_iso8601) "name as 'dateTime.iso8601'";
123};
124
125
126type record StructType
127{
128 record length(1 .. infinity) of MemberType member_list
129}
130with {
131variant (member_list) "untagged";
132variant (member_list[-]) "name as 'member'";
133};
134
135
136type record MemberType
137{
138 XSD.String name,
139 ValueType value_
140}
141with {
142variant (value_) "name as 'value'";
143};
144
145
146type record ArrayType
147{
148 record {
149 record of ValueType value_list
150 } data
151}
152with {
153variant (data.value_list) "untagged";
154variant (data.value_list[-]) "name as 'value'";
155};
156
157
158type XSD.String ASCIIString (pattern "([ -~]|\n|\r|\t)*");
159
160
161type XSD.Boolean NumericBoolean;
162
163
164}
165with {
166encode "XML";
167variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
168}
This page took 0.029383 seconds and 5 git commands to generate.