JavaTM 2 Platform
Standard Ed. 6

org.omg.CORBA
类 ServiceInformationHolder

java.lang.Object
  继承者 org.omg.CORBA.ServiceInformationHolder
所有已实现的接口:
Streamable

public final class ServiceInformationHolder
extends Object
implements Streamable

ServiceInformation 的 Holder。关于 Holder 文件的更多信息,请参阅“生成的文件:Holder 文件”

用于 ServiceInformation 对象的 Holder 类,用来存储 IDL 方法中的 "out" 和 "inout" 参数。如果 IDL 方法签名将一个 IDL xxx 作为 "out" 或 "inout" 参数,则程序员必须传递一个 ServiceInformationHolder 实例作为方法调用中的相应参数;对于 "inout" 参数,程序员还必须填充将被发送到服务器的 "in" 值。在方法调用返回之前,ORB 将填充与从服务器返回的 "out" 值对应的值。

如果 myServiceInformationHolderServiceInformationHolder 实例,则可以使用 myServiceInformationHolder.value 访问存储在其 value 字段中的值。


字段摘要
 ServiceInformation value
          此 ServiceInformationHolder 对象保存在其 value 字段中的 ServiceInformation 值。
 
构造方法摘要
ServiceInformationHolder()
          构造一个新的 ServiceInformationHolder 对象,将其 value 字段初始化为 null。
ServiceInformationHolder(ServiceInformation arg)
          构造一个新的 ServiceInformationHolder 对象,将其 value 字段初始化为给定的 ServiceInformation 对象。
 
方法摘要
 void _read(InputStream in)
          从输入流 in 中读取已解组数据,并将它赋予此 ServiceInformationHolder 对象的 value 字段。
 TypeCode _type()
          检索对应于此 ServiceInformationHolder 对象的 value 字段中所保存的值的 TypeCode 对象。
 void _write(OutputStream out)
          将此 ServiceInformationHolder 对象的 value 字段中的值编组到输出流 out
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

value

public ServiceInformation value
ServiceInformationHolder 对象保存在其 value 字段中的 ServiceInformation 值。

构造方法详细信息

ServiceInformationHolder

public ServiceInformationHolder()
构造一个新的 ServiceInformationHolder 对象,将其 value 字段初始化为 null。


ServiceInformationHolder

public ServiceInformationHolder(ServiceInformation arg)
构造一个新的 ServiceInformationHolder 对象,将其 value 字段初始化为给定的 ServiceInformation 对象。

参数:
arg - ServiceInformation 对象,用来初始化新建 ServiceInformationHolder 对象的 value 字段
方法详细信息

_write

public void _write(OutputStream out)
将此 ServiceInformationHolder 对象的 value 字段中的值编组到输出流 out

指定者:
接口 Streamable 中的 _write
参数:
out - 将包含 CDR 格式数据的 OutputStream 对象

_read

public void _read(InputStream in)
从输入流 in 中读取已解组数据,并将它赋予此 ServiceInformationHolder 对象的 value 字段。

指定者:
接口 Streamable 中的 _read
参数:
in - 包含在线获取的 CDR 格式数据的 InputStream 对象。

_type

public TypeCode _type()
检索对应于此 ServiceInformationHolder 对象的 value 字段中所保存的值的 TypeCode 对象。

指定者:
接口 Streamable 中的 _type
返回:
ServiceInformationHolder 对象中所保存值的类型代码

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only