3abe9331 |
1 | /******************************************************************************* |
2 | * Copyright (c) 2000-2015 Ericsson Telecom AB |
3 | * |
4 | * XSD to TTCN-3 Translator version: CRL 113 200/4 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: http_www_example_org_complex_restriction_with_use_e.ttcn |
13 | // Description: |
14 | // References: |
15 | // Rev: |
16 | // Prodnr: |
17 | // Updated: Tue Jun 2 06:12:37 2014 |
18 | // Contact: http://ttcn.ericsson.se |
19 | // |
20 | //////////////////////////////////////////////////////////////////////////////// |
21 | // Generated from file(s): |
22 | // - complex_restriction_with_use.xsd |
23 | // /* xml version = "1.0" encoding = "UTF-8" */ |
24 | // /* targetnamespace = "http://www.example.org/complex-restriction-with-use/e" */ |
25 | //////////////////////////////////////////////////////////////////////////////// |
26 | // Modification header(s): |
27 | //----------------------------------------------------------------------------- |
28 | // Modified by: |
29 | // Modification date: |
30 | // Description: |
31 | // Modification contact: |
32 | //------------------------------------------------------------------------------ |
33 | //////////////////////////////////////////////////////////////////////////////// |
34 | |
35 | |
36 | module http_www_example_org_complex_restriction_with_use { |
37 | |
38 | |
39 | import from XSD all; |
40 | |
41 | |
42 | /* The base type is: */ |
43 | |
44 | |
45 | type record PurchaseOrderType |
46 | { |
47 | XSD.Date finishDate optional, |
48 | XSD.Date orderDate optional, |
49 | XSD.Date shipDate optional, |
50 | XSD.String shipTo, |
51 | XSD.String billTo optional, |
52 | XSD.String items |
53 | } |
54 | with { |
3f84031e |
55 | variant (finishDate) "attribute"; |
56 | variant (orderDate) "attribute"; |
57 | variant (shipDate) "attribute"; |
3abe9331 |
58 | }; |
59 | |
60 | |
61 | /* The restricting type is: */ |
62 | |
63 | |
64 | type record RestrictedPurchaseOrderType |
65 | { |
66 | XSD.Date finishDate optional, |
67 | XSD.Date shipDate, |
68 | XSD.String shipTo, |
69 | XSD.String billTo, |
70 | XSD.String items |
71 | } |
72 | with { |
3f84031e |
73 | variant (finishDate) "attribute"; |
74 | variant (shipDate) "attribute"; |
3abe9331 |
75 | }; |
76 | |
77 | |
78 | type Testsuite_1 Testsuite |
79 | with { |
3f84031e |
80 | variant "name as uncapitalized"; |
81 | variant "element"; |
3abe9331 |
82 | }; |
83 | |
84 | |
85 | type record Testsuite_1 |
86 | { |
87 | XSD.Decimal time optional, |
88 | record { |
89 | } properties |
90 | } |
91 | with { |
3f84031e |
92 | variant "name as 'testsuite'"; |
93 | variant (time) "attribute"; |
3abe9331 |
94 | }; |
95 | |
96 | |
97 | type record Testsuites |
98 | { |
99 | record { |
100 | XSD.Decimal time, |
101 | record { |
102 | } properties |
103 | } testsuite |
104 | } |
105 | with { |
3f84031e |
106 | variant "name as uncapitalized"; |
107 | variant "element"; |
108 | variant (testsuite.time) "attribute"; |
3abe9331 |
109 | }; |
110 | |
111 | |
112 | } |
113 | with { |
3f84031e |
114 | encode "XML"; |
115 | variant "namespace as 'http://www.example.org/complex-restriction-with-use'"; |
116 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
3abe9331 |
117 | } |