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