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