TCKind.java revision 0
0N/A * Copyright 1997-2004 Sun Microsystems, Inc. All Rights Reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. Sun designates this 0N/A * particular file as subject to the "Classpath" exception as provided 0N/A * by Sun in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 0N/A * CA 95054 USA or visit www.sun.com if you need additional information or 0N/A * have any questions. 0N/A * The Java mapping of the IDL enum <code>TCKind</code>, which 0N/A * specifies the kind of a <code>TypeCode</code> object. There is 0N/A * one kind for each primitive and essential IDL data type. 0N/A * The class <code>TCKind</code> consists of: 0N/A * <LI>a set of <code>int</code> constants, one for each 0N/A * kind of IDL data type. These <code>int</code> constants 0N/A * make it possible to use a <code>switch</code> statement. 0N/A * <LI>a set of <code>TCKind</code> constants, one for each 0N/A * kind of IDL data type. The <code>value</code> field for 0N/A * each <code>TCKind</code> instance is initialized with 0N/A * the <code>int</code> constant that corresponds with 0N/A * the IDL data type that the instance represents. 0N/A * <LI>the method <code>from_int</code>for converting 0N/A * an <code>int</code> to its 0N/A * corresponding <code>TCKind</code> instance 0N/A * org.omg.CORBA.TCKind k = org.omg.CORBA.TCKind.from_int( 0N/A * org.omg.CORBA.TCKind._tk_string); 0N/A * The variable <code>k</code> represents the <code>TCKind</code> 0N/A * instance for the IDL type <code>string</code>, which is 0N/A * <code>tk_string</code>. 0N/A * <LI>the method <code>value</code> for accessing the 0N/A * <code>_value</code> field of a <code>TCKind</code> constant 0N/A * int i = org.omg.CORBA.TCKind.tk_char.value(); 0N/A * The variable <code>i</code> represents 9, the value for the 0N/A * IDL data type <code>char</code>. 0N/A * <P>The <code>value</code> field of a <code>TCKind</code> instance 0N/A * is the CDR encoding used for a <code>TypeCode</code> object in 0N/A * The <code>int</code> constant for a <code>null</code> IDL data type. 0N/A * The <code>int</code> constant for the IDL data type <code>void</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>short</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>long</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>ushort</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>ulong</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>float</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>double</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>boolean</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>char</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>octet</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>any</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>TypeCode</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>Principal</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>objref</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>struct</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>union</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>enum</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>string</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>sequence</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>array</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>alias</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>except</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>longlong</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>ulonglong</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>longdouble</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>wchar</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>wstring</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>fixed</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>value</code>. 0N/A public static final int _tk_value =
29;
// orbos 98-01-18: Objects By Value 0N/A * The <code>int</code> constant for the IDL data type <code>value_box</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>native</code>. 0N/A * The <code>int</code> constant for the IDL data type <code>abstract interface</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_null</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_void</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_short</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_long</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_ushort</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_ulong</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_float</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_double</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_boolean</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_char</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_octet</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_any</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_TypeCode</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_Principal</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_objref</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_struct</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_union</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_enum</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_string</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_sequence</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_array</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_alias</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_except</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_longlong</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_ulonglong</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_longdouble</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_wchar</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_wstring</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_fixed</code>. 0N/A // orbos 98-01-18: Objects By Value -- begin 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_value</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_value_box</code>. 0N/A // orbos 98-01-18: Objects By Value -- end 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_native</code>. 0N/A * The <code>TCKind</code> constant whose <code>value</code> field is 0N/A * initialized with <code>TCKind._tk_abstract_interface</code>. 0N/A * Retrieves the value of this <code>TCKind</code> instance. 0N/A * @return the <code>int</code> that represents the kind of 0N/A * IDL data type for this <code>TCKind</code> instance 0N/A * Converts the given <code>int</code> to the corresponding 0N/A * <code>TCKind</code> instance. 0N/A * @param i the <code>int</code> to convert. It must be one of 0N/A * the <code>int</code> constants in the class 0N/A * <code>TCKind</code>. 0N/A * @return the <code>TCKind</code> instance whose <code>value</code> 0N/A * field matches the given <code>int</code> 0N/A * @exception BAD_PARAM if the given <code>int</code> does not 0N/A * match the <code>_value</code> field of 0N/A * any <code>TCKind</code> instance 0N/A * Creates a new <code>TCKind</code> instance initialized with the given 0N/A * @deprecated Do not use this constructor as this method should be private 0N/A * according to the OMG specification. Use {@link #from_int(int)} instead. 0N/A * @param _value the <code>int</code> to convert. It must be one of 0N/A * the <code>int</code> constants in the class 0N/A * <code>TCKind</code>. 0N/A * @return a new <code>TCKind</code> instance whose <code>value</code> 0N/A * field matches the given <code>int</code>