1 7 8 package org.omg.CORBA; 9 10 11 51 52 public class TCKind { 53 54 57 public static final int _tk_null = 0; 58 59 62 public static final int _tk_void = 1; 63 64 67 public static final int _tk_short = 2; 68 69 72 public static final int _tk_long = 3; 73 74 77 public static final int _tk_ushort = 4; 78 79 82 public static final int _tk_ulong = 5; 83 84 87 public static final int _tk_float = 6; 88 89 92 public static final int _tk_double = 7; 93 94 97 public static final int _tk_boolean = 8; 98 99 102 public static final int _tk_char = 9; 103 104 107 public static final int _tk_octet = 10; 108 109 112 public static final int _tk_any = 11; 113 114 117 public static final int _tk_TypeCode = 12; 118 119 122 public static final int _tk_Principal = 13; 123 124 127 public static final int _tk_objref = 14; 128 129 132 public static final int _tk_struct = 15; 133 134 137 public static final int _tk_union = 16; 138 139 142 public static final int _tk_enum = 17; 143 144 147 public static final int _tk_string = 18; 148 149 152 public static final int _tk_sequence = 19; 153 154 157 public static final int _tk_array = 20; 158 159 162 public static final int _tk_alias = 21; 163 164 167 public static final int _tk_except = 22; 168 169 172 public static final int _tk_longlong = 23; 173 174 177 public static final int _tk_ulonglong = 24; 178 179 182 public static final int _tk_longdouble = 25; 183 184 187 public static final int _tk_wchar = 26; 188 189 192 public static final int _tk_wstring = 27; 193 194 197 public static final int _tk_fixed = 28; 198 199 202 public static final int _tk_value = 29; 204 207 public static final int _tk_value_box = 30; 209 212 public static final int _tk_native = 31; 214 217 public static final int _tk_abstract_interface = 32; 218 219 220 224 public static final TCKind tk_null = new TCKind (_tk_null); 225 226 230 public static final TCKind tk_void = new TCKind (_tk_void); 231 232 236 public static final TCKind tk_short = new TCKind (_tk_short); 237 238 242 public static final TCKind tk_long = new TCKind (_tk_long); 243 244 248 public static final TCKind tk_ushort = new TCKind (_tk_ushort); 249 250 254 public static final TCKind tk_ulong = new TCKind (_tk_ulong); 255 256 260 public static final TCKind tk_float = new TCKind (_tk_float); 261 262 266 public static final TCKind tk_double = new TCKind (_tk_double); 267 268 272 public static final TCKind tk_boolean = new TCKind (_tk_boolean); 273 274 278 public static final TCKind tk_char = new TCKind (_tk_char); 279 280 284 public static final TCKind tk_octet = new TCKind (_tk_octet); 285 286 290 public static final TCKind tk_any = new TCKind (_tk_any); 291 292 296 public static final TCKind tk_TypeCode = new TCKind (_tk_TypeCode); 297 298 302 public static final TCKind tk_Principal = new TCKind (_tk_Principal); 303 304 308 public static final TCKind tk_objref = new TCKind (_tk_objref); 309 310 314 public static final TCKind tk_struct = new TCKind (_tk_struct); 315 316 320 public static final TCKind tk_union = new TCKind (_tk_union); 321 322 326 public static final TCKind tk_enum = new TCKind (_tk_enum); 327 328 332 public static final TCKind tk_string = new TCKind (_tk_string); 333 334 338 public static final TCKind tk_sequence = new TCKind (_tk_sequence); 339 340 344 public static final TCKind tk_array = new TCKind (_tk_array); 345 346 350 public static final TCKind tk_alias = new TCKind (_tk_alias); 351 352 356 public static final TCKind tk_except = new TCKind (_tk_except); 357 358 362 public static final TCKind tk_longlong = new TCKind (_tk_longlong); 363 364 368 public static final TCKind tk_ulonglong = new TCKind (_tk_ulonglong); 369 370 374 public static final TCKind tk_longdouble = new TCKind (_tk_longdouble); 375 376 380 public static final TCKind tk_wchar = new TCKind (_tk_wchar); 381 382 386 public static final TCKind tk_wstring = new TCKind (_tk_wstring); 387 388 392 public static final TCKind tk_fixed = new TCKind (_tk_fixed); 393 394 396 400 public static final TCKind tk_value = new TCKind (_tk_value); 401 402 406 public static final TCKind tk_value_box = new TCKind (_tk_value_box); 407 409 413 public static final TCKind tk_native = new TCKind (_tk_native); 414 415 419 public static final TCKind tk_abstract_interface = new TCKind (_tk_abstract_interface); 420 421 422 423 424 430 public int value() { 431 return _value; 432 } 433 434 447 public static TCKind from_int(int i) { 448 switch (i) { 449 case _tk_null: 450 return tk_null; 451 case _tk_void: 452 return tk_void; 453 case _tk_short: 454 return tk_short; 455 case _tk_long: 456 return tk_long; 457 case _tk_ushort: 458 return tk_ushort; 459 case _tk_ulong: 460 return tk_ulong; 461 case _tk_float: 462 return tk_float; 463 case _tk_double: 464 return tk_double; 465 case _tk_boolean: 466 return tk_boolean; 467 case _tk_char: 468 return tk_char; 469 case _tk_octet: 470 return tk_octet; 471 case _tk_any: 472 return tk_any; 473 case _tk_TypeCode: 474 return tk_TypeCode; 475 case _tk_Principal: 476 return tk_Principal; 477 case _tk_objref: 478 return tk_objref; 479 case _tk_struct: 480 return tk_struct; 481 case _tk_union: 482 return tk_union; 483 case _tk_enum: 484 return tk_enum; 485 case _tk_string: 486 return tk_string; 487 case _tk_sequence: 488 return tk_sequence; 489 case _tk_array: 490 return tk_array; 491 case _tk_alias: 492 return tk_alias; 493 case _tk_except: 494 return tk_except; 495 case _tk_longlong: 496 return tk_longlong; 497 case _tk_ulonglong: 498 return tk_ulonglong; 499 case _tk_longdouble: 500 return tk_longdouble; 501 case _tk_wchar: 502 return tk_wchar; 503 case _tk_wstring: 504 return tk_wstring; 505 case _tk_fixed: 506 return tk_fixed; 507 case _tk_value: return tk_value; 509 case _tk_value_box: return tk_value_box; 511 case _tk_native: 512 return tk_native; 513 case _tk_abstract_interface: 514 return tk_abstract_interface; 515 default: 516 throw new org.omg.CORBA.BAD_PARAM (); 517 } 518 } 519 520 521 533 @Deprecated 534 protected TCKind(int _value){ 535 this._value = _value; 536 } 537 private int _value; 538 } 539 | Popular Tags |