Sync with 5.4.1
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_type_substitution_elem_in_ct_mod1_e.ttcn
1 /*******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
3 *
4 * XSD to TTCN-3 Translator version: CRL 113 200/5 R3A
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: www_example_org_type_substitution_elem_in_ct_mod1_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Wed Nov 18 15:03:25 2014
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - type_substitution_elem_in_ct_mod1_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/type/substitution/elem/in/ct/mod1/e" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
28 // Modified by:
29 // Modification date:
30 // Description:
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
34
35
36 module www_example_org_type_substitution_elem_in_ct_mod1 {
37
38
39 import from XSD all;
40
41
42 type record Complex
43 {
44 String_derivations string,
45 ParentType_derivations parentType
46 }
47 with {
48 variant "element";
49 };
50
51
52 type XSD.String Stringtype
53 with {
54 variant "name as uncapitalized";
55 };
56
57
58 type XSD.String Stringtype2 length(5)
59 with {
60 variant "name as uncapitalized";
61 };
62
63
64 type record ParentType
65 {
66 record of XSD.String foo_list,
67 XSD.String bar
68 }
69 with {
70 variant (foo_list) "untagged";
71 variant (foo_list[-]) "name as 'foo'";
72 };
73
74
75 type record RestrictedType
76 {
77 record length(1 .. infinity) of XSD.String foo_list,
78 XSD.String bar
79 }
80 with {
81 variant "name as uncapitalized";
82 variant (foo_list) "untagged";
83 variant (foo_list[-]) "name as 'foo'";
84 };
85
86
87 type record MorerestrictedType
88 {
89 record length(2 .. infinity) of XSD.String foo_list,
90 XSD.String bar
91 }
92 with {
93 variant "name as uncapitalized";
94 variant (foo_list) "untagged";
95 variant (foo_list[-]) "name as 'foo'";
96 };
97
98
99 type union String_derivations
100 {
101 XSD.String string,
102 Stringtype_derivations stringtype
103 }
104 with {
105 variant "name as uncapitalized";
106 variant "useType";
107 };
108
109
110 type union Stringtype_derivations
111 {
112 Stringtype stringtype,
113 Stringtype2 stringtype2
114 }
115 with {
116 variant "name as uncapitalized";
117 variant "useType";
118 };
119
120
121 type union ParentType_derivations
122 {
123 ParentType parentType,
124 RestrictedType_derivations restrictedType
125 }
126 with {
127 variant "useType";
128 variant (parentType) "name as capitalized";
129 variant (restrictedType) "block";
130 };
131
132
133 type union RestrictedType_derivations
134 {
135 RestrictedType restrictedType,
136 MorerestrictedType morerestrictedType
137 }
138 with {
139 variant "name as uncapitalized";
140 variant "useType";
141 variant (morerestrictedType) "block";
142 };
143
144
145 }
146 with {
147 encode "XML";
148 variant "namespace as 'www.example.org/type/substitution/elem/in/ct/mod1' prefix 'this'";
149 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
150 }
This page took 0.034546 seconds and 5 git commands to generate.