- java.lang.Object
-
- org.omg.CORBA.TCKind
-
public class TCKind extends Object
The Java mapping of the IDL enumTCKind, which specifies the kind of aTypeCodeobject. There is one kind for each primitive and essential IDL data type.The class
TCKindconsists of:- a set of
intconstants, one for each kind of IDL data type. Theseintconstants make it possible to use aswitchstatement. - a set of
TCKindconstants, one for each kind of IDL data type. Thevaluefield for eachTCKindinstance is initialized with theintconstant that corresponds with the IDL data type that the instance represents. - the method
from_intfor converting anintto its correspondingTCKindinstanceExample:
org.omg.CORBA.TCKind k = org.omg.CORBA.TCKind.from_int( org.omg.CORBA.TCKind._tk_string);The variablekrepresents theTCKindinstance for the IDL typestring, which istk_string. - the method
valuefor accessing the_valuefield of aTCKindconstantExample:
int i = org.omg.CORBA.TCKind.tk_char.value();
The variableirepresents 9, the value for the IDL data typechar.
The
valuefield of aTCKindinstance is the CDR encoding used for aTypeCodeobject in an IIOP message. - a set of
-
-
Field Summary
Fields Modifier and Type Field Description static int_tk_abstract_interfaceTheintconstant for the IDL data typeabstract interface.static int_tk_aliasTheintconstant for the IDL data typealias.static int_tk_anyTheintconstant for the IDL data typeany.static int_tk_arrayTheintconstant for the IDL data typearray.static int_tk_booleanTheintconstant for the IDL data typeboolean.static int_tk_charTheintconstant for the IDL data typechar.static int_tk_doubleTheintconstant for the IDL data typedouble.static int_tk_enumTheintconstant for the IDL data typeenum.static int_tk_exceptTheintconstant for the IDL data typeexcept.static int_tk_fixedTheintconstant for the IDL data typefixed.static int_tk_floatTheintconstant for the IDL data typefloat.static int_tk_longTheintconstant for the IDL data typelong.static int_tk_longdoubleTheintconstant for the IDL data typelongdouble.static int_tk_longlongTheintconstant for the IDL data typelonglong.static int_tk_nativeTheintconstant for the IDL data typenative.static int_tk_nullTheintconstant for anullIDL data type.static int_tk_objrefTheintconstant for the IDL data typeobjref.static int_tk_octetTheintconstant for the IDL data typeoctet.static int_tk_PrincipalTheintconstant for the IDL data typePrincipal.static int_tk_sequenceTheintconstant for the IDL data typesequence.static int_tk_shortTheintconstant for the IDL data typeshort.static int_tk_stringTheintconstant for the IDL data typestring.static int_tk_structTheintconstant for the IDL data typestruct.static int_tk_TypeCodeTheintconstant for the IDL data typeTypeCode.static int_tk_ulongTheintconstant for the IDL data typeulong.static int_tk_ulonglongTheintconstant for the IDL data typeulonglong.static int_tk_unionTheintconstant for the IDL data typeunion.static int_tk_ushortTheintconstant for the IDL data typeushort.static int_tk_valueTheintconstant for the IDL data typevalue.static int_tk_value_boxTheintconstant for the IDL data typevalue_box.static int_tk_voidTheintconstant for the IDL data typevoid.static int_tk_wcharTheintconstant for the IDL data typewchar.static int_tk_wstringTheintconstant for the IDL data typewstring.static TCKindtk_abstract_interfaceTheTCKindconstant whosevaluefield is initialized withTCKind._tk_abstract_interface.static TCKindtk_aliasTheTCKindconstant whosevaluefield is initialized withTCKind._tk_alias.static TCKindtk_anyTheTCKindconstant whosevaluefield is initialized withTCKind._tk_any.static TCKindtk_arrayTheTCKindconstant whosevaluefield is initialized withTCKind._tk_array.static TCKindtk_booleanTheTCKindconstant whosevaluefield is initialized withTCKind._tk_boolean.static TCKindtk_charTheTCKindconstant whosevaluefield is initialized withTCKind._tk_char.static TCKindtk_doubleTheTCKindconstant whosevaluefield is initialized withTCKind._tk_double.static TCKindtk_enumTheTCKindconstant whosevaluefield is initialized withTCKind._tk_enum.static TCKindtk_exceptTheTCKindconstant whosevaluefield is initialized withTCKind._tk_except.static TCKindtk_fixedTheTCKindconstant whosevaluefield is initialized withTCKind._tk_fixed.static TCKindtk_floatTheTCKindconstant whosevaluefield is initialized withTCKind._tk_float.static TCKindtk_longTheTCKindconstant whosevaluefield is initialized withTCKind._tk_long.static TCKindtk_longdoubleTheTCKindconstant whosevaluefield is initialized withTCKind._tk_longdouble.static TCKindtk_longlongTheTCKindconstant whosevaluefield is initialized withTCKind._tk_longlong.static TCKindtk_nativeTheTCKindconstant whosevaluefield is initialized withTCKind._tk_native.static TCKindtk_nullTheTCKindconstant whosevaluefield is initialized withTCKind._tk_null.static TCKindtk_objrefTheTCKindconstant whosevaluefield is initialized withTCKind._tk_objref.static TCKindtk_octetTheTCKindconstant whosevaluefield is initialized withTCKind._tk_octet.static TCKindtk_PrincipalTheTCKindconstant whosevaluefield is initialized withTCKind._tk_Principal.static TCKindtk_sequenceTheTCKindconstant whosevaluefield is initialized withTCKind._tk_sequence.static TCKindtk_shortTheTCKindconstant whosevaluefield is initialized withTCKind._tk_short.static TCKindtk_stringTheTCKindconstant whosevaluefield is initialized withTCKind._tk_string.static TCKindtk_structTheTCKindconstant whosevaluefield is initialized withTCKind._tk_struct.static TCKindtk_TypeCodeTheTCKindconstant whosevaluefield is initialized withTCKind._tk_TypeCode.static TCKindtk_ulongTheTCKindconstant whosevaluefield is initialized withTCKind._tk_ulong.static TCKindtk_ulonglongTheTCKindconstant whosevaluefield is initialized withTCKind._tk_ulonglong.static TCKindtk_unionTheTCKindconstant whosevaluefield is initialized withTCKind._tk_union.static TCKindtk_ushortTheTCKindconstant whosevaluefield is initialized withTCKind._tk_ushort.static TCKindtk_valueTheTCKindconstant whosevaluefield is initialized withTCKind._tk_value.static TCKindtk_value_boxTheTCKindconstant whosevaluefield is initialized withTCKind._tk_value_box.static TCKindtk_voidTheTCKindconstant whosevaluefield is initialized withTCKind._tk_void.static TCKindtk_wcharTheTCKindconstant whosevaluefield is initialized withTCKind._tk_wchar.static TCKindtk_wstringTheTCKindconstant whosevaluefield is initialized withTCKind._tk_wstring.
-
Constructor Summary
Constructors Modifier Constructor Description protectedTCKind(int _value)Deprecated.Do not use this constructor as this method should be private according to the OMG specification.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TCKindfrom_int(int i)Converts the givenintto the correspondingTCKindinstance.intvalue()Retrieves the value of thisTCKindinstance.
-
-
-
Field Detail
-
_tk_null
public static final int _tk_null
Theintconstant for anullIDL data type.- See Also:
- Constant Field Values
-
_tk_void
public static final int _tk_void
Theintconstant for the IDL data typevoid.- See Also:
- Constant Field Values
-
_tk_short
public static final int _tk_short
Theintconstant for the IDL data typeshort.- See Also:
- Constant Field Values
-
_tk_long
public static final int _tk_long
Theintconstant for the IDL data typelong.- See Also:
- Constant Field Values
-
_tk_ushort
public static final int _tk_ushort
Theintconstant for the IDL data typeushort.- See Also:
- Constant Field Values
-
_tk_ulong
public static final int _tk_ulong
Theintconstant for the IDL data typeulong.- See Also:
- Constant Field Values
-
_tk_float
public static final int _tk_float
Theintconstant for the IDL data typefloat.- See Also:
- Constant Field Values
-
_tk_double
public static final int _tk_double
Theintconstant for the IDL data typedouble.- See Also:
- Constant Field Values
-
_tk_boolean
public static final int _tk_boolean
Theintconstant for the IDL data typeboolean.- See Also:
- Constant Field Values
-
_tk_char
public static final int _tk_char
Theintconstant for the IDL data typechar.- See Also:
- Constant Field Values
-
_tk_octet
public static final int _tk_octet
Theintconstant for the IDL data typeoctet.- See Also:
- Constant Field Values
-
_tk_any
public static final int _tk_any
Theintconstant for the IDL data typeany.- See Also:
- Constant Field Values
-
_tk_TypeCode
public static final int _tk_TypeCode
Theintconstant for the IDL data typeTypeCode.- See Also:
- Constant Field Values
-
_tk_Principal
public static final int _tk_Principal
Theintconstant for the IDL data typePrincipal.- See Also:
- Constant Field Values
-
_tk_objref
public static final int _tk_objref
Theintconstant for the IDL data typeobjref.- See Also:
- Constant Field Values
-
_tk_struct
public static final int _tk_struct
Theintconstant for the IDL data typestruct.- See Also:
- Constant Field Values
-
_tk_union
public static final int _tk_union
Theintconstant for the IDL data typeunion.- See Also:
- Constant Field Values
-
_tk_enum
public static final int _tk_enum
Theintconstant for the IDL data typeenum.- See Also:
- Constant Field Values
-
_tk_string
public static final int _tk_string
Theintconstant for the IDL data typestring.- See Also:
- Constant Field Values
-
_tk_sequence
public static final int _tk_sequence
Theintconstant for the IDL data typesequence.- See Also:
- Constant Field Values
-
_tk_array
public static final int _tk_array
Theintconstant for the IDL data typearray.- See Also:
- Constant Field Values
-
_tk_alias
public static final int _tk_alias
Theintconstant for the IDL data typealias.- See Also:
- Constant Field Values
-
_tk_except
public static final int _tk_except
Theintconstant for the IDL data typeexcept.- See Also:
- Constant Field Values
-
_tk_longlong
public static final int _tk_longlong
Theintconstant for the IDL data typelonglong.- See Also:
- Constant Field Values
-
_tk_ulonglong
public static final int _tk_ulonglong
Theintconstant for the IDL data typeulonglong.- See Also:
- Constant Field Values
-
_tk_longdouble
public static final int _tk_longdouble
Theintconstant for the IDL data typelongdouble.- See Also:
- Constant Field Values
-
_tk_wchar
public static final int _tk_wchar
Theintconstant for the IDL data typewchar.- See Also:
- Constant Field Values
-
_tk_wstring
public static final int _tk_wstring
Theintconstant for the IDL data typewstring.- See Also:
- Constant Field Values
-
_tk_fixed
public static final int _tk_fixed
Theintconstant for the IDL data typefixed.- See Also:
- Constant Field Values
-
_tk_value
public static final int _tk_value
Theintconstant for the IDL data typevalue.- See Also:
- Constant Field Values
-
_tk_value_box
public static final int _tk_value_box
Theintconstant for the IDL data typevalue_box.- See Also:
- Constant Field Values
-
_tk_native
public static final int _tk_native
Theintconstant for the IDL data typenative.- See Also:
- Constant Field Values
-
_tk_abstract_interface
public static final int _tk_abstract_interface
Theintconstant for the IDL data typeabstract interface.- See Also:
- Constant Field Values
-
tk_null
public static final TCKind tk_null
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_null.
-
tk_void
public static final TCKind tk_void
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_void.
-
tk_short
public static final TCKind tk_short
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_short.
-
tk_long
public static final TCKind tk_long
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_long.
-
tk_ushort
public static final TCKind tk_ushort
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_ushort.
-
tk_ulong
public static final TCKind tk_ulong
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_ulong.
-
tk_float
public static final TCKind tk_float
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_float.
-
tk_double
public static final TCKind tk_double
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_double.
-
tk_boolean
public static final TCKind tk_boolean
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_boolean.
-
tk_char
public static final TCKind tk_char
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_char.
-
tk_octet
public static final TCKind tk_octet
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_octet.
-
tk_any
public static final TCKind tk_any
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_any.
-
tk_TypeCode
public static final TCKind tk_TypeCode
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_TypeCode.
-
tk_Principal
public static final TCKind tk_Principal
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_Principal.
-
tk_objref
public static final TCKind tk_objref
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_objref.
-
tk_struct
public static final TCKind tk_struct
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_struct.
-
tk_union
public static final TCKind tk_union
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_union.
-
tk_enum
public static final TCKind tk_enum
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_enum.
-
tk_string
public static final TCKind tk_string
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_string.
-
tk_sequence
public static final TCKind tk_sequence
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_sequence.
-
tk_array
public static final TCKind tk_array
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_array.
-
tk_alias
public static final TCKind tk_alias
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_alias.
-
tk_except
public static final TCKind tk_except
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_except.
-
tk_longlong
public static final TCKind tk_longlong
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_longlong.
-
tk_ulonglong
public static final TCKind tk_ulonglong
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_ulonglong.
-
tk_longdouble
public static final TCKind tk_longdouble
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_longdouble.
-
tk_wchar
public static final TCKind tk_wchar
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_wchar.
-
tk_wstring
public static final TCKind tk_wstring
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_wstring.
-
tk_fixed
public static final TCKind tk_fixed
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_fixed.
-
tk_value
public static final TCKind tk_value
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_value.
-
tk_value_box
public static final TCKind tk_value_box
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_value_box.
-
tk_native
public static final TCKind tk_native
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_native.
-
tk_abstract_interface
public static final TCKind tk_abstract_interface
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_abstract_interface.
-
-
Constructor Detail
-
TCKind
@Deprecated protected TCKind(int _value)
Deprecated.Do not use this constructor as this method should be private according to the OMG specification. Usefrom_int(int)instead.Creates a newTCKindinstance initialized with the givenint.- Parameters:
_value- theintto convert. It must be one of theintconstants in the classTCKind.
-
-
Method Detail
-
value
public int value()
Retrieves the value of thisTCKindinstance.- Returns:
- the
intthat represents the kind of IDL data type for thisTCKindinstance
-
from_int
public static TCKind from_int(int i)
Converts the givenintto the correspondingTCKindinstance.- Parameters:
i- theintto convert. It must be one of theintconstants in the classTCKind.- Returns:
- the
TCKindinstance whosevaluefield matches the givenint - Throws:
BAD_PARAM- if the givenintdoes not match the_valuefield of anyTCKindinstance
-
-