1 /*******************************************************************************
2 * Copyright Ericsson Telecom AB
4 * XSD to TTCN-3 Translator
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 *******************************************************************************/
12 // File: ETSI_CR5852_union_e.ttcn
17 // Updated: Thu Sep 5 17:35:03 2013
18 // Contact: http://ttcn.ericsson.se
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - ETSI_CR5852_union.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "ETSI_CR5852_union" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
36 module ETSI_CR5852_union_e {
42 /* EXAMPLE 5: Mapping of children of choice components
43 // Are translated to TTCN-3 as:
44 type record ChoiceChildMinMax {
46 record length(1 .. 5) of XSD.String elem0_list,
47 // child of choice with minOccurs different from 0
48 record length(0 .. 1) of XSD.String elem1_list,
49 // first child of choice with minOccurs 0;
50 // this alternative is to be used create an empty choice element
51 record length(1) of XSD.String elem2_list,
52 // second child of choice with minOccurs 0
53 record length(1 .. infinity) of XSD.String elem3_list
54 // third child of choice with minOccurs 0
59 variant (choice) "untagged";
60 variant (choice.elem0_list) "untagged";
61 variant (choice.elem0_list[-]) "name as 'elem0'";
62 variant (choice.elem1_list) "untagged";
63 variant (choice.elem1_list[-]) "name as 'elem1'";
64 variant (choice.elem2_list) "untagged";
65 variant (choice.elem2_list[-]) "name as 'elem2'";
66 variant (choice.elem3_list) "untagged";
67 variant (choice.elem3_list[-]) "name as 'elem3'";
71 type record ChoiceChildMinMax
74 record length(1 .. 5) of XSD.String elem0_list,
75 record length(0 .. 1) of XSD.String elem1_list,
76 record length(1) of XSD.String elem2_list,
77 record length(1 .. infinity) of XSD.String elem3_list
82 variant (choice) "untagged";
83 variant (choice.elem0_list) "untagged";
84 variant (choice.elem0_list[-]) "name as 'elem0'";
85 variant (choice.elem1_list) "untagged";
86 variant (choice.elem1_list[-]) "name as 'elem1'";
87 variant (choice.elem2_list) "untagged";
88 variant (choice.elem2_list[-]) "name as 'elem2'";
89 variant (choice.elem3_list) "untagged";
90 variant (choice.elem3_list[-]) "name as 'elem3'";
94 /* added only to enable showing all cases in one XML instance */
97 type record MinOccurs_maxOccurs_frame
100 ChoiceChildMinMax choiceChildMinMax
104 variant "name as uncapitalized";
106 variant (choice_list) "untagged";
107 variant (choice_list[-]) "untagged";
108 variant (choice_list[-].choiceChildMinMax) "name as capitalized";
115 variant "namespace as 'ETSI_CR5852_union' prefix 'etsiu'";
116 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";