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
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 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 intTheintconstant for the IDL data typeabstract interface.static final intTheintconstant for the IDL data typealias.static final intTheintconstant for the IDL data typeany.static final intTheintconstant for the IDL data typearray.static final intTheintconstant for the IDL data typeboolean.static final intTheintconstant for the IDL data typechar.static final intTheintconstant for the IDL data typedouble.static final intTheintconstant for the IDL data typeenum.static final intTheintconstant for the IDL data typeexcept.static final intTheintconstant for the IDL data typefixed.static final intTheintconstant for the IDL data typefloat.static final intTheintconstant for the IDL data typelong.static final intTheintconstant for the IDL data typelongdouble.static final intTheintconstant for the IDL data typelonglong.static final intTheintconstant for the IDL data typenative.static final intTheintconstant for anullIDL data type.static final intTheintconstant for the IDL data typeobjref.static final intTheintconstant for the IDL data typeoctet.static final intTheintconstant for the IDL data typePrincipal.static final intTheintconstant for the IDL data typesequence.static final intTheintconstant for the IDL data typeshort.static final intTheintconstant for the IDL data typestring.static final intTheintconstant for the IDL data typestruct.static final intTheintconstant for the IDL data typeTypeCode.static final intTheintconstant for the IDL data typeulong.static final intTheintconstant for the IDL data typeulonglong.static final intTheintconstant for the IDL data typeunion.static final intTheintconstant for the IDL data typeushort.static final intTheintconstant for the IDL data typevalue.static final intTheintconstant for the IDL data typevalue_box.static final intTheintconstant for the IDL data typevoid.static final intTheintconstant for the IDL data typewchar.static final intTheintconstant for the IDL data typewstring.private intstatic final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_abstract_interface.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_alias.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_any.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_array.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_boolean.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_char.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_double.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_enum.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_except.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_fixed.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_float.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_long.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_longdouble.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_longlong.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_native.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_null.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_objref.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_octet.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_Principal.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_sequence.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_short.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_string.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_struct.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_TypeCode.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_ulong.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_ulonglong.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_union.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_ushort.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_value.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_value_box.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_void.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_wchar.static final TCKindTheTCKindconstant whosevaluefield is initialized withTCKind._tk_wstring. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTCKind(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_nullTheintconstant for anullIDL data type.- See Also:
-
_tk_void
public static final int _tk_voidTheintconstant for the IDL data typevoid.- See Also:
-
_tk_short
public static final int _tk_shortTheintconstant for the IDL data typeshort.- See Also:
-
_tk_long
public static final int _tk_longTheintconstant for the IDL data typelong.- See Also:
-
_tk_ushort
public static final int _tk_ushortTheintconstant for the IDL data typeushort.- See Also:
-
_tk_ulong
public static final int _tk_ulongTheintconstant for the IDL data typeulong.- See Also:
-
_tk_float
public static final int _tk_floatTheintconstant for the IDL data typefloat.- See Also:
-
_tk_double
public static final int _tk_doubleTheintconstant for the IDL data typedouble.- See Also:
-
_tk_boolean
public static final int _tk_booleanTheintconstant for the IDL data typeboolean.- See Also:
-
_tk_char
public static final int _tk_charTheintconstant for the IDL data typechar.- See Also:
-
_tk_octet
public static final int _tk_octetTheintconstant for the IDL data typeoctet.- See Also:
-
_tk_any
public static final int _tk_anyTheintconstant for the IDL data typeany.- See Also:
-
_tk_TypeCode
public static final int _tk_TypeCodeTheintconstant for the IDL data typeTypeCode.- See Also:
-
_tk_Principal
public static final int _tk_PrincipalTheintconstant for the IDL data typePrincipal.- See Also:
-
_tk_objref
public static final int _tk_objrefTheintconstant for the IDL data typeobjref.- See Also:
-
_tk_struct
public static final int _tk_structTheintconstant for the IDL data typestruct.- See Also:
-
_tk_union
public static final int _tk_unionTheintconstant for the IDL data typeunion.- See Also:
-
_tk_enum
public static final int _tk_enumTheintconstant for the IDL data typeenum.- See Also:
-
_tk_string
public static final int _tk_stringTheintconstant for the IDL data typestring.- See Also:
-
_tk_sequence
public static final int _tk_sequenceTheintconstant for the IDL data typesequence.- See Also:
-
_tk_array
public static final int _tk_arrayTheintconstant for the IDL data typearray.- See Also:
-
_tk_alias
public static final int _tk_aliasTheintconstant for the IDL data typealias.- See Also:
-
_tk_except
public static final int _tk_exceptTheintconstant for the IDL data typeexcept.- See Also:
-
_tk_longlong
public static final int _tk_longlongTheintconstant for the IDL data typelonglong.- See Also:
-
_tk_ulonglong
public static final int _tk_ulonglongTheintconstant for the IDL data typeulonglong.- See Also:
-
_tk_longdouble
public static final int _tk_longdoubleTheintconstant for the IDL data typelongdouble.- See Also:
-
_tk_wchar
public static final int _tk_wcharTheintconstant for the IDL data typewchar.- See Also:
-
_tk_wstring
public static final int _tk_wstringTheintconstant for the IDL data typewstring.- See Also:
-
_tk_fixed
public static final int _tk_fixedTheintconstant for the IDL data typefixed.- See Also:
-
_tk_value
public static final int _tk_valueTheintconstant for the IDL data typevalue.- See Also:
-
_tk_value_box
public static final int _tk_value_boxTheintconstant for the IDL data typevalue_box.- See Also:
-
_tk_native
public static final int _tk_nativeTheintconstant for the IDL data typenative.- See Also:
-
_tk_abstract_interface
public static final int _tk_abstract_interfaceTheintconstant for the IDL data typeabstract interface.- See Also:
-
tk_null
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_null. -
tk_void
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_void. -
tk_short
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_short. -
tk_long
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_long. -
tk_ushort
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_ushort. -
tk_ulong
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_ulong. -
tk_float
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_float. -
tk_double
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_double. -
tk_boolean
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_boolean. -
tk_char
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_char. -
tk_octet
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_octet. -
tk_any
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_any. -
tk_TypeCode
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_TypeCode. -
tk_Principal
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_Principal. -
tk_objref
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_objref. -
tk_struct
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_struct. -
tk_union
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_union. -
tk_enum
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_enum. -
tk_string
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_string. -
tk_sequence
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_sequence. -
tk_array
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_array. -
tk_alias
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_alias. -
tk_except
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_except. -
tk_longlong
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_longlong. -
tk_ulonglong
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_ulonglong. -
tk_longdouble
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_longdouble. -
tk_wchar
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_wchar. -
tk_wstring
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_wstring. -
tk_fixed
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_fixed. -
tk_value
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_value. -
tk_value_box
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_value_box. -
tk_native
TheTCKindconstant whosevaluefield is initialized withTCKind._tk_native. -
tk_abstract_interface
TheTCKindconstant whosevaluefield 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 newTCKindinstance initialized with the givenint.- Parameters:
_value- theintto convert. It must be one of theintconstants in the classTCKind.
-
-
Method Details
-
value
public int value()Retrieves the value of thisTCKindinstance.- Returns:
- the
intthat represents the kind of IDL data type for thisTCKindinstance
-
from_int
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
-