uTools-Manuals/docs/java/org/w3c/dom/NodeList.html

111 lines
4.0 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">
compact2, compact3
</div>
<div class="subTitle">
org.w3c.dom
</div>
<h2 class="title" title="Interface NodeList">Interface NodeList</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
所有已知实现类:
</dt>
<dd>
<span><a href="../../../javax/imageio/metadata/IIOMetadataNode.html" title="javax.imageio.metadata中的类">IIOMetadataNode</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">NodeList</span></pre>
<div class="block">
<span><code>NodeList</code>接口提供了节点的有序集合的抽象,而不定义或约束如何实现该集合。</span>
<span><code>NodeList</code> DOM中的对象是活的。</span>
<p> <span><code>NodeList</code>中的项目可以通过整数索引访问从0开始。</span> </p>
<p> <span>另见<a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407">Document Object Model (DOM) Level 3 Core Specification</a></span> </p>
</div> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== 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="t3"><span><a href="javascript:show(4);">抽象方法</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>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/NodeList.html#getLength--">getLength</a></span>()</code>
<div class="block">
列表中的节点数。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code><a href="../../../org/w3c/dom/Node.html" title="interface in org.w3c.dom">Node</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/NodeList.html#item-int-">item</a></span>(int index)</code>
<div class="block">
返回
<code>index</code>中的index项。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="item-int-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>item</h4> <pre><a href="../../../org/w3c/dom/Node.html" title="interface in org.w3c.dom">Node</a> item(int index)</pre>
<div class="block">
<span>返回<code>index</code>中的index项目。</span>
<span>如果<code>index</code>大于或等于列表中的节点数,则返回<code>null</code></span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>index</code> - 索引到集合。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
该节点在
<code>index</code>位置在
<code>NodeList</code> ,或
<code>null</code>如果那不是一个有效的索引。
</dd>
</dl> </li>
</ul> <a name="getLength--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getLength</h4> <pre>int getLength()</pre>
<div class="block">
<span>列表中的节点数。</span>
<span>有效子节点索引的范围是0到<code>length-1</code>含)。</span>
</div> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>