- java.lang.Object
-
- org.omg.CORBA.TCKind
-
public class TCKind extends Object
The Java mapping of the IDL enumTCKind
, which specifies the kind of aTypeCode
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 aTCKind
instance is the CDR encoding used for aTypeCode
object in an IIOP message. - a set of
-
-
Field Summary
Fields Modifier and Type Field Description static int
_tk_abstract_interface
Theint
constant for the IDL data typeabstract interface
.static int
_tk_alias
Theint
constant for the IDL data typealias
.static int
_tk_any
Theint
constant for the IDL data typeany
.static int
_tk_array
Theint
constant for the IDL data typearray
.static int
_tk_boolean
Theint
constant for the IDL data typeboolean
.static int
_tk_char
Theint
constant for the IDL data typechar
.static int
_tk_double
Theint
constant for the IDL data typedouble
.static int
_tk_enum
Theint
constant for the IDL data typeenum
.static int
_tk_except
Theint
constant for the IDL data typeexcept
.static int
_tk_fixed
Theint
constant for the IDL data typefixed
.static int
_tk_float
Theint
constant for the IDL data typefloat
.static int
_tk_long
Theint
constant for the IDL data typelong
.static int
_tk_longdouble
Theint
constant for the IDL data typelongdouble
.static int
_tk_longlong
Theint
constant for the IDL data typelonglong
.static int
_tk_native
Theint
constant for the IDL data typenative
.static int
_tk_null
Theint
constant for anull
IDL data type.static int
_tk_objref
Theint
constant for the IDL data typeobjref
.static int
_tk_octet
Theint
constant for the IDL data typeoctet
.static int
_tk_Principal
Theint
constant for the IDL data typePrincipal
.static int
_tk_sequence
Theint
constant for the IDL data typesequence
.static int
_tk_short
Theint
constant for the IDL data typeshort
.static int
_tk_string
Theint
constant for the IDL data typestring
.static int
_tk_struct
Theint
constant for the IDL data typestruct
.static int
_tk_TypeCode
Theint
constant for the IDL data typeTypeCode
.static int
_tk_ulong
Theint
constant for the IDL data typeulong
.static int
_tk_ulonglong
Theint
constant for the IDL data typeulonglong
.static int
_tk_union
Theint
constant for the IDL data typeunion
.static int
_tk_ushort
Theint
constant for the IDL data typeushort
.static int
_tk_value
Theint
constant for the IDL data typevalue
.static int
_tk_value_box
Theint
constant for the IDL data typevalue_box
.static int
_tk_void
Theint
constant for the IDL data typevoid
.static int
_tk_wchar
Theint
constant for the IDL data typewchar
.static int
_tk_wstring
Theint
constant for the IDL data typewstring
.static TCKind
tk_abstract_interface
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_abstract_interface
.static TCKind
tk_alias
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_alias
.static TCKind
tk_any
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_any
.static TCKind
tk_array
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_array
.static TCKind
tk_boolean
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_boolean
.static TCKind
tk_char
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_char
.static TCKind
tk_double
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_double
.static TCKind
tk_enum
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_enum
.static TCKind
tk_except
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_except
.static TCKind
tk_fixed
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_fixed
.static TCKind
tk_float
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_float
.static TCKind
tk_long
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_long
.static TCKind
tk_longdouble
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_longdouble
.static TCKind
tk_longlong
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_longlong
.static TCKind
tk_native
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_native
.static TCKind
tk_null
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_null
.static TCKind
tk_objref
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_objref
.static TCKind
tk_octet
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_octet
.static TCKind
tk_Principal
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_Principal
.static TCKind
tk_sequence
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_sequence
.static TCKind
tk_short
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_short
.static TCKind
tk_string
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_string
.static TCKind
tk_struct
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_struct
.static TCKind
tk_TypeCode
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_TypeCode
.static TCKind
tk_ulong
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ulong
.static TCKind
tk_ulonglong
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ulonglong
.static TCKind
tk_union
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_union
.static TCKind
tk_ushort
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ushort
.static TCKind
tk_value
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_value
.static TCKind
tk_value_box
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_value_box
.static TCKind
tk_void
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_void
.static TCKind
tk_wchar
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_wchar
.static TCKind
tk_wstring
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_wstring
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
TCKind(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 TCKind
from_int(int i)
Converts the givenint
to the correspondingTCKind
instance.int
value()
Retrieves the value of thisTCKind
instance.
-
-
-
Field Detail
-
_tk_null
public static final int _tk_null
Theint
constant for anull
IDL data type.- See Also:
- Constant Field Values
-
_tk_void
public static final int _tk_void
Theint
constant for the IDL data typevoid
.- See Also:
- Constant Field Values
-
_tk_short
public static final int _tk_short
Theint
constant for the IDL data typeshort
.- See Also:
- Constant Field Values
-
_tk_long
public static final int _tk_long
Theint
constant for the IDL data typelong
.- See Also:
- Constant Field Values
-
_tk_ushort
public static final int _tk_ushort
Theint
constant for the IDL data typeushort
.- See Also:
- Constant Field Values
-
_tk_ulong
public static final int _tk_ulong
Theint
constant for the IDL data typeulong
.- See Also:
- Constant Field Values
-
_tk_float
public static final int _tk_float
Theint
constant for the IDL data typefloat
.- See Also:
- Constant Field Values
-
_tk_double
public static final int _tk_double
Theint
constant for the IDL data typedouble
.- See Also:
- Constant Field Values
-
_tk_boolean
public static final int _tk_boolean
Theint
constant for the IDL data typeboolean
.- See Also:
- Constant Field Values
-
_tk_char
public static final int _tk_char
Theint
constant for the IDL data typechar
.- See Also:
- Constant Field Values
-
_tk_octet
public static final int _tk_octet
Theint
constant for the IDL data typeoctet
.- See Also:
- Constant Field Values
-
_tk_any
public static final int _tk_any
Theint
constant for the IDL data typeany
.- See Also:
- Constant Field Values
-
_tk_TypeCode
public static final int _tk_TypeCode
Theint
constant for the IDL data typeTypeCode
.- See Also:
- Constant Field Values
-
_tk_Principal
public static final int _tk_Principal
Theint
constant for the IDL data typePrincipal
.- See Also:
- Constant Field Values
-
_tk_objref
public static final int _tk_objref
Theint
constant for the IDL data typeobjref
.- See Also:
- Constant Field Values
-
_tk_struct
public static final int _tk_struct
Theint
constant for the IDL data typestruct
.- See Also:
- Constant Field Values
-
_tk_union
public static final int _tk_union
Theint
constant for the IDL data typeunion
.- See Also:
- Constant Field Values
-
_tk_enum
public static final int _tk_enum
Theint
constant for the IDL data typeenum
.- See Also:
- Constant Field Values
-
_tk_string
public static final int _tk_string
Theint
constant for the IDL data typestring
.- See Also:
- Constant Field Values
-
_tk_sequence
public static final int _tk_sequence
Theint
constant for the IDL data typesequence
.- See Also:
- Constant Field Values
-
_tk_array
public static final int _tk_array
Theint
constant for the IDL data typearray
.- See Also:
- Constant Field Values
-
_tk_alias
public static final int _tk_alias
Theint
constant for the IDL data typealias
.- See Also:
- Constant Field Values
-
_tk_except
public static final int _tk_except
Theint
constant for the IDL data typeexcept
.- See Also:
- Constant Field Values
-
_tk_longlong
public static final int _tk_longlong
Theint
constant for the IDL data typelonglong
.- See Also:
- Constant Field Values
-
_tk_ulonglong
public static final int _tk_ulonglong
Theint
constant for the IDL data typeulonglong
.- See Also:
- Constant Field Values
-
_tk_longdouble
public static final int _tk_longdouble
Theint
constant for the IDL data typelongdouble
.- See Also:
- Constant Field Values
-
_tk_wchar
public static final int _tk_wchar
Theint
constant for the IDL data typewchar
.- See Also:
- Constant Field Values
-
_tk_wstring
public static final int _tk_wstring
Theint
constant for the IDL data typewstring
.- See Also:
- Constant Field Values
-
_tk_fixed
public static final int _tk_fixed
Theint
constant for the IDL data typefixed
.- See Also:
- Constant Field Values
-
_tk_value
public static final int _tk_value
Theint
constant for the IDL data typevalue
.- See Also:
- Constant Field Values
-
_tk_value_box
public static final int _tk_value_box
Theint
constant for the IDL data typevalue_box
.- See Also:
- Constant Field Values
-
_tk_native
public static final int _tk_native
Theint
constant for the IDL data typenative
.- See Also:
- Constant Field Values
-
_tk_abstract_interface
public static final int _tk_abstract_interface
Theint
constant for the IDL data typeabstract interface
.- See Also:
- Constant Field Values
-
tk_null
public static final TCKind tk_null
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_null
.
-
tk_void
public static final TCKind tk_void
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_void
.
-
tk_short
public static final TCKind tk_short
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_short
.
-
tk_long
public static final TCKind tk_long
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_long
.
-
tk_ushort
public static final TCKind tk_ushort
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ushort
.
-
tk_ulong
public static final TCKind tk_ulong
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ulong
.
-
tk_float
public static final TCKind tk_float
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_float
.
-
tk_double
public static final TCKind tk_double
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_double
.
-
tk_boolean
public static final TCKind tk_boolean
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_boolean
.
-
tk_char
public static final TCKind tk_char
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_char
.
-
tk_octet
public static final TCKind tk_octet
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_octet
.
-
tk_any
public static final TCKind tk_any
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_any
.
-
tk_TypeCode
public static final TCKind tk_TypeCode
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_TypeCode
.
-
tk_Principal
public static final TCKind tk_Principal
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_Principal
.
-
tk_objref
public static final TCKind tk_objref
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_objref
.
-
tk_struct
public static final TCKind tk_struct
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_struct
.
-
tk_union
public static final TCKind tk_union
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_union
.
-
tk_enum
public static final TCKind tk_enum
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_enum
.
-
tk_string
public static final TCKind tk_string
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_string
.
-
tk_sequence
public static final TCKind tk_sequence
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_sequence
.
-
tk_array
public static final TCKind tk_array
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_array
.
-
tk_alias
public static final TCKind tk_alias
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_alias
.
-
tk_except
public static final TCKind tk_except
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_except
.
-
tk_longlong
public static final TCKind tk_longlong
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_longlong
.
-
tk_ulonglong
public static final TCKind tk_ulonglong
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_ulonglong
.
-
tk_longdouble
public static final TCKind tk_longdouble
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_longdouble
.
-
tk_wchar
public static final TCKind tk_wchar
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_wchar
.
-
tk_wstring
public static final TCKind tk_wstring
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_wstring
.
-
tk_fixed
public static final TCKind tk_fixed
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_fixed
.
-
tk_value
public static final TCKind tk_value
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_value
.
-
tk_value_box
public static final TCKind tk_value_box
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_value_box
.
-
tk_native
public static final TCKind tk_native
TheTCKind
constant whosevalue
field is initialized withTCKind._tk_native
.
-
tk_abstract_interface
public static final TCKind tk_abstract_interface
TheTCKind
constant whosevalue
field 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 newTCKind
instance initialized with the givenint
.- Parameters:
_value
- theint
to convert. It must be one of theint
constants in the classTCKind
.
-
-
Method Detail
-
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
public static TCKind from_int(int i)
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
-
-