| 1 | /******************************************************************************* |
| 2 | * Copyright Ericsson Telecom AB |
| 3 | * |
| 4 | * XSD to TTCN-3 Translator |
| 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: tail_f_com_ns_confd_1_0_e.ttcn |
| 13 | // Description: |
| 14 | // References: |
| 15 | // Rev: |
| 16 | // Prodnr: |
| 17 | // Updated: Thu Jan 28 15:35:13 2010 |
| 18 | // Contact: http://ttcn.ericsson.se |
| 19 | // |
| 20 | //////////////////////////////////////////////////////////////////////////////// |
| 21 | // |
| 22 | // Generated from file(s): |
| 23 | // |
| 24 | // - confd.xsd |
| 25 | // /* xml version = "1.0" encoding = "UTF-8" */ |
| 26 | // /* targetnamespace = "http://tail-f.com/ns/confd/1.0" */ |
| 27 | // |
| 28 | //////////////////////////////////////////////////////////////////////////////// |
| 29 | |
| 30 | |
| 31 | module tail_f_com_ns_confd_1_0_e { |
| 32 | |
| 33 | |
| 34 | import from XSD all; |
| 35 | |
| 36 | |
| 37 | type union InetAddress |
| 38 | { |
| 39 | InetAddressIPv4 inetAddressIPv4, |
| 40 | InetAddressIPv6 inetAddressIPv6, |
| 41 | InetAddressDNS inetAddressDNS |
| 42 | } |
| 43 | with { |
| 44 | variant "name as uncapitalized"; |
| 45 | variant "useUnion"; |
| 46 | }; |
| 47 | |
| 48 | |
| 49 | type union InetAddressIP |
| 50 | { |
| 51 | InetAddressIPv4 inetAddressIPv4, |
| 52 | InetAddressIPv6 inetAddressIPv6 |
| 53 | } |
| 54 | with { |
| 55 | variant "name as uncapitalized"; |
| 56 | variant "useUnion"; |
| 57 | }; |
| 58 | |
| 59 | |
| 60 | type XSD.String InetAddressIPv4 (pattern "(([0-1]#(0,1)[0-9]#(0,1)[0-9]|2[0-4][0-9]|25[0-5]).)#(1,3)([0-1]#(0,1)[0-9]#(0,1)[0-9]|2[0-4][0-9]|25[0-5])") length(7 .. 15) |
| 61 | with { |
| 62 | variant "name as uncapitalized"; |
| 63 | }; |
| 64 | |
| 65 | |
| 66 | /* Full */ |
| 67 | /* Mixed */ |
| 68 | /* Shortened */ |
| 69 | /* Shortened mixed */ |
| 70 | type XSD.String InetAddressIPv6 (pattern "(([0-9a-fA-F]#(1,4):)*([0-9a-fA-F]#(1,4)))*(::)(([0-9a-fA-F]#(1,4):)*([0-9a-fA-F]#(1,4)))*(([0-9]#(1,3).[0-9]#(1,3).[0-9]#(1,3).[0-9]#(1,3)))") length(0 .. 39) |
| 71 | with { |
| 72 | variant "name as uncapitalized"; |
| 73 | }; |
| 74 | |
| 75 | |
| 76 | type XSD.String InetAddressDNS |
| 77 | with { |
| 78 | variant "name as uncapitalized"; |
| 79 | }; |
| 80 | |
| 81 | |
| 82 | type XSD.UnsignedShort InetPortNumber |
| 83 | with { |
| 84 | variant "name as uncapitalized"; |
| 85 | }; |
| 86 | |
| 87 | |
| 88 | type XSD.String Size (pattern "S([0-9]+G)#(0,1)([0-9]+M)#(0,1)([0-9]+K)#(0,1)([0-9]+B)#(0,1)") |
| 89 | with { |
| 90 | variant "name as uncapitalized"; |
| 91 | }; |
| 92 | |
| 93 | |
| 94 | type XSD.String MD5DigestString; |
| 95 | |
| 96 | |
| 97 | type XSD.String DES3CBCEncryptedString; |
| 98 | |
| 99 | |
| 100 | type XSD.String AESCFB128EncryptedString; |
| 101 | |
| 102 | |
| 103 | type XSD.String Atom |
| 104 | with { |
| 105 | variant "name as uncapitalized"; |
| 106 | }; |
| 107 | |
| 108 | |
| 109 | type XSD.String HexValue (pattern "[0-9a-fA-F]*") |
| 110 | with { |
| 111 | variant "name as uncapitalized"; |
| 112 | }; |
| 113 | |
| 114 | |
| 115 | type XSD.String HexList |
| 116 | with { |
| 117 | variant "name as uncapitalized"; |
| 118 | }; |
| 119 | |
| 120 | |
| 121 | type XSD.String OctetList (pattern "(([0-1]#(0,1)[0-9]#(0,1)[0-9]|2[0-4][0-9]|25[0-5]).)*([0-1]#(0,1)[0-9]#(0,1)[0-9]|2[0-4][0-9]|25[0-5])") |
| 122 | with { |
| 123 | variant "name as uncapitalized"; |
| 124 | }; |
| 125 | |
| 126 | |
| 127 | type XSD.String Oid (pattern "(([0-9]#(0,1)[0-9]*).)*([0-9]#(0,1)[0-9]*)#(0,1)") |
| 128 | with { |
| 129 | variant "name as uncapitalized"; |
| 130 | }; |
| 131 | |
| 132 | |
| 133 | type XSD.String ObjectRef |
| 134 | with { |
| 135 | variant "name as uncapitalized"; |
| 136 | }; |
| 137 | |
| 138 | |
| 139 | type XSD.UnsignedInt Counter32; |
| 140 | |
| 141 | |
| 142 | type XSD.UnsignedLong Counter64; |
| 143 | |
| 144 | |
| 145 | type XSD.UnsignedInt Gauge32; |
| 146 | |
| 147 | |
| 148 | type union IpPrefix |
| 149 | { |
| 150 | Ipv4Prefix alt_, |
| 151 | Ipv6Prefix alt_1 |
| 152 | } |
| 153 | with { |
| 154 | variant "name as uncapitalized"; |
| 155 | variant "useUnion"; |
| 156 | variant (alt_) "name as ''"; |
| 157 | variant (alt_1) "name as ''"; |
| 158 | }; |
| 159 | |
| 160 | |
| 161 | /* Pattern is not converted due to using character categories and blocks in patterns is not supported. */ |
| 162 | type XSD.String Ipv4Prefix |
| 163 | with { |
| 164 | variant "name as uncapitalized"; |
| 165 | }; |
| 166 | |
| 167 | |
| 168 | /* Pattern is not converted due to using character categories and blocks in patterns is not supported. */ |
| 169 | type XSD.String Ipv6Prefix |
| 170 | with { |
| 171 | variant "name as uncapitalized"; |
| 172 | }; |
| 173 | |
| 174 | |
| 175 | type XSD.AnySimpleType Default |
| 176 | with { |
| 177 | variant "name as uncapitalized"; |
| 178 | variant "attribute"; |
| 179 | }; |
| 180 | |
| 181 | |
| 182 | type XSD.Boolean Config |
| 183 | with { |
| 184 | variant "name as uncapitalized"; |
| 185 | variant "attribute"; |
| 186 | }; |
| 187 | |
| 188 | |
| 189 | type XSD.String ErrorMessage |
| 190 | with { |
| 191 | variant "name as uncapitalized"; |
| 192 | variant "element"; |
| 193 | }; |
| 194 | |
| 195 | |
| 196 | } |
| 197 | with { |
| 198 | encode "XML"; |
| 199 | variant "namespace as 'http://tail-f.com/ns/confd/1.0'"; |
| 200 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
| 201 | } |