Sync with 5.4.1
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_substitutiongroup_e.ttcn
CommitLineData
3abe9331 1/*******************************************************************************
2* Copyright (c) 2000-2015 Ericsson Telecom AB
3*
4* XSD to TTCN-3 Translator version: CRL 113 200/5 R2A
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_substitutiongroup_e.ttcn
13// Description:
14// References:
15// Rev:
16// Prodnr:
17// Updated: Wed Oct 14 16:10:14 2014
18// Contact: http://ttcn.ericsson.se
19//
20////////////////////////////////////////////////////////////////////////////////
21// Generated from file(s):
22// - substitutiongroup_e.xsd
23// /* xml version = "1.0" encoding = "UTF-8" */
24// /* targetnamespace = "www.example.org/substitutiongroup/e" */
25////////////////////////////////////////////////////////////////////////////////
26// Modification header(s):
27//-----------------------------------------------------------------------------
28// Modified by:
29// Modification date:
30// Description:
31// Modification contact:
32//------------------------------------------------------------------------------
33////////////////////////////////////////////////////////////////////////////////
34
35
36module www_example_org_substitutiongroup {
37
38
39import from XSD all;
40
41
42/* THE HEAD ELEMENT */
43
44
45/* SUBSTITUTION ELEMENT OF THE SAME TYPE AS THE HEAD */
46
47
48type XSD.String Member1
49with {
50variant "name as uncapitalized";
51variant "element";
52};
53
54
55/* SUBSTITUTION ELEMENT OF A TYPE RESTRICTING THE TYPE OF THE HEAD */
56
57
58type enumerated StringEnum
59{
60 else_,
61 something
62}
63with {
64variant "text 'else_' as 'else'";
65variant "name as uncapitalized";
66};
67
68
69type StringEnum Member2
70with {
71variant "name as uncapitalized";
72variant "element";
73};
74
75
76/* SUBSTITUTION ELEMENT OF A TYPE EXTENDING THE TYPE OF THE HEAD */
77
78
79type record ComplexEnum
80{
81 XSD.Integer bar optional,
82 XSD.Float foo optional,
83 XSD.String base
84}
85with {
86variant "name as uncapitalized";
87variant (bar) "attribute";
88variant (foo) "attribute";
89variant (base) "untagged";
90};
91
92
93type ComplexEnum Member3
94with {
95variant "name as uncapitalized";
96variant "element";
97};
98
99
100/* TOP LEVEL ELEMENT TO DEMONSTRATE SUBSTITUTION */
101
102
103type record Ize
104{
105 record of Head_group head_list
106}
107with {
108variant "name as uncapitalized";
109variant "element";
110variant (head_list) "untagged";
111variant (head_list[-]) "name as 'head'";
112};
113
114
115type union Head_group
116{
117 XSD.String head,
118 Member1 member1,
119 Member2 member2,
120 Member3 member3
121}
122with {
123variant "untagged";
51fa56b9 124variant (head) "form as qualified";
3abe9331 125};
126
127
128}
129with {
130encode "XML";
51fa56b9 131variant "namespace as 'www.example.org/substitutiongroup' prefix 'subs'";
3abe9331 132variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
133}
This page took 0.030237 seconds and 5 git commands to generate.