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" 值對應的值。

如果 myServiceInformationHolder 是 ServiceInformationHolder 實例,則可以使用 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。