Package org.omg.CORBA
Class TCKind
java.lang.Object
org.omg.CORBA.TCKind
The Java mapping of the IDL enum
TCKind
, which
specifies the kind of a TypeCode
object. There is
one kind for each primitive and essential IDL data type.
The class TCKind
consists of:
- a set of
int
constants, one for each kind of IDL data type. Theseint
constants make it possible to use aswitch
statement. - a set of
TCKind
constants, one for each kind of IDL data type. Thevalue
field for eachTCKind
instance is initialized with theint
constant that corresponds with the IDL data type that the instance represents. - the method
from_int
for converting anint
to its correspondingTCKind
instanceExample:
org.omg.CORBA.TCKind k = org.omg.CORBA.TCKind.from_int( org.omg.CORBA.TCKind._tk_string);
The variablek
represents theTCKind
instance for the IDL typestring
, which istk_string
. - the method
value
for accessing the_value
field of aTCKind
constantExample:
int i = org.omg.CORBA.TCKind.tk_char.value();
The variablei
represents 9, the value for the IDL data typechar
.
The value
field of a TCKind
instance
is the CDR encoding used for a TypeCode
object in
an IIOP message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Theint
constant for the IDL data typeabstract interface
.static final int
Theint
constant for the IDL data typealias
.static final int
Theint
constant for the IDL data typeany
.static final int
Theint
constant for the IDL data typearray
.static final int
Theint
constant for the IDL data typeboolean
.static final int
Theint
constant for the IDL data typechar
.static final int
Theint
constant for the IDL data typedouble
.static final int
Theint
constant for the IDL data typeenum
.static final int
Theint
constant for the IDL data typeexcept
.static final int
Theint
constant for the IDL data typefixed
.static final int
Theint
constant for the IDL data typefloat
.static final int
Theint
constant for the IDL data typelong
.static final int
Theint
constant for the IDL data typelongdouble
.static final int
Theint
constant for the IDL data typelonglong
.static final int
Theint
constant for the IDL data typenative
.static final int
Theint
constant for anull
IDL data type.static final int
Theint
constant for the IDL data typeobjref
.static final int
Theint
constant for the IDL data typeoctet
.static final int
Theint
constant for the IDL data typePrincipal
.static final int
Theint
constant for the IDL data typesequence
.static final int
Theint
constant for the IDL data typeshort
.static final int
Theint
constant for the IDL data typestring
.static final int
Theint
constant for the IDL data typestruct
.static final int
Theint
constant for the IDL data typeTypeCode
.static final int
Theint
constant for the IDL data typeulong
.static final int
Theint
constant for the IDL data typeulonglong
.static final int
Theint
constant for the IDL data typeunion
.static final int
Theint
constant for the IDL data typeushort
.static final int
Theint
constant for the IDL data typevalue
.static final int
Theint
constant for the IDL data typevalue_box
.static final int
Theint
constant for the IDL data typevoid
.static final int
Theint
constant for the IDL data typewchar
.static final int
Theint
constant for the IDL data typewstring
.private int
static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_abstract_interface
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_alias
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_any
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_array
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_boolean
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_char
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_double
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_enum
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_except
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_fixed
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_float
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_long
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_longdouble
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_longlong
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_native
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_null
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_objref
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_octet
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_Principal
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_sequence
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_short
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_string
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_struct
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_TypeCode
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ulong
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ulonglong
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_union
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ushort
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_value
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_value_box
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_void
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_wchar
.static final TCKind
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_wstring
. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TCKind
(int _value) Deprecated.Do not use this constructor as this method should be private according to the OMG specification. -
Method Summary
-
Field Details
-
_tk_null
public static final int _tk_nullTheint
constant for anull
IDL data type.- See Also:
-
_tk_void
public static final int _tk_voidTheint
constant for the IDL data typevoid
.- See Also:
-
_tk_short
public static final int _tk_shortTheint
constant for the IDL data typeshort
.- See Also:
-
_tk_long
public static final int _tk_longTheint
constant for the IDL data typelong
.- See Also:
-
_tk_ushort
public static final int _tk_ushortTheint
constant for the IDL data typeushort
.- See Also:
-
_tk_ulong
public static final int _tk_ulongTheint
constant for the IDL data typeulong
.- See Also:
-
_tk_float
public static final int _tk_floatTheint
constant for the IDL data typefloat
.- See Also:
-
_tk_double
public static final int _tk_doubleTheint
constant for the IDL data typedouble
.- See Also:
-
_tk_boolean
public static final int _tk_booleanTheint
constant for the IDL data typeboolean
.- See Also:
-
_tk_char
public static final int _tk_charTheint
constant for the IDL data typechar
.- See Also:
-
_tk_octet
public static final int _tk_octetTheint
constant for the IDL data typeoctet
.- See Also:
-
_tk_any
public static final int _tk_anyTheint
constant for the IDL data typeany
.- See Also:
-
_tk_TypeCode
public static final int _tk_TypeCodeTheint
constant for the IDL data typeTypeCode
.- See Also:
-
_tk_Principal
public static final int _tk_PrincipalTheint
constant for the IDL data typePrincipal
.- See Also:
-
_tk_objref
public static final int _tk_objrefTheint
constant for the IDL data typeobjref
.- See Also:
-
_tk_struct
public static final int _tk_structTheint
constant for the IDL data typestruct
.- See Also:
-
_tk_union
public static final int _tk_unionTheint
constant for the IDL data typeunion
.- See Also:
-
_tk_enum
public static final int _tk_enumTheint
constant for the IDL data typeenum
.- See Also:
-
_tk_string
public static final int _tk_stringTheint
constant for the IDL data typestring
.- See Also:
-
_tk_sequence
public static final int _tk_sequenceTheint
constant for the IDL data typesequence
.- See Also:
-
_tk_array
public static final int _tk_arrayTheint
constant for the IDL data typearray
.- See Also:
-
_tk_alias
public static final int _tk_aliasTheint
constant for the IDL data typealias
.- See Also:
-
_tk_except
public static final int _tk_exceptTheint
constant for the IDL data typeexcept
.- See Also:
-
_tk_longlong
public static final int _tk_longlongTheint
constant for the IDL data typelonglong
.- See Also:
-
_tk_ulonglong
public static final int _tk_ulonglongTheint
constant for the IDL data typeulonglong
.- See Also:
-
_tk_longdouble
public static final int _tk_longdoubleTheint
constant for the IDL data typelongdouble
.- See Also:
-
_tk_wchar
public static final int _tk_wcharTheint
constant for the IDL data typewchar
.- See Also:
-
_tk_wstring
public static final int _tk_wstringTheint
constant for the IDL data typewstring
.- See Also:
-
_tk_fixed
public static final int _tk_fixedTheint
constant for the IDL data typefixed
.- See Also:
-
_tk_value
public static final int _tk_valueTheint
constant for the IDL data typevalue
.- See Also:
-
_tk_value_box
public static final int _tk_value_boxTheint
constant for the IDL data typevalue_box
.- See Also:
-
_tk_native
public static final int _tk_nativeTheint
constant for the IDL data typenative
.- See Also:
-
_tk_abstract_interface
public static final int _tk_abstract_interfaceTheint
constant for the IDL data typeabstract interface
.- See Also:
-
tk_null
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_null
. -
tk_void
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_void
. -
tk_short
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_short
. -
tk_long
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_long
. -
tk_ushort
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ushort
. -
tk_ulong
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ulong
. -
tk_float
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_float
. -
tk_double
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_double
. -
tk_boolean
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_boolean
. -
tk_char
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_char
. -
tk_octet
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_octet
. -
tk_any
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_any
. -
tk_TypeCode
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_TypeCode
. -
tk_Principal
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_Principal
. -
tk_objref
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_objref
. -
tk_struct
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_struct
. -
tk_union
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_union
. -
tk_enum
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_enum
. -
tk_string
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_string
. -
tk_sequence
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_sequence
. -
tk_array
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_array
. -
tk_alias
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_alias
. -
tk_except
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_except
. -
tk_longlong
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_longlong
. -
tk_ulonglong
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ulonglong
. -
tk_longdouble
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_longdouble
. -
tk_wchar
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_wchar
. -
tk_wstring
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_wstring
. -
tk_fixed
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_fixed
. -
tk_value
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_value
. -
tk_value_box
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_value_box
. -
tk_native
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_native
. -
tk_abstract_interface
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_abstract_interface
. -
_value
private int _value
-
-
Constructor Details
-
TCKind
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 newTCKind
instance initialized with the givenint
.- Parameters:
_value
- theint
to convert. It must be one of theint
constants in the classTCKind
.
-
-
Method Details
-
value
public int value()Retrieves the value of thisTCKind
instance.- Returns:
- the
int
that represents the kind of IDL data type for thisTCKind
instance
-
from_int
Converts the givenint
to the correspondingTCKind
instance.- Parameters:
i
- theint
to convert. It must be one of theint
constants in the classTCKind
.- Returns:
- the
TCKind
instance whosevalue
field matches the givenint
- Throws:
BAD_PARAM
- if the givenint
does not match the_value
field of anyTCKind
instance
-