uTools-Manuals/docs/java/org/omg/CORBA/AnyHolder.html

286 lines
12 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
org.omg.CORBA
</div>
<h2 class="title" title="Class AnyHolder">Class AnyHolder</h2>
</div><div class="contentContainer">
<ul class="inheritance">
<li><a href="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.omg.CORBA.AnyHolder</li>
</ul> </li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Implemented Interfaces:
</dt>
<dd>
<span><a href="../../../org/omg/CORBA/portable/Streamable.html" title="界面在org.omg.CORBA.portable中">Streamable</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public final class <span class="typeNameLabel">AnyHolder</span>
extends <a href="../../../java/lang/Object.html" title="class in java.lang">Object</a>
implements <a href="../../../org/omg/CORBA/portable/Streamable.html" title="interface in org.omg.CORBA.portable">Streamable</a></pre>
<div class="block">
<span>持有人为<tt>Any</tt></span>
<span>有关Holder文件的更多信息请参阅<a href="doc-files/generatedfiles.html#holder">"Generated Files: Holder Files"</a></span>
<p> <span>用于在IDL方法中存储“out”和“inout”参数的<code>Any</code>对象的持有者类。</span> <span>如果IDL方法签名具有IDL <code>any</code>作为“out”或“inout”参数则程序员必须传递一个<code>AnyHolder</code>的实例作为方法调用中的相应参数;</span> <span>对于“inout”参数程序员还必须填写要发送到服务器的“in”值。</span> <span>在方法调用返回之前ORB将填写与从服务器返回的“out”值对应的值。</span> </p>
<p> <span>如果<code>myAnyHolder</code>是实例<code>AnyHolder</code> ,存储在其值<code>value</code>字段可以与被访问<code>myAnyHolder.value</code></span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
JDK1.2
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- --> </a> <h3>Field Summary</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
<caption>
<span>Fields</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/omg/CORBA/Any.html" title="class in org.omg.CORBA">Any</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/AnyHolder.html#value">value</a></span></code>
<div class="block">
<code>Any</code>所持
<code>AnyHolder</code>这个价值
<code>AnyHolder</code>对象。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- --> </a> <h3>构造方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<caption>
<span>构造方法</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/AnyHolder.html#AnyHolder--">AnyHolder</a></span>()</code>
<div class="block">
构造一个新的
<code>AnyHolder</code>对象,其
<code>value</code>字段初始化为
<code>null</code>
</div> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/AnyHolder.html#AnyHolder-org.omg.CORBA.Any-">AnyHolder</a></span>(<a href="../../../org/omg/CORBA/Any.html" title="class in org.omg.CORBA">Any</a> initial)</code>
<div class="block">
构造一个新
<code>AnyHolder</code>给定对象
<code>Any</code>对象。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t4"><span><a href="javascript:show(8);">具体的方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/AnyHolder.html#Z:Z_read-org.omg.CORBA.portable.InputStream-">_read</a></span>(<a href="../../../org/omg/CORBA/portable/InputStream.html" title="class in org.omg.CORBA.portable">InputStream</a> input)</code>
<div class="block">
<code>input</code>读取,并通过未编组的数据启动持有人的值。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code><a href="../../../org/omg/CORBA/TypeCode.html" title="class in org.omg.CORBA">TypeCode</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/AnyHolder.html#Z:Z_type--">_type</a></span>()</code>
<div class="block">
返回对应于该
<code>TypeCode</code>对象中保存的值的
<code>AnyHolder</code>对象。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/AnyHolder.html#Z:Z_write-org.omg.CORBA.portable.OutputStream-">_write</a></span>(<a href="../../../org/omg/CORBA/portable/OutputStream.html" title="class in org.omg.CORBA.portable">OutputStream</a> output)</code>
<div class="block">
<code>AnyHolder</code>对象的
<code>output</code>的值。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- --> </a> <h3>Methods inherited from class java.lang.<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></h3> <code><a href="../../../java/lang/Object.html#clone--">clone</a>, <a href="../../../java/lang/Object.html#equals-java.lang.Object-">equals</a>, <a href="../../../java/lang/Object.html#finalize--">finalize</a>, <a href="../../../java/lang/Object.html#getClass--">getClass</a>, <a href="../../../java/lang/Object.html#hashCode--">hashCode</a>, <a href="../../../java/lang/Object.html#notify--">notify</a>, <a href="../../../java/lang/Object.html#notifyAll--">notifyAll</a>, <a href="../../../java/lang/Object.html#toString--">toString</a>, <a href="../../../java/lang/Object.html#wait--">wait</a>, <a href="../../../java/lang/Object.html#wait-long-">wait</a>, <a href="../../../java/lang/Object.html#wait-long-int-">wait</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- --> </a> <h3>字段详细信息</h3> <a name="value">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>value</h4> <pre>public <a href="../../../org/omg/CORBA/Any.html" title="class in org.omg.CORBA">Any</a> value</pre>
<div class="block">
<code>Any</code>价值由本
<code>AnyHolder</code>持有。
</div> </li>
</ul> </li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- --> </a> <h3>构造方法详细信息</h3> <a name="AnyHolder--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>AnyHolder</h4> <pre>public AnyHolder()</pre>
<div class="block">
构造一个新的
<code>AnyHolder</code>对象,其
<code>value</code>字段初始化为
<code>null</code>
</div> </li>
</ul> <a name="AnyHolder-org.omg.CORBA.Any-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>AnyHolder</h4> <pre>public AnyHolder(<a href="../../../org/omg/CORBA/Any.html" title="class in org.omg.CORBA">Any</a> initial)</pre>
<div class="block">
构造一个新
<code>AnyHolder</code>给定对象
<code>Any</code>对象。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>initial</code> -
<code>Any</code>对象,用于初始化新的
<code>AnyHolder</code>对象的
<code>value</code>字段
</dd>
</dl> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="Z:Z_read-org.omg.CORBA.portable.InputStream-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>_read</h4> <pre>public void _read(<a href="../../../org/omg/CORBA/portable/InputStream.html" title="class in org.omg.CORBA.portable">InputStream</a> input)</pre>
<div class="block">
<code>input</code>读取,并通过未编组的数据激活持有人的价值。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../org/omg/CORBA/portable/Streamable.html#Z:Z_read-org.omg.CORBA.portable.InputStream-">_read</a></code>在界面
<code><a href="../../../org/omg/CORBA/portable/Streamable.html" title="interface in org.omg.CORBA.portable">Streamable</a></code>
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>input</code> - 包含来自电线的CDR格式数据的InputStream。
</dd>
</dl> </li>
</ul> <a name="Z:Z_write-org.omg.CORBA.portable.OutputStream-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>_write</h4> <pre>public void _write(<a href="../../../org/omg/CORBA/portable/OutputStream.html" title="class in org.omg.CORBA.portable">OutputStream</a> output)</pre>
<div class="block">
<code>AnyHolder</code>对象的
<code>output</code>的值。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../org/omg/CORBA/portable/Streamable.html#Z:Z_write-org.omg.CORBA.portable.OutputStream-">_write</a></code>在界面
<code><a href="../../../org/omg/CORBA/portable/Streamable.html" title="interface in org.omg.CORBA.portable">Streamable</a></code>
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>output</code> - 将包含CDR格式数据的OutputStream。
</dd>
</dl> </li>
</ul> <a name="Z:Z_type--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>_type</h4> <pre>public <a href="../../../org/omg/CORBA/TypeCode.html" title="class in org.omg.CORBA">TypeCode</a> _type()</pre>
<div class="block">
返回对应于该
<code>TypeCode</code>对象中保存的值的
<code>AnyHolder</code>对象。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../org/omg/CORBA/portable/Streamable.html#Z:Z_type--">_type</a></code>在接口
<code><a href="../../../org/omg/CORBA/portable/Streamable.html" title="interface in org.omg.CORBA.portable">Streamable</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
该值保存在该
<code>AnyHolder</code>对象中的TypeCode
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>