src/share/classes/org/omg/CORBA/TCKind.java

Thu, 31 Aug 2017 18:10:36 +0800

author
aoqi
date
Thu, 31 Aug 2017 18:10:36 +0800
changeset 748
6845b95cba6b
parent 240
f90b3e014e83
parent 0
7ef37b2cdcad
permissions
-rw-r--r--

merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation. Oracle designates this
aoqi@0 8 * particular file as subject to the "Classpath" exception as provided
aoqi@0 9 * by Oracle in the LICENSE file that accompanied this code.
aoqi@0 10 *
aoqi@0 11 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 14 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 15 * accompanied this code).
aoqi@0 16 *
aoqi@0 17 * You should have received a copy of the GNU General Public License version
aoqi@0 18 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 20 *
aoqi@0 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 22 * or visit www.oracle.com if you need additional information or have any
aoqi@0 23 * questions.
aoqi@0 24 */
aoqi@0 25
aoqi@0 26 package org.omg.CORBA;
aoqi@0 27
aoqi@0 28
aoqi@0 29 /**
aoqi@0 30 * The Java mapping of the IDL enum <code>TCKind</code>, which
aoqi@0 31 * specifies the kind of a <code>TypeCode</code> object. There is
aoqi@0 32 * one kind for each primitive and essential IDL data type.
aoqi@0 33 * <P>
aoqi@0 34 * The class <code>TCKind</code> consists of:
aoqi@0 35 * <UL>
aoqi@0 36 * <LI>a set of <code>int</code> constants, one for each
aoqi@0 37 * kind of IDL data type. These <code>int</code> constants
aoqi@0 38 * make it possible to use a <code>switch</code> statement.
aoqi@0 39 * <LI>a set of <code>TCKind</code> constants, one for each
aoqi@0 40 * kind of IDL data type. The <code>value</code> field for
aoqi@0 41 * each <code>TCKind</code> instance is initialized with
aoqi@0 42 * the <code>int</code> constant that corresponds with
aoqi@0 43 * the IDL data type that the instance represents.
aoqi@0 44 * <LI>the method <code>from_int</code>for converting
aoqi@0 45 * an <code>int</code> to its
aoqi@0 46 * corresponding <code>TCKind</code> instance
aoqi@0 47 * <P>Example:
aoqi@0 48 * <PRE>
aoqi@0 49 * org.omg.CORBA.TCKind k = org.omg.CORBA.TCKind.from_int(
aoqi@0 50 * org.omg.CORBA.TCKind._tk_string);
aoqi@0 51 * </PRE>
aoqi@0 52 * The variable <code>k</code> represents the <code>TCKind</code>
aoqi@0 53 * instance for the IDL type <code>string</code>, which is
aoqi@0 54 * <code>tk_string</code>.
aoqi@0 55 * <P>
aoqi@0 56 * <LI>the method <code>value</code> for accessing the
aoqi@0 57 * <code>_value</code> field of a <code>TCKind</code> constant
aoqi@0 58 * <P>Example:
aoqi@0 59 * <PRE>
aoqi@0 60 * int i = org.omg.CORBA.TCKind.tk_char.value();
aoqi@0 61 * </PRE>
aoqi@0 62 * The variable <code>i</code> represents 9, the value for the
aoqi@0 63 * IDL data type <code>char</code>.
aoqi@0 64 * </UL>
aoqi@0 65 * <P>The <code>value</code> field of a <code>TCKind</code> instance
aoqi@0 66 * is the CDR encoding used for a <code>TypeCode</code> object in
aoqi@0 67 * an IIOP message.
aoqi@0 68 */
aoqi@0 69
aoqi@0 70 public class TCKind {
aoqi@0 71
aoqi@0 72 /**
aoqi@0 73 * The <code>int</code> constant for a <code>null</code> IDL data type.
aoqi@0 74 */
aoqi@0 75 public static final int _tk_null = 0;
aoqi@0 76
aoqi@0 77 /**
aoqi@0 78 * The <code>int</code> constant for the IDL data type <code>void</code>.
aoqi@0 79 */
aoqi@0 80 public static final int _tk_void = 1;
aoqi@0 81
aoqi@0 82 /**
aoqi@0 83 * The <code>int</code> constant for the IDL data type <code>short</code>.
aoqi@0 84 */
aoqi@0 85 public static final int _tk_short = 2;
aoqi@0 86
aoqi@0 87 /**
aoqi@0 88 * The <code>int</code> constant for the IDL data type <code>long</code>.
aoqi@0 89 */
aoqi@0 90 public static final int _tk_long = 3;
aoqi@0 91
aoqi@0 92 /**
aoqi@0 93 * The <code>int</code> constant for the IDL data type <code>ushort</code>.
aoqi@0 94 */
aoqi@0 95 public static final int _tk_ushort = 4;
aoqi@0 96
aoqi@0 97 /**
aoqi@0 98 * The <code>int</code> constant for the IDL data type <code>ulong</code>.
aoqi@0 99 */
aoqi@0 100 public static final int _tk_ulong = 5;
aoqi@0 101
aoqi@0 102 /**
aoqi@0 103 * The <code>int</code> constant for the IDL data type <code>float</code>.
aoqi@0 104 */
aoqi@0 105 public static final int _tk_float = 6;
aoqi@0 106
aoqi@0 107 /**
aoqi@0 108 * The <code>int</code> constant for the IDL data type <code>double</code>.
aoqi@0 109 */
aoqi@0 110 public static final int _tk_double = 7;
aoqi@0 111
aoqi@0 112 /**
aoqi@0 113 * The <code>int</code> constant for the IDL data type <code>boolean</code>.
aoqi@0 114 */
aoqi@0 115 public static final int _tk_boolean = 8;
aoqi@0 116
aoqi@0 117 /**
aoqi@0 118 * The <code>int</code> constant for the IDL data type <code>char</code>.
aoqi@0 119 */
aoqi@0 120 public static final int _tk_char = 9;
aoqi@0 121
aoqi@0 122 /**
aoqi@0 123 * The <code>int</code> constant for the IDL data type <code>octet</code>.
aoqi@0 124 */
aoqi@0 125 public static final int _tk_octet = 10;
aoqi@0 126
aoqi@0 127 /**
aoqi@0 128 * The <code>int</code> constant for the IDL data type <code>any</code>.
aoqi@0 129 */
aoqi@0 130 public static final int _tk_any = 11;
aoqi@0 131
aoqi@0 132 /**
aoqi@0 133 * The <code>int</code> constant for the IDL data type <code>TypeCode</code>.
aoqi@0 134 */
aoqi@0 135 public static final int _tk_TypeCode = 12;
aoqi@0 136
aoqi@0 137 /**
aoqi@0 138 * The <code>int</code> constant for the IDL data type <code>Principal</code>.
aoqi@0 139 */
aoqi@0 140 public static final int _tk_Principal = 13;
aoqi@0 141
aoqi@0 142 /**
aoqi@0 143 * The <code>int</code> constant for the IDL data type <code>objref</code>.
aoqi@0 144 */
aoqi@0 145 public static final int _tk_objref = 14;
aoqi@0 146
aoqi@0 147 /**
aoqi@0 148 * The <code>int</code> constant for the IDL data type <code>struct</code>.
aoqi@0 149 */
aoqi@0 150 public static final int _tk_struct = 15;
aoqi@0 151
aoqi@0 152 /**
aoqi@0 153 * The <code>int</code> constant for the IDL data type <code>union</code>.
aoqi@0 154 */
aoqi@0 155 public static final int _tk_union = 16;
aoqi@0 156
aoqi@0 157 /**
aoqi@0 158 * The <code>int</code> constant for the IDL data type <code>enum</code>.
aoqi@0 159 */
aoqi@0 160 public static final int _tk_enum = 17;
aoqi@0 161
aoqi@0 162 /**
aoqi@0 163 * The <code>int</code> constant for the IDL data type <code>string</code>.
aoqi@0 164 */
aoqi@0 165 public static final int _tk_string = 18;
aoqi@0 166
aoqi@0 167 /**
aoqi@0 168 * The <code>int</code> constant for the IDL data type <code>sequence</code>.
aoqi@0 169 */
aoqi@0 170 public static final int _tk_sequence = 19;
aoqi@0 171
aoqi@0 172 /**
aoqi@0 173 * The <code>int</code> constant for the IDL data type <code>array</code>.
aoqi@0 174 */
aoqi@0 175 public static final int _tk_array = 20;
aoqi@0 176
aoqi@0 177 /**
aoqi@0 178 * The <code>int</code> constant for the IDL data type <code>alias</code>.
aoqi@0 179 */
aoqi@0 180 public static final int _tk_alias = 21;
aoqi@0 181
aoqi@0 182 /**
aoqi@0 183 * The <code>int</code> constant for the IDL data type <code>except</code>.
aoqi@0 184 */
aoqi@0 185 public static final int _tk_except = 22;
aoqi@0 186
aoqi@0 187 /**
aoqi@0 188 * The <code>int</code> constant for the IDL data type <code>longlong</code>.
aoqi@0 189 */
aoqi@0 190 public static final int _tk_longlong = 23;
aoqi@0 191
aoqi@0 192 /**
aoqi@0 193 * The <code>int</code> constant for the IDL data type <code>ulonglong</code>.
aoqi@0 194 */
aoqi@0 195 public static final int _tk_ulonglong = 24;
aoqi@0 196
aoqi@0 197 /**
aoqi@0 198 * The <code>int</code> constant for the IDL data type <code>longdouble</code>.
aoqi@0 199 */
aoqi@0 200 public static final int _tk_longdouble = 25;
aoqi@0 201
aoqi@0 202 /**
aoqi@0 203 * The <code>int</code> constant for the IDL data type <code>wchar</code>.
aoqi@0 204 */
aoqi@0 205 public static final int _tk_wchar = 26;
aoqi@0 206
aoqi@0 207 /**
aoqi@0 208 * The <code>int</code> constant for the IDL data type <code>wstring</code>.
aoqi@0 209 */
aoqi@0 210 public static final int _tk_wstring = 27;
aoqi@0 211
aoqi@0 212 /**
aoqi@0 213 * The <code>int</code> constant for the IDL data type <code>fixed</code>.
aoqi@0 214 */
aoqi@0 215 public static final int _tk_fixed = 28;
aoqi@0 216
aoqi@0 217 /**
aoqi@0 218 * The <code>int</code> constant for the IDL data type <code>value</code>.
aoqi@0 219 */
aoqi@0 220 public static final int _tk_value = 29; // orbos 98-01-18: Objects By Value
aoqi@0 221
aoqi@0 222 /**
aoqi@0 223 * The <code>int</code> constant for the IDL data type <code>value_box</code>.
aoqi@0 224 */
aoqi@0 225 public static final int _tk_value_box = 30; // orbos 98-01-18: Objects By Value
aoqi@0 226
aoqi@0 227 /**
aoqi@0 228 * The <code>int</code> constant for the IDL data type <code>native</code>.
aoqi@0 229 */
aoqi@0 230 public static final int _tk_native = 31; // Verify
aoqi@0 231
aoqi@0 232 /**
aoqi@0 233 * The <code>int</code> constant for the IDL data type <code>abstract interface</code>.
aoqi@0 234 */
aoqi@0 235 public static final int _tk_abstract_interface = 32;
aoqi@0 236
aoqi@0 237
aoqi@0 238 /**
aoqi@0 239 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 240 * initialized with <code>TCKind._tk_null</code>.
aoqi@0 241 */
aoqi@0 242 public static final TCKind tk_null = new TCKind(_tk_null);
aoqi@0 243
aoqi@0 244 /**
aoqi@0 245 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 246 * initialized with <code>TCKind._tk_void</code>.
aoqi@0 247 */
aoqi@0 248 public static final TCKind tk_void = new TCKind(_tk_void);
aoqi@0 249
aoqi@0 250 /**
aoqi@0 251 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 252 * initialized with <code>TCKind._tk_short</code>.
aoqi@0 253 */
aoqi@0 254 public static final TCKind tk_short = new TCKind(_tk_short);
aoqi@0 255
aoqi@0 256 /**
aoqi@0 257 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 258 * initialized with <code>TCKind._tk_long</code>.
aoqi@0 259 */
aoqi@0 260 public static final TCKind tk_long = new TCKind(_tk_long);
aoqi@0 261
aoqi@0 262 /**
aoqi@0 263 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 264 * initialized with <code>TCKind._tk_ushort</code>.
aoqi@0 265 */
aoqi@0 266 public static final TCKind tk_ushort = new TCKind(_tk_ushort);
aoqi@0 267
aoqi@0 268 /**
aoqi@0 269 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 270 * initialized with <code>TCKind._tk_ulong</code>.
aoqi@0 271 */
aoqi@0 272 public static final TCKind tk_ulong = new TCKind(_tk_ulong);
aoqi@0 273
aoqi@0 274 /**
aoqi@0 275 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 276 * initialized with <code>TCKind._tk_float</code>.
aoqi@0 277 */
aoqi@0 278 public static final TCKind tk_float = new TCKind(_tk_float);
aoqi@0 279
aoqi@0 280 /**
aoqi@0 281 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 282 * initialized with <code>TCKind._tk_double</code>.
aoqi@0 283 */
aoqi@0 284 public static final TCKind tk_double = new TCKind(_tk_double);
aoqi@0 285
aoqi@0 286 /**
aoqi@0 287 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 288 * initialized with <code>TCKind._tk_boolean</code>.
aoqi@0 289 */
aoqi@0 290 public static final TCKind tk_boolean = new TCKind(_tk_boolean);
aoqi@0 291
aoqi@0 292 /**
aoqi@0 293 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 294 * initialized with <code>TCKind._tk_char</code>.
aoqi@0 295 */
aoqi@0 296 public static final TCKind tk_char = new TCKind(_tk_char);
aoqi@0 297
aoqi@0 298 /**
aoqi@0 299 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 300 * initialized with <code>TCKind._tk_octet</code>.
aoqi@0 301 */
aoqi@0 302 public static final TCKind tk_octet = new TCKind(_tk_octet);
aoqi@0 303
aoqi@0 304 /**
aoqi@0 305 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 306 * initialized with <code>TCKind._tk_any</code>.
aoqi@0 307 */
aoqi@0 308 public static final TCKind tk_any = new TCKind(_tk_any);
aoqi@0 309
aoqi@0 310 /**
aoqi@0 311 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 312 * initialized with <code>TCKind._tk_TypeCode</code>.
aoqi@0 313 */
aoqi@0 314 public static final TCKind tk_TypeCode = new TCKind(_tk_TypeCode);
aoqi@0 315
aoqi@0 316 /**
aoqi@0 317 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 318 * initialized with <code>TCKind._tk_Principal</code>.
aoqi@0 319 */
aoqi@0 320 public static final TCKind tk_Principal = new TCKind(_tk_Principal);
aoqi@0 321
aoqi@0 322 /**
aoqi@0 323 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 324 * initialized with <code>TCKind._tk_objref</code>.
aoqi@0 325 */
aoqi@0 326 public static final TCKind tk_objref = new TCKind(_tk_objref);
aoqi@0 327
aoqi@0 328 /**
aoqi@0 329 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 330 * initialized with <code>TCKind._tk_struct</code>.
aoqi@0 331 */
aoqi@0 332 public static final TCKind tk_struct = new TCKind(_tk_struct);
aoqi@0 333
aoqi@0 334 /**
aoqi@0 335 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 336 * initialized with <code>TCKind._tk_union</code>.
aoqi@0 337 */
aoqi@0 338 public static final TCKind tk_union = new TCKind(_tk_union);
aoqi@0 339
aoqi@0 340 /**
aoqi@0 341 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 342 * initialized with <code>TCKind._tk_enum</code>.
aoqi@0 343 */
aoqi@0 344 public static final TCKind tk_enum = new TCKind(_tk_enum);
aoqi@0 345
aoqi@0 346 /**
aoqi@0 347 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 348 * initialized with <code>TCKind._tk_string</code>.
aoqi@0 349 */
aoqi@0 350 public static final TCKind tk_string = new TCKind(_tk_string);
aoqi@0 351
aoqi@0 352 /**
aoqi@0 353 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 354 * initialized with <code>TCKind._tk_sequence</code>.
aoqi@0 355 */
aoqi@0 356 public static final TCKind tk_sequence = new TCKind(_tk_sequence);
aoqi@0 357
aoqi@0 358 /**
aoqi@0 359 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 360 * initialized with <code>TCKind._tk_array</code>.
aoqi@0 361 */
aoqi@0 362 public static final TCKind tk_array = new TCKind(_tk_array);
aoqi@0 363
aoqi@0 364 /**
aoqi@0 365 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 366 * initialized with <code>TCKind._tk_alias</code>.
aoqi@0 367 */
aoqi@0 368 public static final TCKind tk_alias = new TCKind(_tk_alias);
aoqi@0 369
aoqi@0 370 /**
aoqi@0 371 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 372 * initialized with <code>TCKind._tk_except</code>.
aoqi@0 373 */
aoqi@0 374 public static final TCKind tk_except = new TCKind(_tk_except);
aoqi@0 375
aoqi@0 376 /**
aoqi@0 377 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 378 * initialized with <code>TCKind._tk_longlong</code>.
aoqi@0 379 */
aoqi@0 380 public static final TCKind tk_longlong = new TCKind(_tk_longlong);
aoqi@0 381
aoqi@0 382 /**
aoqi@0 383 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 384 * initialized with <code>TCKind._tk_ulonglong</code>.
aoqi@0 385 */
aoqi@0 386 public static final TCKind tk_ulonglong = new TCKind(_tk_ulonglong);
aoqi@0 387
aoqi@0 388 /**
aoqi@0 389 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 390 * initialized with <code>TCKind._tk_longdouble</code>.
aoqi@0 391 */
aoqi@0 392 public static final TCKind tk_longdouble = new TCKind(_tk_longdouble);
aoqi@0 393
aoqi@0 394 /**
aoqi@0 395 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 396 * initialized with <code>TCKind._tk_wchar</code>.
aoqi@0 397 */
aoqi@0 398 public static final TCKind tk_wchar = new TCKind(_tk_wchar);
aoqi@0 399
aoqi@0 400 /**
aoqi@0 401 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 402 * initialized with <code>TCKind._tk_wstring</code>.
aoqi@0 403 */
aoqi@0 404 public static final TCKind tk_wstring = new TCKind(_tk_wstring);
aoqi@0 405
aoqi@0 406 /**
aoqi@0 407 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 408 * initialized with <code>TCKind._tk_fixed</code>.
aoqi@0 409 */
aoqi@0 410 public static final TCKind tk_fixed = new TCKind(_tk_fixed);
aoqi@0 411
aoqi@0 412 // orbos 98-01-18: Objects By Value -- begin
aoqi@0 413
aoqi@0 414 /**
aoqi@0 415 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 416 * initialized with <code>TCKind._tk_value</code>.
aoqi@0 417 */
aoqi@0 418 public static final TCKind tk_value = new TCKind(_tk_value);
aoqi@0 419
aoqi@0 420 /**
aoqi@0 421 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 422 * initialized with <code>TCKind._tk_value_box</code>.
aoqi@0 423 */
aoqi@0 424 public static final TCKind tk_value_box = new TCKind(_tk_value_box);
aoqi@0 425 // orbos 98-01-18: Objects By Value -- end
aoqi@0 426
aoqi@0 427 /**
aoqi@0 428 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 429 * initialized with <code>TCKind._tk_native</code>.
aoqi@0 430 */
aoqi@0 431 public static final TCKind tk_native = new TCKind(_tk_native);
aoqi@0 432
aoqi@0 433 /**
aoqi@0 434 * The <code>TCKind</code> constant whose <code>value</code> field is
aoqi@0 435 * initialized with <code>TCKind._tk_abstract_interface</code>.
aoqi@0 436 */
aoqi@0 437 public static final TCKind tk_abstract_interface = new TCKind(_tk_abstract_interface);
aoqi@0 438
aoqi@0 439
aoqi@0 440
aoqi@0 441
aoqi@0 442 /**
aoqi@0 443 * Retrieves the value of this <code>TCKind</code> instance.
aoqi@0 444 *
aoqi@0 445 * @return the <code>int</code> that represents the kind of
aoqi@0 446 * IDL data type for this <code>TCKind</code> instance
aoqi@0 447 */
aoqi@0 448 public int value() {
aoqi@0 449 return _value;
aoqi@0 450 }
aoqi@0 451
aoqi@0 452 /**
aoqi@0 453 * Converts the given <code>int</code> to the corresponding
aoqi@0 454 * <code>TCKind</code> instance.
aoqi@0 455 *
aoqi@0 456 * @param i the <code>int</code> to convert. It must be one of
aoqi@0 457 * the <code>int</code> constants in the class
aoqi@0 458 * <code>TCKind</code>.
aoqi@0 459 * @return the <code>TCKind</code> instance whose <code>value</code>
aoqi@0 460 * field matches the given <code>int</code>
aoqi@0 461 * @exception BAD_PARAM if the given <code>int</code> does not
aoqi@0 462 * match the <code>_value</code> field of
aoqi@0 463 * any <code>TCKind</code> instance
aoqi@0 464 */
aoqi@0 465 public static TCKind from_int(int i) {
aoqi@0 466 switch (i) {
aoqi@0 467 case _tk_null:
aoqi@0 468 return tk_null;
aoqi@0 469 case _tk_void:
aoqi@0 470 return tk_void;
aoqi@0 471 case _tk_short:
aoqi@0 472 return tk_short;
aoqi@0 473 case _tk_long:
aoqi@0 474 return tk_long;
aoqi@0 475 case _tk_ushort:
aoqi@0 476 return tk_ushort;
aoqi@0 477 case _tk_ulong:
aoqi@0 478 return tk_ulong;
aoqi@0 479 case _tk_float:
aoqi@0 480 return tk_float;
aoqi@0 481 case _tk_double:
aoqi@0 482 return tk_double;
aoqi@0 483 case _tk_boolean:
aoqi@0 484 return tk_boolean;
aoqi@0 485 case _tk_char:
aoqi@0 486 return tk_char;
aoqi@0 487 case _tk_octet:
aoqi@0 488 return tk_octet;
aoqi@0 489 case _tk_any:
aoqi@0 490 return tk_any;
aoqi@0 491 case _tk_TypeCode:
aoqi@0 492 return tk_TypeCode;
aoqi@0 493 case _tk_Principal:
aoqi@0 494 return tk_Principal;
aoqi@0 495 case _tk_objref:
aoqi@0 496 return tk_objref;
aoqi@0 497 case _tk_struct:
aoqi@0 498 return tk_struct;
aoqi@0 499 case _tk_union:
aoqi@0 500 return tk_union;
aoqi@0 501 case _tk_enum:
aoqi@0 502 return tk_enum;
aoqi@0 503 case _tk_string:
aoqi@0 504 return tk_string;
aoqi@0 505 case _tk_sequence:
aoqi@0 506 return tk_sequence;
aoqi@0 507 case _tk_array:
aoqi@0 508 return tk_array;
aoqi@0 509 case _tk_alias:
aoqi@0 510 return tk_alias;
aoqi@0 511 case _tk_except:
aoqi@0 512 return tk_except;
aoqi@0 513 case _tk_longlong:
aoqi@0 514 return tk_longlong;
aoqi@0 515 case _tk_ulonglong:
aoqi@0 516 return tk_ulonglong;
aoqi@0 517 case _tk_longdouble:
aoqi@0 518 return tk_longdouble;
aoqi@0 519 case _tk_wchar:
aoqi@0 520 return tk_wchar;
aoqi@0 521 case _tk_wstring:
aoqi@0 522 return tk_wstring;
aoqi@0 523 case _tk_fixed:
aoqi@0 524 return tk_fixed;
aoqi@0 525 case _tk_value: // orbos 98-01-18: Objects By Value
aoqi@0 526 return tk_value;
aoqi@0 527 case _tk_value_box: // orbos 98-01-18: Objects By Value
aoqi@0 528 return tk_value_box;
aoqi@0 529 case _tk_native:
aoqi@0 530 return tk_native;
aoqi@0 531 case _tk_abstract_interface:
aoqi@0 532 return tk_abstract_interface;
aoqi@0 533 default:
aoqi@0 534 throw new org.omg.CORBA.BAD_PARAM();
aoqi@0 535 }
aoqi@0 536 }
aoqi@0 537
aoqi@0 538
aoqi@0 539 /**
aoqi@0 540 * Creates a new <code>TCKind</code> instance initialized with the given
aoqi@0 541 * <code>int</code>.
aoqi@0 542 * @deprecated Do not use this constructor as this method should be private
aoqi@0 543 * according to the OMG specification. Use {@link #from_int(int)} instead.
aoqi@0 544 *
aoqi@0 545 * @param _value the <code>int</code> to convert. It must be one of
aoqi@0 546 * the <code>int</code> constants in the class
aoqi@0 547 * <code>TCKind</code>.
aoqi@0 548 */
aoqi@0 549 @Deprecated
aoqi@0 550 protected TCKind(int _value){
aoqi@0 551 this._value = _value;
aoqi@0 552 }
aoqi@0 553 private int _value;
aoqi@0 554 }

mercurial