d44e3c4f |
1 | /****************************************************************************** |
2 | * Copyright (c) 2000-2016 Ericsson Telecom AB |
3f84031e |
3 | * |
d44e3c4f |
4 | * XSD to TTCN-3 Translator |
3f84031e |
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 |
d44e3c4f |
10 | * |
11 | * Contributors: |
12 | * Balasko, Jeno |
13 | * Szabo, Bence Janos |
14 | * |
15 | ******************************************************************************/ |
3f84031e |
16 | // |
17 | // File: www_example_org_type_substitution_simple_cascade_e.ttcn |
18 | // Description: |
19 | // References: |
20 | // Rev: |
21 | // Prodnr: |
22 | // Updated: Thu Dec 10 13:13:38 2014 |
23 | // Contact: http://ttcn.ericsson.se |
24 | // |
25 | //////////////////////////////////////////////////////////////////////////////// |
26 | // Generated from file(s): |
27 | // - type_substitution_simple_cascade_e.xsd |
28 | // /* xml version = "1.0" encoding = "UTF-8" */ |
29 | // /* targetnamespace = "www.example.org/type/substitution/simple/cascade/e" */ |
30 | //////////////////////////////////////////////////////////////////////////////// |
31 | // Modification header(s): |
32 | //----------------------------------------------------------------------------- |
33 | // Modified by: |
34 | // Modification date: |
35 | // Description: |
36 | // Modification contact: |
37 | //------------------------------------------------------------------------------ |
38 | //////////////////////////////////////////////////////////////////////////////// |
39 | |
40 | |
41 | module www_example_org_type_substitution_simple_cascade { |
42 | |
43 | |
44 | import from XSD all; |
45 | |
46 | |
47 | type String_derivations Elem |
48 | with { |
49 | variant "name as uncapitalized"; |
50 | variant "element"; |
51 | }; |
52 | |
53 | |
54 | type Stringtype_derivations Elem1 |
55 | with { |
56 | variant "name as uncapitalized"; |
57 | variant "element"; |
58 | }; |
59 | |
60 | |
61 | type Stringtype2_derivations Elem2 |
62 | with { |
63 | variant "name as uncapitalized"; |
64 | variant "element"; |
65 | }; |
66 | |
67 | |
68 | type Stringtype3_derivations Elem3 |
69 | with { |
70 | variant "name as uncapitalized"; |
71 | variant "element"; |
72 | }; |
73 | |
74 | |
75 | type XSD.String Stringtype |
76 | with { |
77 | variant "name as uncapitalized"; |
78 | }; |
79 | |
80 | |
81 | type XSD.String Stringtype2 length(5) |
82 | with { |
83 | variant "name as uncapitalized"; |
84 | }; |
85 | |
86 | |
87 | type XSD.String Stringtype3 (pattern "dd") length(5) |
88 | with { |
89 | variant "name as uncapitalized"; |
90 | }; |
91 | |
92 | |
93 | type XSD.String Stringtype4 (pattern "d") length(5) |
94 | with { |
95 | variant "name as uncapitalized"; |
96 | }; |
97 | |
98 | |
99 | type union String_derivations |
100 | { |
101 | XSD.String string, |
102 | Stringtype stringtype, |
103 | Stringtype2 stringtype2, |
104 | Stringtype3 stringtype3, |
105 | Stringtype4 stringtype4 |
106 | } |
107 | with { |
108 | variant "name as uncapitalized"; |
109 | variant "useType"; |
110 | }; |
111 | |
112 | |
113 | type union Stringtype_derivations |
114 | { |
115 | Stringtype stringtype, |
116 | Stringtype2 stringtype2, |
117 | Stringtype3 stringtype3, |
118 | Stringtype4 stringtype4 |
119 | } |
120 | with { |
121 | variant "name as uncapitalized"; |
122 | variant "useType"; |
123 | }; |
124 | |
125 | |
126 | type union Stringtype2_derivations |
127 | { |
128 | Stringtype2 stringtype2, |
129 | Stringtype3 stringtype3, |
130 | Stringtype4 stringtype4 |
131 | } |
132 | with { |
133 | variant "name as uncapitalized"; |
134 | variant "useType"; |
135 | }; |
136 | |
137 | |
138 | type union Stringtype3_derivations |
139 | { |
140 | Stringtype3 stringtype3, |
141 | Stringtype4 stringtype4 |
142 | } |
143 | with { |
144 | variant "name as uncapitalized"; |
145 | variant "useType"; |
146 | }; |
147 | |
148 | |
149 | } |
150 | with { |
151 | encode "XML"; |
152 | variant "namespace as 'www.example.org/type/substitution/simple/cascade'"; |
153 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
154 | } |