java.applet

java.awt

java.awt.color

java.awt.datatransfer

java.awt.dnd

java.awt.event

java.awt.font

java.awt.geom

java.awt.im

java.awt.im.spi

java.awt.image

java.awt.image.renderable

java.awt.print

java.beans

java.beans.beancontext

java.io

java.lang

java.lang.annotation

java.lang.instrument

java.lang.management

java.lang.ref

java.lang.reflect

java.math

java.net

java.nio

java.nio.channels

java.nio.channels.spi

java.nio.charset

java.nio.charset.spi

java.rmi

java.rmi.activation

java.rmi.dgc

java.rmi.registry

java.rmi.server

java.security

java.security.acl

java.security.cert

java.security.interfaces

java.security.spec

java.sql

java.text

java.util

java.util.concurrent

java.util.concurrent.atomic

java.util.concurrent.locks

java.util.jar

java.util.logging

java.util.prefs

java.util.regex

java.util.zip

javax.accessibility

javax.activity

javax.crypto

javax.crypto.interfaces

javax.crypto.spec

javax.imageio

javax.imageio.event

javax.imageio.metadata

javax.imageio.plugins.bmp

javax.imageio.plugins.jpeg

javax.imageio.spi

javax.imageio.stream

javax.management

javax.management.loading

javax.management.modelmbean

javax.management.monitor

javax.management.openmbean

javax.management.relation

javax.management.remote

javax.management.remote.rmi

javax.management.timer

javax.naming

javax.naming.directory

javax.naming.event

javax.naming.ldap

javax.naming.spi

javax.net

javax.net.ssl

javax.print

javax.print.attribute

javax.print.attribute.standard

javax.print.event

javax.rmi

javax.rmi.CORBA

javax.rmi.ssl

javax.security.auth

javax.security.auth.callback

javax.security.auth.kerberos

javax.security.auth.login

javax.security.auth.spi

javax.security.auth.x500

javax.security.cert

javax.security.sasl

javax.sound.midi

javax.sound.midi.spi

javax.sound.sampled

javax.sound.sampled.spi

javax.sql

javax.sql.rowset

javax.sql.rowset.serial

javax.sql.rowset.spi

javax.swing

javax.swing.border

javax.swing.colorchooser

javax.swing.event

javax.swing.filechooser

javax.swing.plaf

javax.swing.plaf.basic

javax.swing.plaf.metal

javax.swing.plaf.multi

javax.swing.plaf.synth

javax.swing.table

javax.swing.text

javax.swing.text

javax.swing.text.parser

javax.swing.text.rtf

javax.swing.tree

javax.swing.undo

javax.transaction

javax.transaction.xa

javax.xml

javax.xml.datatype

javax.xml.namespace

javax.xml.parsers

javax.xml.transform

javax.xml.transform.dom

javax.xml.transform.sax

javax.xml.transform.stream

javax.xml.validation

javax.xml.xpath

org.ietf.jgss

org.omg.CORBA

org.omg.CORBA_2_3

org.omg.CORBA_2_3.portable

org.omg.CORBA.DynAnyPackage

org.omg.CORBA.ORBPackage

org.omg.CORBA.portable

org.omg.CORBA.TypeCodePackage

org.omg.CosNaming

org.omg.CosNaming.NamingContextExtPackage

org.omg.CosNaming.NamingContextPackage

org.omg.Dynamic

org.omg.DynamicAny

org.omg.DynamicAny.DynAnyFactoryPackage

org.omg.DynamicAny.DynAnyPackage

org.omg.IOP

org.omg.IOP.CodecFactoryPackage

org.omg.IOP.CodecPackage

org.omg.Messaging

org.omg.PortableInterceptor

org.omg.PortableInterceptor.ORBInitInfoPackage

org.omg.PortableServer

org.omg.PortableServer.CurrentPackage

org.omg.PortableServer.POAManagerPackage

org.omg.PortableServer.POAPackage

org.omg.PortableServer.portable

org.omg.PortableServer.ServantLocatorPackage

org.omg.SendingContext

org.omg.stub.java.rmi

org.w3c.dom

org.w3c.dom.bootstrap

org.w3c.dom.events

org.w3c.dom.ls

org.xml.sax

org.xml.sax.ext

org.xml.sax.helpers

allclasses-frame

allclasses-noframe

constant-values

deprecated-list

help-doc

JavaTM 2 Platform
Standard Ed. 5.0

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 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
 

字段详细信息

_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 常量。

另请参见:
常量字段值

_tk_double

public static final int _tk_double
用于 IDL 数据类型 doubleint 常量。

另请参见:
常量字段值

_tk_boolean

public static final int _tk_boolean
用于 IDL 数据类型 booleanint 常量。

另请参见:
常量字段值

_tk_char

public static final int _tk_char
用于 IDL 数据类型 charint 常量。

另请参见:
常量字段值

_tk_octet

public static final int _tk_octet
用于 IDL 数据类型 octetint 常量。

另请参见:
常量字段值

_tk_any

public static final int _tk_any
用于 IDL 数据类型 anyint 常量。

另请参见:
常量字段值

_tk_TypeCode

public static final int _tk_TypeCode
用于 IDL 数据类型 TypeCodeint 常量。

另请参见:
常量字段值

_tk_Principal

public static final int _tk_Principal
用于 IDL 数据类型 Principalint 常量。

另请参见:
常量字段值

_tk_objref

public static final int _tk_objref
用于 IDL 数据类型 objrefint 常量。

另请参见:
常量字段值

_tk_struct

public static final int _tk_struct
用于 IDL 数据类型 structint 常量。

另请参见:
常量字段值

_tk_union

public static final int _tk_union
用于 IDL 数据类型 unionint 常量。

另请参见:
常量字段值

_tk_enum

public static final int _tk_enum
用于 IDL 数据类型 enumint 常量。

另请参见:
常量字段值

_tk_string

public static final int _tk_string
用于 IDL 数据类型 stringint 常量。

另请参见:
常量字段值

_tk_sequence

public static final int _tk_sequence
用于 IDL 数据类型 sequenceint 常量。

另请参见:
常量字段值

_tk_array

public static final int _tk_array
用于 IDL 数据类型 arrayint 常量。

另请参见:
常量字段值

_tk_alias

public static final int _tk_alias
用于 IDL 数据类型 aliasint 常量。

另请参见:
常量字段值

_tk_except

public static final int _tk_except
用于 IDL 数据类型 exceptint 常量。

另请参见:
常量字段值

_tk_longlong

public static final int _tk_longlong
用于 IDL 数据类型 longlongint 常量。

另请参见:
常量字段值

_tk_ulonglong

public static final int _tk_ulonglong
用于 IDL 数据类型 ulonglongint 常量。

另请参见:
常量字段值

_tk_longdouble

public static final int _tk_longdouble
用于 IDL 数据类型 longdoubleint 常量。

另请参见:
常量字段值

_tk_wchar

public static final int _tk_wchar
用于 IDL 数据类型 wcharint 常量。

另请参见:
常量字段值

_tk_wstring

public static final int _tk_wstring
用于 IDL 数据类型 wstringint 常量。

另请参见:
常量字段值

_tk_fixed

public static final int _tk_fixed
用于 IDL 数据类型 fixedint 常量。

另请参见:
常量字段值

_tk_value

public static final int _tk_value
用于 IDL 数据类型 valueint 常量。

另请参见:
常量字段值

_tk_value_box

public static final int _tk_value_box
用于 IDL 数据类型 value_boxint 常量。

另请参见:
常量字段值

_tk_native

public static final int _tk_native
用于 IDL 数据类型 nativeint 常量。

另请参见:
常量字段值

_tk_abstract_interface

public static final int _tk_abstract_interface
用于 IDL 数据类型 abstract interfaceint 常量。

另请参见:
常量字段值

tk_null

public static final TCKind tk_null
TCKind 常量,使用 TCKind._tk_null 初始化其 value 字段。


tk_void

public static final TCKind tk_void
TCKind 常量,使用 TCKind._tk_void 初始化其 value 字段。


tk_short

public static final TCKind tk_short
TCKind 常量,使用 TCKind._tk_short 初始化其 value 字段。


tk_long

public static final TCKind tk_long
TCKind 常量,使用 TCKind._tk_long 初始化其 value 字段。


tk_ushort

public static final TCKind tk_ushort
TCKind 常量,使用 TCKind._tk_ushort 初始化其 value 字段。


tk_ulong

public static final TCKind tk_ulong
TCKind 常量,使用 TCKind._tk_ulong 初始化其 value 字段。


tk_float

public static final TCKind tk_float
TCKind 常量,使用 TCKind._tk_float 初始化其 value 字段。


tk_double

public static final TCKind tk_double
TCKind 常量,使用 TCKind._tk_double 初始化其 value 字段。


tk_boolean

public static final TCKind tk_boolean
TCKind 常量,使用 TCKind._tk_boolean 初始化其 value 字段。


tk_char

public static final TCKind tk_char
TCKind 常量,使用 TCKind._tk_char 初始化其 value 字段。


tk_octet

public static final TCKind tk_octet
TCKind 常量,使用 TCKind._tk_octet 初始化其 value 字段。


tk_any

public static final TCKind tk_any
TCKind 常量,使用 TCKind._tk_any 初始化其 value 字段。


tk_TypeCode

public static final TCKind tk_TypeCode
TCKind 常量,使用 TCKind._tk_TypeCode 初始化其 value 字段。


tk_Principal

public static final TCKind tk_Principal
TCKind 常量,使用 TCKind._tk_Principal 初始化其 value 字段。


tk_objref

public static final TCKind tk_objref
TCKind 常量,使用 TCKind._tk_objref 初始化其 value 字段。


tk_struct

public static final TCKind tk_struct
TCKind 常量,使用 TCKind._tk_struct 初始化其 value 字段。


tk_union

public static final TCKind tk_union
TCKind 常量,使用 TCKind._tk_union 初始化其 value 字段。


tk_enum

public static final TCKind tk_enum
TCKind 常量,使用 TCKind._tk_enum 初始化其 value 字段。


tk_string

public static final TCKind tk_string
TCKind 常量,使用 TCKind._tk_string 初始化其 value 字段。


tk_sequence

public static final TCKind tk_sequence
TCKind 常量,使用 TCKind._tk_sequence 初始化其 value 字段。


tk_array

public static final TCKind tk_array
TCKind 常量,使用 TCKind._tk_array 初始化其 value 字段。


tk_alias

public static final TCKind tk_alias
TCKind 常量,使用 TCKind._tk_alias 初始化其 value 字段。


tk_except

public static final TCKind tk_except
TCKind 常量,使用 TCKind._tk_except 初始化其 value 字段。


tk_longlong

public static final TCKind tk_longlong
TCKind 常量,使用 TCKind._tk_longlong 初始化其 value 字段。


tk_ulonglong

public static final TCKind tk_ulonglong
TCKind 常量,使用 TCKind._tk_ulonglong 初始化其 value 字段。


tk_longdouble

public static final TCKind tk_longdouble
TCKind 常量,使用 TCKind._tk_longdouble 初始化其 value 字段。


tk_wchar

public static final TCKind tk_wchar
TCKind 常量,使用 TCKind._tk_wchar 初始化其 value 字段。


tk_wstring

public static final TCKind tk_wstring
TCKind 常量,使用 TCKind._tk_wstring 初始化其 value 字段。


tk_fixed

public static final TCKind tk_fixed
TCKind 常量,使用 TCKind._tk_fixed 初始化其 value 字段。


tk_value

public static final TCKind tk_value
TCKind 常量,使用 TCKind._tk_value 初始化其 value 字段。


tk_value_box

public static final TCKind tk_value_box
TCKind 常量,使用 TCKind._tk_value_box 初始化其 value 字段。


tk_native

public static final TCKind tk_native
TCKind 常量,使用 TCKind._tk_native 初始化其 value 字段。


tk_abstract_interface

public static final TCKind tk_abstract_interface
TCKind 常量,使用 TCKind._tk_abstract_interface 初始化其 value 字段。

构造方法详细信息

TCKind

@Deprecated
protected TCKind(int _value)
已过时。 不要使用此构造方法,因为根据 OMG 规范,此方法应该是私有的。使用 from_int(int) 代替。

创建一个新的 TCKind 实例,使用给定 int 值初始化。

参数:
_value - 要转换的 int 值。它必须是 TCKind 类中的 int 常量之一。
方法详细信息

value

public int value()
检索此 TCKind 实例的值。

返回:
一个 int 值,它表示用于此 TCKind 实例的 IDL 数据类型种类

from_int

public static TCKind from_int(int i)
将给定 int 值转换成相应的 TCKind 实例。

参数:
i - 要转换的 int 值。它必须是 TCKind 类中的 int 常量之一。
返回:
value 字段与给定 int 值匹配的 TCKind 实例
抛出:
BAD_PARAM - 如果给定 int 与任何 TCKind 实例的 _value 字段都不匹配

JavaTM 2 Platform
Standard Ed. 5.0

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策