|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.omg.CORBA.TCKind
public class TCKind
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 类型 string 的 TCKind 实例,该 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 interface 的 int 常量。 |
static int |
_tk_alias
用于 IDL 数据类型 alias 的 int 常量。 |
static int |
_tk_any
用于 IDL 数据类型 any 的 int 常量。 |
static int |
_tk_array
用于 IDL 数据类型 array 的 int 常量。 |
static int |
_tk_boolean
用于 IDL 数据类型 boolean 的 int 常量。 |
static int |
_tk_char
用于 IDL 数据类型 char 的 int 常量。 |
static int |
_tk_double
用于 IDL 数据类型 double 的 int 常量。 |
static int |
_tk_enum
用于 IDL 数据类型 enum 的 int 常量。 |
static int |
_tk_except
用于 IDL 数据类型 except 的 int 常量。 |
static int |
_tk_fixed
用于 IDL 数据类型 fixed 的 int 常量。 |
static int |
_tk_float
用于 IDL 数据类型 float 的 int 常量。 |
static int |
_tk_long
用于 IDL 数据类型 long 的 int 常量。 |
static int |
_tk_longdouble
用于 IDL 数据类型 longdouble 的 int 常量。 |
static int |
_tk_longlong
用于 IDL 数据类型 longlong 的 int 常量。 |
static int |
_tk_native
用于 IDL 数据类型 native 的 int 常量。 |
static int |
_tk_null
用于 null IDL 数据类型的 int 常量。 |
static int |
_tk_objref
用于 IDL 数据类型 objref 的 int 常量。 |
static int |
_tk_octet
用于 IDL 数据类型 octet 的 int 常量。 |
static int |
_tk_Principal
用于 IDL 数据类型 Principal 的 int 常量。 |
static int |
_tk_sequence
用于 IDL 数据类型 sequence 的 int 常量。 |
static int |
_tk_short
用于 IDL 数据类型 short 的 int 常量。 |
static int |
_tk_string
用于 IDL 数据类型 string 的 int 常量。 |
static int |
_tk_struct
用于 IDL 数据类型 struct 的 int 常量。 |
static int |
_tk_TypeCode
用于 IDL 数据类型 TypeCode 的 int 常量。 |
static int |
_tk_ulong
用于 IDL 数据类型 ulong 的 int 常量。 |
static int |
_tk_ulonglong
用于 IDL 数据类型 ulonglong 的 int 常量。 |
static int |
_tk_union
用于 IDL 数据类型 union 的 int 常量。 |
static int |
_tk_ushort
用于 IDL 数据类型 ushort 的 int 常量。 |
static int |
_tk_value
用于 IDL 数据类型 value 的 int 常量。 |
static int |
_tk_value_box
用于 IDL 数据类型 value_box 的 int 常量。 |
static int |
_tk_void
用于 IDL 数据类型 void 的 int 常量。 |
static int |
_tk_wchar
用于 IDL 数据类型 wchar 的 int 常量。 |
static int |
_tk_wstring
用于 IDL 数据类型 wstring 的 int 常量。 |
static TCKind |
tk_abstract_interface
TCKind 常量,使用 TCKind._tk_abstract_interface 初始化其 value 字段。 |
static TCKind |
tk_alias
TCKind 常量,使用 TCKind._tk_alias 初始化其 value 字段。 |
static TCKind |
tk_any
TCKind 常量,使用 TCKind._tk_any 初始化其 value 字段。 |
static TCKind |
tk_array
TCKind 常量,使用 TCKind._tk_array 初始化其 value 字段。 |
static TCKind |
tk_boolean
TCKind 常量,使用 TCKind._tk_boolean 初始化其 value 字段。 |
static TCKind |
tk_char
TCKind 常量,使用 TCKind._tk_char 初始化其 value 字段。 |
static TCKind |
tk_double
TCKind 常量,使用 TCKind._tk_double 初始化其 value 字段。 |
static TCKind |
tk_enum
TCKind 常量,使用 TCKind._tk_enum 初始化其 value 字段。 |
static TCKind |
tk_except
TCKind 常量,使用 TCKind._tk_except 初始化其 value 字段。 |
static TCKind |
tk_fixed
TCKind 常量,使用 TCKind._tk_fixed 初始化其 value 字段。 |
static TCKind |
tk_float
TCKind 常量,使用 TCKind._tk_float 初始化其 value 字段。 |
static TCKind |
tk_long
TCKind 常量,使用 TCKind._tk_long 初始化其 value 字段。 |
static TCKind |
tk_longdouble
TCKind 常量,使用 TCKind._tk_longdouble 初始化其 value 字段。 |
static TCKind |
tk_longlong
TCKind 常量,使用 TCKind._tk_longlong 初始化其 value 字段。 |
static TCKind |
tk_native
TCKind 常量,使用 TCKind._tk_native 初始化其 value 字段。 |
static TCKind |
tk_null
TCKind 常量,使用 TCKind._tk_null 初始化其 value 字段。 |
static TCKind |
tk_objref
TCKind 常量,使用 TCKind._tk_objref 初始化其 value 字段。 |
static TCKind |
tk_octet
TCKind 常量,使用 TCKind._tk_octet 初始化其 value 字段。 |
static TCKind |
tk_Principal
TCKind 常量,使用 TCKind._tk_Principal 初始化其 value 字段。 |
static TCKind |
tk_sequence
TCKind 常量,使用 TCKind._tk_sequence 初始化其 value 字段。 |
static TCKind |
tk_short
TCKind 常量,使用 TCKind._tk_short 初始化其 value 字段。 |
static TCKind |
tk_string
TCKind 常量,使用 TCKind._tk_string 初始化其 value 字段。 |
static TCKind |
tk_struct
TCKind 常量,使用 TCKind._tk_struct 初始化其 value 字段。 |
static TCKind |
tk_TypeCode
TCKind 常量,使用 TCKind._tk_TypeCode 初始化其 value 字段。 |
static TCKind |
tk_ulong
TCKind 常量,使用 TCKind._tk_ulong 初始化其 value 字段。 |
static TCKind |
tk_ulonglong
TCKind 常量,使用 TCKind._tk_ulonglong 初始化其 value 字段。 |
static TCKind |
tk_union
TCKind 常量,使用 TCKind._tk_union 初始化其 value 字段。 |
static TCKind |
tk_ushort
TCKind 常量,使用 TCKind._tk_ushort 初始化其 value 字段。 |
static TCKind |
tk_value
TCKind 常量,使用 TCKind._tk_value 初始化其 value 字段。 |
static TCKind |
tk_value_box
TCKind 常量,使用 TCKind._tk_value_box 初始化其 value 字段。 |
static TCKind |
tk_void
TCKind 常量,使用 TCKind._tk_void 初始化其 value 字段。 |
static TCKind |
tk_wchar
TCKind 常量,使用 TCKind._tk_wchar 初始化其 value 字段。 |
static TCKind |
tk_wstring
TCKind 常量,使用 TCKind._tk_wstring 初始化其 value 字段。 |
| 构造方法摘要 | |
|---|---|
protected |
TCKind(int _value)
已过时。 不要使用此构造方法,因为根据 OMG 规范,此方法应该是私有的。使用 from_int(int) 代替。 |
| 方法摘要 | |
|---|---|
static TCKind |
from_int(int i)
将给定 int 值转换成相应的 TCKind 实例。 |
int |
value()
检索此 TCKind 实例的值。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int _tk_null
null IDL 数据类型的 int 常量。
public static final int _tk_void
void 的 int 常量。
public static final int _tk_short
short 的 int 常量。
public static final int _tk_long
long 的 int 常量。
public static final int _tk_ushort
ushort 的 int 常量。
public static final int _tk_ulong
ulong 的 int 常量。
public static final int _tk_float
float 的 int 常量。
public static final int _tk_double
double 的 int 常量。
public static final int _tk_boolean
boolean 的 int 常量。
public static final int _tk_char
char 的 int 常量。
public static final int _tk_octet
octet 的 int 常量。
public static final int _tk_any
any 的 int 常量。
public static final int _tk_TypeCode
TypeCode 的 int 常量。
public static final int _tk_Principal
Principal 的 int 常量。
public static final int _tk_objref
objref 的 int 常量。
public static final int _tk_struct
struct 的 int 常量。
public static final int _tk_union
union 的 int 常量。
public static final int _tk_enum
enum 的 int 常量。
public static final int _tk_string
string 的 int 常量。
public static final int _tk_sequence
sequence 的 int 常量。
public static final int _tk_array
array 的 int 常量。
public static final int _tk_alias
alias 的 int 常量。
public static final int _tk_except
except 的 int 常量。
public static final int _tk_longlong
longlong 的 int 常量。
public static final int _tk_ulonglong
ulonglong 的 int 常量。
public static final int _tk_longdouble
longdouble 的 int 常量。
public static final int _tk_wchar
wchar 的 int 常量。
public static final int _tk_wstring
wstring 的 int 常量。
public static final int _tk_fixed
fixed 的 int 常量。
public static final int _tk_value
value 的 int 常量。
public static final int _tk_value_box
value_box 的 int 常量。
public static final int _tk_native
native 的 int 常量。
public static final int _tk_abstract_interface
abstract interface 的 int 常量。
public static final TCKind tk_null
TCKind 常量,使用 TCKind._tk_null 初始化其 value 字段。
public static final TCKind tk_void
TCKind 常量,使用 TCKind._tk_void 初始化其 value 字段。
public static final TCKind tk_short
TCKind 常量,使用 TCKind._tk_short 初始化其 value 字段。
public static final TCKind tk_long
TCKind 常量,使用 TCKind._tk_long 初始化其 value 字段。
public static final TCKind tk_ushort
TCKind 常量,使用 TCKind._tk_ushort 初始化其 value 字段。
public static final TCKind tk_ulong
TCKind 常量,使用 TCKind._tk_ulong 初始化其 value 字段。
public static final TCKind tk_float
TCKind 常量,使用 TCKind._tk_float 初始化其 value 字段。
public static final TCKind tk_double
TCKind 常量,使用 TCKind._tk_double 初始化其 value 字段。
public static final TCKind tk_boolean
TCKind 常量,使用 TCKind._tk_boolean 初始化其 value 字段。
public static final TCKind tk_char
TCKind 常量,使用 TCKind._tk_char 初始化其 value 字段。
public static final TCKind tk_octet
TCKind 常量,使用 TCKind._tk_octet 初始化其 value 字段。
public static final TCKind tk_any
TCKind 常量,使用 TCKind._tk_any 初始化其 value 字段。
public static final TCKind tk_TypeCode
TCKind 常量,使用 TCKind._tk_TypeCode 初始化其 value 字段。
public static final TCKind tk_Principal
TCKind 常量,使用 TCKind._tk_Principal 初始化其 value 字段。
public static final TCKind tk_objref
TCKind 常量,使用 TCKind._tk_objref 初始化其 value 字段。
public static final TCKind tk_struct
TCKind 常量,使用 TCKind._tk_struct 初始化其 value 字段。
public static final TCKind tk_union
TCKind 常量,使用 TCKind._tk_union 初始化其 value 字段。
public static final TCKind tk_enum
TCKind 常量,使用 TCKind._tk_enum 初始化其 value 字段。
public static final TCKind tk_string
TCKind 常量,使用 TCKind._tk_string 初始化其 value 字段。
public static final TCKind tk_sequence
TCKind 常量,使用 TCKind._tk_sequence 初始化其 value 字段。
public static final TCKind tk_array
TCKind 常量,使用 TCKind._tk_array 初始化其 value 字段。
public static final TCKind tk_alias
TCKind 常量,使用 TCKind._tk_alias 初始化其 value 字段。
public static final TCKind tk_except
TCKind 常量,使用 TCKind._tk_except 初始化其 value 字段。
public static final TCKind tk_longlong
TCKind 常量,使用 TCKind._tk_longlong 初始化其 value 字段。
public static final TCKind tk_ulonglong
TCKind 常量,使用 TCKind._tk_ulonglong 初始化其 value 字段。
public static final TCKind tk_longdouble
TCKind 常量,使用 TCKind._tk_longdouble 初始化其 value 字段。
public static final TCKind tk_wchar
TCKind 常量,使用 TCKind._tk_wchar 初始化其 value 字段。
public static final TCKind tk_wstring
TCKind 常量,使用 TCKind._tk_wstring 初始化其 value 字段。
public static final TCKind tk_fixed
TCKind 常量,使用 TCKind._tk_fixed 初始化其 value 字段。
public static final TCKind tk_value
TCKind 常量,使用 TCKind._tk_value 初始化其 value 字段。
public static final TCKind tk_value_box
TCKind 常量,使用 TCKind._tk_value_box 初始化其 value 字段。
public static final TCKind tk_native
TCKind 常量,使用 TCKind._tk_native 初始化其 value 字段。
public static final TCKind tk_abstract_interface
TCKind 常量,使用 TCKind._tk_abstract_interface 初始化其 value 字段。
| 构造方法详细信息 |
|---|
@Deprecated protected TCKind(int _value)
from_int(int) 代替。
TCKind 实例,使用给定 int 值初始化。
_value - 要转换的 int 值。它必须是 TCKind 类中的 int 常量之一。| 方法详细信息 |
|---|
public int value()
TCKind 实例的值。
int 值,它表示用于此 TCKind 实例的 IDL 数据类型种类public static TCKind from_int(int i)
int 值转换成相应的 TCKind 实例。
i - 要转换的 int 值。它必须是 TCKind 类中的 int 常量之一。
value 字段与给定 int 值匹配的 TCKind 实例
BAD_PARAM - 如果给定 int 与任何 TCKind 实例的 _value 字段都不匹配
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。