|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.CORBA.TCKind
TCKind
, which
specifies the kind of a TypeCode
object. There is
one kind for each primitive and essential IDL datatype.
The class TCKind
consists of:
int
constants, one for each
kind of IDL data type. These int
constants
make it possible to use a switch
statement.
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.
from_int
for 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
.
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.
Method Summary | |
static TCKind | from_int(int i)
Converts the given int to the corresponding
TCKind instance. |
int | value()
Retrieves the value of this TCKind instance. |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Field Detail |
public static final int _tk_null
public static final int _tk_void
public static final int _tk_short
public static final int _tk_long
public static final int _tk_ushort
public static final int _tk_ulong
public static final int _tk_float
public static final int _tk_double
public static final int _tk_boolean
public static final int _tk_char
public static final int _tk_octet
public static final int _tk_any
public static final int _tk_TypeCode
public static final int _tk_Principal
public static final int _tk_objref
public static final int _tk_struct
public static final int _tk_union
public static final int _tk_enum
public static final int _tk_string
public static final int _tk_sequence
public static final int _tk_array
public static final int _tk_alias
public static final int _tk_except
public static final int _tk_longlong
public static final int _tk_ulonglong
public static final int _tk_longdouble
public static final int _tk_wchar
public static final int _tk_wstring
public static final int _tk_fixed
public static final int _tk_value
public static final int _tk_value_box
public static final int _tk_native
public static final TCKind tk_null
public static final TCKind tk_void
public static final TCKind tk_short
public static final TCKind tk_long
public static final TCKind tk_ushort
public static final TCKind tk_ulong
public static final TCKind tk_float
public static final TCKind tk_double
public static final TCKind tk_boolean
public static final TCKind tk_char
public static final TCKind tk_octet
public static final TCKind tk_any
public static final TCKind tk_TypeCode
public static final TCKind tk_Principal
public static final TCKind tk_objref
public static final TCKind tk_struct
public static final TCKind tk_union
public static final TCKind tk_enum
public static final TCKind tk_string
public static final TCKind tk_sequence
public static final TCKind tk_array
public static final TCKind tk_alias
public static final TCKind tk_except
public static final TCKind tk_longlong
public static final TCKind tk_ulonglong
public static final TCKind tk_longdouble
public static final TCKind tk_wchar
public static final TCKind tk_wstring
public static final TCKind tk_fixed
public static final TCKind tk_value
public static final TCKind tk_value_box
public static final TCKind tk_native
Method Detail |
public int value()
TCKind
instance.int
that represents the kind of
IDL data type for this TCKind
instancepublic static final TCKind from_int(int i) throws BAD_PARAM
int
to the corresponding
TCKind
instance.
the
- int
to convert. It must be one of
the int
constants in the class
TCKind
.TCKind
instance whose value
field matches the given int
int
does not
match the _value
field of
any TCKind
instance
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |