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_simpletype_ref_e.ttcn |
13 | // Description: |
14 | // References: |
15 | // Rev: |
16 | // Prodnr: |
17 | // Updated: Thu Sep 10 13:13:32 2014 |
18 | // Contact: http://ttcn.ericsson.se |
19 | // |
20 | //////////////////////////////////////////////////////////////////////////////// |
21 | // Generated from file(s): |
22 | // - simpletype_ref.xsd |
23 | // /* xml version = "1.0" encoding = "UTF-8" */ |
24 | // /* targetnamespace = "www.example.org/simpletype/ref" */ |
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_simpletype_ref_e { |
37 | |
38 | |
39 | import from XSD all; |
40 | |
41 | |
42 | type record SomeType |
43 | { |
44 | XSD.String something |
45 | } |
46 | with { |
47 | variant "element"; |
48 | }; |
49 | |
50 | |
51 | type record Type |
52 | { |
53 | XSD.String something optional |
54 | } |
55 | with { |
56 | variant "element"; |
57 | }; |
58 | |
59 | |
60 | type record OtherType |
61 | { |
62 | SomeType billingAccountNumber, |
63 | XSD.Long installmentPlanId (-99999 .. 99999), |
64 | XSD.String info length(0 .. 30) optional |
65 | }; |
66 | |
67 | |
68 | type record of XSD.String Start_list |
69 | with { |
70 | variant "name as uncapitalized"; |
71 | variant "list"; |
72 | }; |
73 | |
74 | |
75 | type Start_list List_ref length(4); |
76 | |
77 | |
78 | type XSD.String Info; |
79 | |
80 | |
81 | } |
82 | with { |
83 | encode "XML"; |
84 | variant "namespace as 'www.example.org/simpletype/ref' prefix 'this'"; |
85 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
86 | } |