所有类


org.omg.CORBA
类 TCKind

java.lang.Object
  继承者 org.omg.CORBA.TCKind

public class TCKind
   
   
   
   
extends Object

IDL enum TCKind 的 Java 映射,TCKind 指定 TypeCode 对象的种类。每个基本和基础 IDL 数据类型都有一个种类。

TCKind 类由以下内容组成:

  • 一组 int 常量,每个常量对应一种 IDL 数据类型。这些 int 常量使该类能够使用 switch 语句。
  • 一组 TCKind 常量,每个常量对应一种 IDL 数据类型。每个 TCKind 实例的 value 字段都是使用对应于该实例所表示的 IDL 数据类型的 int 常量初始化的。
  • 用来将 int 值转换成其相应 TCKind 实例的 from_int 方法

    示例:

          org.omg.CORBA.TCKind k = org.omg.CORBA.TCKind.from_int(
                             org.omg.CORBA.TCKind._tk_string);
     
    变量 k 表示用于 IDL 类型 stringTCKind 实例,该 string 的值为 tk_string

  • 用来访问 TCKind 常量 _value 字段的 value 方法

    示例:

       int i = org.omg.CORBA.TCKind.tk_char.value();
     
    变量 i 表示 9,是用于 IDL 数据类型 char 的值。

TCKind 实例的 value 字段是 CDR 编码的,用于 IIOP 消息中的 TypeCode 对象。


字段摘要
static int_tk_abstract_interface
          用于 IDL 数据类型 abstract interfaceint 常量。
static int_tk_alias
          用于 IDL 数据类型 aliasint 常量。
static int_tk_any
          用于 IDL 数据类型 anyint 常量。
static int_tk_array
          用于 IDL 数据类型 arrayint 常量。
static int_tk_boolean
          用于 IDL 数据类型 booleanint 常量。
static int_tk_char
          用于 IDL 数据类型 charint 常量。
static int_tk_double
          用于 IDL 数据类型 doubleint 常量。
static int_tk_enum
          用于 IDL 数据类型 enumint 常量。
static int_tk_except
          用于 IDL 数据类型 exceptint 常量。
static int_tk_fixed
          用于 IDL 数据类型 fixedint 常量。
static int_tk_float
          用于 IDL 数据类型 floatint 常量。
static int_tk_long
          用于 IDL 数据类型 longint 常量。
static int_tk_longdouble
          用于 IDL 数据类型 longdoubleint 常量。
static int_tk_longlong
          用于 IDL 数据类型 longlongint 常量。
static int_tk_native
          用于 IDL 数据类型 nativeint 常量。
static int_tk_null
          用于 null IDL 数据类型的 int 常量。
static int_tk_objref
          用于 IDL 数据类型 objrefint 常量。
static int_tk_octet
          用于 IDL 数据类型 octetint 常量。
static int_tk_Principal
          用于 IDL 数据类型 Principalint 常量。
static int_tk_sequence
          用于 IDL 数据类型 sequenceint 常量。
static int_tk_short
          用于 IDL 数据类型 shortint 常量。
static int_tk_string
          用于 IDL 数据类型 stringint 常量。
static int_tk_struct
          用于 IDL 数据类型 structint 常量。
static int_tk_TypeCode
          用于 IDL 数据类型 TypeCodeint 常量。
static int_tk_ulong
          用于 IDL 数据类型 ulongint 常量。
static int_tk_ulonglong
          用于 IDL 数据类型 ulonglongint 常量。
static int_tk_union
          用于 IDL 数据类型 unionint 常量。
static int_tk_ushort
          用于 IDL 数据类型 ushortint 常量。
static int_tk_value
          用于 IDL 数据类型 valueint 常量。
static int_tk_value_box
          用于 IDL 数据类型 value_boxint 常量。
static int_tk_void
          用于 IDL 数据类型 voidint 常量。
static int_tk_wchar
          用于 IDL 数据类型 wcharint 常量。
static int_tk_wstring
          用于 IDL 数据类型 wstringint 常量。
static TCKindtk_abstract_interface
          TCKind 常量,使用 TCKind._tk_abstract_interface 初始化其 value 字段。
static TCKindtk_alias
          TCKind 常量,使用 TCKind._tk_alias 初始化其 value 字段。
static TCKindtk_any
          TCKind 常量,使用 TCKind._tk_any 初始化其 value 字段。
static TCKindtk_array
          TCKind 常量,使用 TCKind._tk_array 初始化其 value 字段。
static TCKindtk_boolean
          TCKind 常量,使用 TCKind._tk_boolean 初始化其 value 字段。
static TCKindtk_char
          TCKind 常量,使用 TCKind._tk_char 初始化其 value 字段。
static TCKindtk_double
          TCKind 常量,使用 TCKind._tk_double 初始化其 value 字段。
static TCKindtk_enum
          TCKind 常量,使用 TCKind._tk_enum 初始化其 value 字段。
static TCKindtk_except
          TCKind 常量,使用 TCKind._tk_except 初始化其 value 字段。
static TCKindtk_fixed
          TCKind 常量,使用 TCKind._tk_fixed 初始化其 value 字段。
static TCKindtk_float
          TCKind 常量,使用 TCKind._tk_float 初始化其 value 字段。
static TCKindtk_long
          TCKind 常量,使用 TCKind._tk_long 初始化其 value 字段。
static TCKindtk_longdouble
          TCKind 常量,使用 TCKind._tk_longdouble 初始化其 value 字段。
static TCKindtk_longlong
          TCKind 常量,使用 TCKind._tk_longlong 初始化其 value 字段。
static TCKindtk_native
          TCKind 常量,使用 TCKind._tk_native 初始化其 value 字段。
static TCKindtk_null
          TCKind 常量,使用 TCKind._tk_null 初始化其 value 字段。
static TCKindtk_objref
          TCKind 常量,使用 TCKind._tk_objref 初始化其 value 字段。
static TCKindtk_octet
          TCKind 常量,使用 TCKind._tk_octet 初始化其 value 字段。
static TCKindtk_Principal
          TCKind 常量,使用 TCKind._tk_Principal 初始化其 value 字段。
static TCKindtk_sequence
          TCKind 常量,使用 TCKind._tk_sequence 初始化其 value 字段。
static TCKindtk_short
          TCKind 常量,使用 TCKind._tk_short 初始化其 value 字段。
static TCKindtk_string
          TCKind 常量,使用 TCKind._tk_string 初始化其 value 字段。
static TCKindtk_struct
          TCKind 常量,使用 TCKind._tk_struct 初始化其 value 字段。
static TCKindtk_TypeCode
          TCKind 常量,使用 TCKind._tk_TypeCode 初始化其 value 字段。
static TCKindtk_ulong
          TCKind 常量,使用 TCKind._tk_ulong 初始化其 value 字段。
static TCKindtk_ulonglong
          TCKind 常量,使用 TCKind._tk_ulonglong 初始化其 value 字段。
static TCKindtk_union
          TCKind 常量,使用 TCKind._tk_union 初始化其 value 字段。
static TCKindtk_ushort
          TCKind 常量,使用 TCKind._tk_ushort 初始化其 value 字段。
static TCKindtk_value
          TCKind 常量,使用 TCKind._tk_value 初始化其 value 字段。
static TCKindtk_value_box
          TCKind 常量,使用 TCKind._tk_value_box 初始化其 value 字段。
static TCKindtk_void
          TCKind 常量,使用 TCKind._tk_void 初始化其 value 字段。
static TCKindtk_wchar
          TCKind 常量,使用 TCKind._tk_wchar 初始化其 value 字段。
static TCKindtk_wstring
          TCKind 常量,使用 TCKind._tk_wstring 初始化其 value 字段。
 
构造方法摘要
protected TCKind(int _value)
          已过时。 不要使用此构造方法,因为根据 OMG 规范,此方法应该是私有的。使用 from_int(int) 代替。
 
方法摘要
static TCKindfrom_int(int i)
          将给定 int 值转换成相应的 TCKind 实例。
 intvalue()
          检索此 TCKind 实例的值。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

_tk_null

public static final int _tk_null
用于 null IDL 数据类型的 int 常量。

另请参见:
常量字段值

_tk_void

public static final int _tk_void
用于 IDL 数据类型 voidint 常量。

另请参见:
常量字段值

_tk_short

public static final int _tk_short
用于 IDL 数据类型 shortint 常量。

另请参见:
常量字段值

_tk_long

public static final int _tk_long
用于 IDL 数据类型 longint 常量。

另请参见:
常量字段值

_tk_ushort

public static final int _tk_ushort
用于 IDL 数据类型 ushortint 常量。

另请参见:
常量字段值

_tk_ulong

public static final int _tk_ulong
用于 IDL 数据类型 ulongint 常量。

另请参见:
常量字段值

_tk_float

public static final int _tk_float
用于 IDL 数据类型 floatint 常量。

另请参见:
常量字段值