mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-07-09 03:12:47 +08:00
278 lines
11 KiB
HTML
278 lines
11 KiB
HTML
<div class="header">
|
||
<h1 class="title" title="Package">Package org.w3c.dom</h1>
|
||
<div class="docSummary">
|
||
<div class="block">
|
||
提供了作为Java API for XML Processing的组件API的文档对象模型(DOM)的
|
||
<a href="http://java.sun.com/xml">接口</a> 。
|
||
</div>
|
||
</div>
|
||
<p>See: <a href="#package.description">描述</a></p>
|
||
</div><div class="contentContainer">
|
||
<ul class="blockList">
|
||
<li class="blockList">
|
||
<table border="0" cellpadding="3" cellspacing="0" class="typeSummary" summary="Interface Summary table, listing interfaces, and an explanation">
|
||
<caption>
|
||
<span>接口摘要</span>
|
||
<span class="tabEnd"> </span>
|
||
</caption>
|
||
<tbody>
|
||
<tr>
|
||
<th class="colFirst" scope="col">接口</th>
|
||
<th class="colLast" scope="col">描述</th>
|
||
</tr>
|
||
</tbody>
|
||
<tbody>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/Attr.html" title="interface in org.w3c.dom">Attr</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>Attr</code>接口表示
|
||
<code>Element</code>对象中的属性。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/CDATASection.html" title="interface in org.w3c.dom">CDATASection</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
CDATA部分用于转义包含否则将被视为标记的字符的文本块。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/CharacterData.html" title="interface in org.w3c.dom">CharacterData</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>CharacterData</code>接口使用一组用于访问DOM中的字符数据的属性和方法来扩展Node。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/Comment.html" title="interface in org.w3c.dom">Comment</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
该接口继承自
|
||
<code>CharacterData</code> ,表示注释的内容,即起始'
|
||
<code><!--</code> '和结束'
|
||
<code>--></code> '之间的所有
|
||
<code>--></code> 。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/Document.html" title="interface in org.w3c.dom">Document</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
该
|
||
<code>Document</code>接口表示整个HTML或XML文档。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DocumentFragment.html" title="interface in org.w3c.dom">DocumentFragment</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>DocumentFragment</code>是一个“轻量级”或“最小”
|
||
<code>Document</code>对象。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DocumentType.html" title="interface in org.w3c.dom">DocumentType</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
每个
|
||
<code>Document</code>具有
|
||
<code>doctype</code>属性,其值为
|
||
<code>null</code>或
|
||
<code>DocumentType</code>对象。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DOMConfiguration.html" title="interface in org.w3c.dom">DOMConfiguration</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>DOMConfiguration</code>接口表示文档的配置,并维护已识别参数的表。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DOMError.html" title="interface in org.w3c.dom">DOMError</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>DOMError</code>是描述错误的界面。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DOMErrorHandler.html" title="interface in org.w3c.dom">DOMErrorHandler</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>DOMErrorHandler</code>是一个回调接口,DOM实现可以在报告在处理XML数据时发生的错误或进行其他处理时(例如,
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DOMImplementation.html" title="interface in org.w3c.dom">DOMImplementation</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>DOMImplementation</code>接口提供了许多用于执行独立于文档对象模型的任何特定实例的操作的方法。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DOMImplementationList.html" title="interface in org.w3c.dom">DOMImplementationList</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>DOMImplementationList</code>接口提供DOM实现的有序集合的抽象,而不定义或约束如何实现此集合。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DOMImplementationSource.html" title="interface in org.w3c.dom">DOMImplementationSource</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
该接口允许DOM实现者根据请求的特征和版本提供一个或多个实现,如DOM Features中
|
||
<a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#DOMFeatures">所述</a> 。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DOMLocator.html" title="interface in org.w3c.dom">DOMLocator</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>DOMLocator</code>是描述位置的接口(例如,
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DOMStringList.html" title="interface in org.w3c.dom">DOMStringList</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>DOMStringList</code>接口提供
|
||
<code>DOMString</code>值的有序集合的
|
||
<code>DOMString</code> ,而不定义或约束如何实现此集合。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/Element.html" title="interface in org.w3c.dom">Element</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>Element</code>接口表示HTML或XML文档中的元素。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/Entity.html" title="interface in org.w3c.dom">Entity</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
此接口表示XML文档中已解析或未解析的实体。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/EntityReference.html" title="interface in org.w3c.dom">EntityReference</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>EntityReference</code>节点可用于表示树中的实体引用。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/NamedNodeMap.html" title="interface in org.w3c.dom">NamedNodeMap</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
实现
|
||
<code>NamedNodeMap</code>接口的对象用于表示可以通过名称访问的节点集合。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/NameList.html" title="interface in org.w3c.dom">NameList</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>NameList</code>接口提供了并行对的名称和命名空间值(可以是空值)的有序集合的抽象,而不定义或约束该集合的实现方式。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/Node.html" title="interface in org.w3c.dom">Node</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>Node</code>接口是整个文档对象模型的主数据类型。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/NodeList.html" title="interface in org.w3c.dom">NodeList</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>NodeList</code>接口提供了节点的有序集合的抽象,而不定义或约束如何实现此集合。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/Notation.html" title="interface in org.w3c.dom">Notation</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
该接口表示在DTD中声明的符号。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/ProcessingInstruction.html" title="interface in org.w3c.dom">ProcessingInstruction</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>ProcessingInstruction</code>接口表示一个“处理指令”,用于XML,作为将处理器特定信息保留在文档文本中的一种方式。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/Text.html" title="interface in org.w3c.dom">Text</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
所述
|
||
<code>Text</code>接口从继承
|
||
<code>CharacterData</code>和表示文本内容(称为
|
||
<a href="http://www.w3.org/TR/2004/REC-xml-20040204#syntax">character data</a>一个在XML)
|
||
<code>Element</code>或
|
||
<code>Attr</code> 。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/TypeInfo.html" title="interface in org.w3c.dom">TypeInfo</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
<code>TypeInfo</code>接口表示从与文档相关联的模式中指定的
|
||
<code>Element</code>或
|
||
<code>Attr</code>节点引用的类型。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/UserDataHandler.html" title="interface in org.w3c.dom">UserDataHandler</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
当使用Node.setUserData()将对象与节点上的密钥
|
||
<code>Node.setUserData()</code> ,应用程序可以提供一个处理程序,当对象被关联到的节点被克隆,导入或重命名时,该处理程序将被调用。
|
||
</div> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table> </li>
|
||
<li class="blockList">
|
||
<table border="0" cellpadding="3" cellspacing="0" class="typeSummary" summary="Exception Summary table, listing exceptions, and an explanation">
|
||
<caption>
|
||
<span>异常摘要</span>
|
||
<span class="tabEnd"> </span>
|
||
</caption>
|
||
<tbody>
|
||
<tr>
|
||
<th class="colFirst" scope="col">异常</th>
|
||
<th class="colLast" scope="col">描述</th>
|
||
</tr>
|
||
</tbody>
|
||
<tbody>
|
||
<tr class="altColor">
|
||
<td class="colFirst"><a href="../../../org/w3c/dom/DOMException.html" title="class in org.w3c.dom">DOMException</a></td>
|
||
<td class="colLast">
|
||
<div class="block">
|
||
DOM操作只会在“异常”情况下引发异常,即当操作无法执行时(出于逻辑原因,因为数据丢失,或者由于实现变得不稳定))。
|
||
</div> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table> </li>
|
||
</ul>
|
||
<a name="package.description">
|
||
<!-- --> </a>
|
||
<h2 title="Package org.w3c.dom Description">Package org.w3c.dom Description</h2>
|
||
<div class="block">
|
||
<span>提供作为Java API for XML Processing的组件API的文档对象模型(DOM)的<a href="http://java.sun.com/xml">接口</a> 。</span>
|
||
<span>文档对象模型2级核心API允许程序动态地访问和更新文档的内容和结构。</span>
|
||
<span>见<a href="http://www.w3.org/TR/DOM-Level-2-Core/">specification</a>以获取更多信息。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="simpleTagLabel">从以下版本开始:</span>
|
||
</dt>
|
||
<dd>
|
||
JDK1.4
|
||
</dd>
|
||
</dl>
|
||
</div> |