Escolar Documentos
Profissional Documentos
Cultura Documentos
Overview Package
Class
https://docs.oracle.com/javase/7/docs/api/org/om...
Java Platform
Standard Ed. 7
Frames No Frames
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. These int constants make it possible to use a
switch statement.
a set of TCKind constants, one for each kind of IDL data type. The value field for each TCKind instance is
initialized with the int constant that corresponds with the IDL data type that the instance represents.
the method from_intfor converting an int to its corresponding TCKind instance
Example:
org.omg.CORBA.TCKind k = org.omg.CORBA.TCKind.from_int(
org.omg.CORBA.TCKind._tk_string);
The variable k represents the TCKind instance for the IDL type string, which is tk_string.
the method value for accessing the _value field of a TCKind constant
Example:
int i = org.omg.CORBA.TCKind.tk_char.value();
The variable i represents 9, the value for the IDL data type char.
The value field of a TCKind instance is the CDR encoding used for a TypeCode object in an IIOP message.
Field Summary
Fields
Modifier and Type
static int
_tk_abstract_interface
The int constant for the IDL data type abstract interface.
static int
_tk_alias
1 de 17
20/01/16 13:30
static int
https://docs.oracle.com/javase/7/docs/api/org/om...
_tk_any
_tk_array
_tk_boolean
_tk_char
_tk_double
_tk_enum
_tk_except
_tk_fixed
_tk_float
_tk_long
_tk_longdouble
_tk_longlong
_tk_native
_tk_null
_tk_objref
_tk_octet
_tk_Principal
_tk_sequence
_tk_short
_tk_string
_tk_struct
_tk_TypeCode
_tk_ulong
2 de 17
20/01/16 13:30
static int
https://docs.oracle.com/javase/7/docs/api/org/om...
_tk_ulonglong
_tk_union
_tk_ushort
_tk_value
_tk_value_box
_tk_void
_tk_wchar
_tk_wstring
tk_abstract_interface
tk_alias
tk_any
tk_array
tk_boolean
tk_char
tk_double
tk_enum
tk_except
tk_fixed
tk_float
tk_long
tk_longdouble
tk_longlong
tk_native
3 de 17
20/01/16 13:30
static TCKind
https://docs.oracle.com/javase/7/docs/api/org/om...
tk_null
tk_objref
tk_octet
tk_Principal
tk_sequence
tk_short
tk_string
tk_struct
tk_TypeCode
tk_ulong
tk_ulonglong
tk_union
tk_ushort
tk_value
tk_value_box
tk_void
tk_wchar
tk_wstring
Constructor Summary
Constructors
Modifier
4 de 17
20/01/16 13:30
protected
https://docs.oracle.com/javase/7/docs/api/org/om...
TCKind(int _value)
Deprecated.
Do not use this constructor as this method should be private according to the
OMG specification. Use from_int(int) instead.
Method Summary
Methods
Modifier and Type
static TCKind
from_int(int i)
value()
Field Detail
_tk_null
public static final int _tk_null
See Also:
Constant Field Values
_tk_void
public static final int _tk_void
See Also:
Constant Field Values
_tk_short
public static final int _tk_short
5 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
See Also:
Constant Field Values
_tk_long
public static final int _tk_long
See Also:
Constant Field Values
_tk_ushort
public static final int _tk_ushort
See Also:
Constant Field Values
_tk_ulong
public static final int _tk_ulong
See Also:
Constant Field Values
_tk_float
public static final int _tk_float
See Also:
Constant Field Values
_tk_double
public static final int _tk_double
6 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
See Also:
Constant Field Values
_tk_boolean
public static final int _tk_boolean
See Also:
Constant Field Values
_tk_char
public static final int _tk_char
See Also:
Constant Field Values
_tk_octet
public static final int _tk_octet
See Also:
Constant Field Values
_tk_any
public static final int _tk_any
See Also:
Constant Field Values
_tk_TypeCode
public static final int _tk_TypeCode
7 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
See Also:
Constant Field Values
_tk_Principal
public static final int _tk_Principal
See Also:
Constant Field Values
_tk_objref
public static final int _tk_objref
See Also:
Constant Field Values
_tk_struct
public static final int _tk_struct
See Also:
Constant Field Values
_tk_union
public static final int _tk_union
See Also:
Constant Field Values
_tk_enum
public static final int _tk_enum
8 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
See Also:
Constant Field Values
_tk_string
public static final int _tk_string
See Also:
Constant Field Values
_tk_sequence
public static final int _tk_sequence
See Also:
Constant Field Values
_tk_array
public static final int _tk_array
See Also:
Constant Field Values
_tk_alias
public static final int _tk_alias
See Also:
Constant Field Values
_tk_except
public static final int _tk_except
9 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
See Also:
Constant Field Values
_tk_longlong
public static final int _tk_longlong
See Also:
Constant Field Values
_tk_ulonglong
public static final int _tk_ulonglong
See Also:
Constant Field Values
_tk_longdouble
public static final int _tk_longdouble
See Also:
Constant Field Values
_tk_wchar
public static final int _tk_wchar
See Also:
Constant Field Values
_tk_wstring
public static final int _tk_wstring
10 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
See Also:
Constant Field Values
_tk_fixed
public static final int _tk_fixed
See Also:
Constant Field Values
_tk_value
public static final int _tk_value
See Also:
Constant Field Values
_tk_value_box
public static final int _tk_value_box
See Also:
Constant Field Values
_tk_native
public static final int _tk_native
See Also:
Constant Field Values
_tk_abstract_interface
public static final int _tk_abstract_interface
The int constant for the IDL data type abstract interface.
11 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
See Also:
Constant Field Values
tk_null
public static final TCKind tk_null
tk_void
public static final TCKind tk_void
tk_short
public static final TCKind tk_short
tk_long
public static final TCKind tk_long
tk_ushort
public static final TCKind tk_ushort
tk_ulong
public static final TCKind tk_ulong
tk_float
public static final TCKind tk_float
12 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
tk_double
public static final TCKind tk_double
tk_boolean
public static final TCKind tk_boolean
tk_char
public static final TCKind tk_char
tk_octet
public static final TCKind tk_octet
tk_any
public static final TCKind tk_any
tk_TypeCode
public static final TCKind tk_TypeCode
tk_Principal
public static final TCKind tk_Principal
tk_objref
public static final TCKind tk_objref
13 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
tk_struct
public static final TCKind tk_struct
tk_union
public static final TCKind tk_union
tk_enum
public static final TCKind tk_enum
tk_string
public static final TCKind tk_string
tk_sequence
public static final TCKind tk_sequence
tk_array
public static final TCKind tk_array
tk_alias
public static final TCKind tk_alias
tk_except
public static final TCKind tk_except
14 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
tk_longlong
public static final TCKind tk_longlong
tk_ulonglong
public static final TCKind tk_ulonglong
tk_longdouble
public static final TCKind tk_longdouble
tk_wchar
public static final TCKind tk_wchar
tk_wstring
public static final TCKind tk_wstring
tk_fixed
public static final TCKind tk_fixed
tk_value
public static final TCKind tk_value
tk_value_box
public static final TCKind tk_value_box
15 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
tk_native
public static final TCKind tk_native
tk_abstract_interface
public static final TCKind 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. Use from_int(int) instead.
Creates a new TCKind instance initialized with the given int.
Parameters:
_value - the int to convert. It must be one of the int constants in the class TCKind.
Method Detail
value
public int value()
Returns:
the int that represents the kind of IDL data type for this TCKind instance
from_int
public static TCKind from_int(int i)
16 de 17
20/01/16 13:30
https://docs.oracle.com/javase/7/docs/api/org/om...
Parameters:
i - the int to convert. It must be one of the int constants in the class TCKind.
Returns:
the TCKind instance whose value field matches the given int
Throws:
BAD_PARAM - if the given int does not match the _value field of any TCKind instance
Overview Package
Class
Java Platform
Standard Ed. 7
Frames No Frames
17 de 17
20/01/16 13:30