forked from bjmashibing/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathText.html
More file actions
465 lines (462 loc) · 23.9 KB
/
Text.html
File metadata and controls
465 lines (462 loc) · 23.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Text (Java SE 12 & JDK 12 )</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="org.w3c.dom.Text interface">
<meta name="keywords" content="splitText()">
<meta name="keywords" content="isElementContentWhitespace()">
<meta name="keywords" content="getWholeText()">
<meta name="keywords" content="replaceWholeText()">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Text (Java SE 12 & JDK 12 )";
}
}
catch(err) {
}
//-->
var data = {"i0":6,"i1":6,"i2":6,"i3":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="../../../module-summary.html">Module</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Text.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 & JDK 12</strong> </div></div>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field.summary">Field</a> | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding"> </div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="moduleLabelInType">Module</span> <a href="../../../module-summary.html">java.xml</a></div>
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.w3c.dom</a></div>
<h2 title="Interface Text" class="title">Interface Text</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><code><a href="CharacterData.html" title="interface in org.w3c.dom">CharacterData</a></code>, <code><a href="Node.html" title="interface in org.w3c.dom">Node</a></code></dd>
</dl>
<dl>
<dt>All Known Subinterfaces:</dt>
<dd><code><a href="CDATASection.html" title="interface in org.w3c.dom">CDATASection</a></code></dd>
</dl>
<hr>
<pre>public interface <span class="typeNameLabel">Text</span>
extends <a href="CharacterData.html" title="interface in org.w3c.dom">CharacterData</a></pre>
<div class="block">The <code>Text</code> interface inherits from <code>CharacterData</code>
and represents the textual content (termed <a href='http://www.w3.org/TR/2004/REC-xml-20040204#syntax'>character data</a> in XML) of an <code>Element</code> or <code>Attr</code>. If there is no
markup inside an element's content, the text is contained in a single
object implementing the <code>Text</code> interface that is the only
child of the element. If there is markup, it is parsed into the
information items (elements, comments, etc.) and <code>Text</code> nodes
that form the list of children of the element.
<p>When a document is first made available via the DOM, there is only one
<code>Text</code> node for each block of text. Users may create adjacent
<code>Text</code> nodes that represent the contents of a given element
without any intervening markup, but should be aware that there is no way
to represent the separations between these nodes in XML or HTML, so they
will not (in general) persist between DOM editing sessions. The
<code>Node.normalize()</code> method merges any such adjacent
<code>Text</code> objects into a single node for each block of text.
<p> No lexical check is done on the content of a <code>Text</code> node
and, depending on its position in the document, some characters must be
escaped during serialization using character references; e.g. the
characters "<&" if the textual content is part of an element or of
an attribute, the character sequence "]]>" when part of an element,
the quotation mark character " or the apostrophe character ' when part of
an attribute.
<p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="fields.inherited.from.class.org.w3c.dom.Node">
<!-- -->
</a>
<h3>Fields declared in interface org.w3c.dom.<a href="Node.html" title="interface in org.w3c.dom">Node</a></h3>
<code><a href="Node.html#ATTRIBUTE_NODE">ATTRIBUTE_NODE</a>, <a href="Node.html#CDATA_SECTION_NODE">CDATA_SECTION_NODE</a>, <a href="Node.html#COMMENT_NODE">COMMENT_NODE</a>, <a href="Node.html#DOCUMENT_FRAGMENT_NODE">DOCUMENT_FRAGMENT_NODE</a>, <a href="Node.html#DOCUMENT_NODE">DOCUMENT_NODE</a>, <a href="Node.html#DOCUMENT_POSITION_CONTAINED_BY">DOCUMENT_POSITION_CONTAINED_BY</a>, <a href="Node.html#DOCUMENT_POSITION_CONTAINS">DOCUMENT_POSITION_CONTAINS</a>, <a href="Node.html#DOCUMENT_POSITION_DISCONNECTED">DOCUMENT_POSITION_DISCONNECTED</a>, <a href="Node.html#DOCUMENT_POSITION_FOLLOWING">DOCUMENT_POSITION_FOLLOWING</a>, <a href="Node.html#DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC">DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC</a>, <a href="Node.html#DOCUMENT_POSITION_PRECEDING">DOCUMENT_POSITION_PRECEDING</a>, <a href="Node.html#DOCUMENT_TYPE_NODE">DOCUMENT_TYPE_NODE</a>, <a href="Node.html#ELEMENT_NODE">ELEMENT_NODE</a>, <a href="Node.html#ENTITY_NODE">ENTITY_NODE</a>, <a href="Node.html#ENTITY_REFERENCE_NODE">ENTITY_REFERENCE_NODE</a>, <a href="Node.html#NOTATION_NODE">NOTATION_NODE</a>, <a href="Node.html#PROCESSING_INSTRUCTION_NODE">PROCESSING_INSTRUCTION_NODE</a>, <a href="Node.html#TEXT_NODE">TEXT_NODE</a></code></li>
</ul>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t3" class="tableTab" onclick="show(4);">Abstract Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getWholeText()">getWholeText</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns all text of <code>Text</code> nodes logically-adjacent text
nodes to this node, concatenated in document order.</div>
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isElementContentWhitespace()">isElementContentWhitespace</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether this text node contains <a href='http://www.w3.org/TR/2004/REC-xml-infoset-20040204#infoitem.character'>
element content whitespace</a>, often abusively called "ignorable whitespace".</div>
</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="Text.html" title="interface in org.w3c.dom">Text</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#replaceWholeText(java.lang.String)">replaceWholeText</a></span>​(<a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a> content)</code></th>
<td class="colLast">
<div class="block">Replaces the text of the current node and all logically-adjacent text
nodes with the specified text.</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="Text.html" title="interface in org.w3c.dom">Text</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#splitText(int)">splitText</a></span>​(int offset)</code></th>
<td class="colLast">
<div class="block">Breaks this node into two nodes at the specified <code>offset</code>,
keeping both in the tree as siblings.</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.w3c.dom.CharacterData">
<!-- -->
</a>
<h3>Methods declared in interface org.w3c.dom.<a href="CharacterData.html" title="interface in org.w3c.dom">CharacterData</a></h3>
<code><a href="CharacterData.html#appendData(java.lang.String)">appendData</a>, <a href="CharacterData.html#deleteData(int,int)">deleteData</a>, <a href="CharacterData.html#getData()">getData</a>, <a href="CharacterData.html#getLength()">getLength</a>, <a href="CharacterData.html#insertData(int,java.lang.String)">insertData</a>, <a href="CharacterData.html#replaceData(int,int,java.lang.String)">replaceData</a>, <a href="CharacterData.html#setData(java.lang.String)">setData</a>, <a href="CharacterData.html#substringData(int,int)">substringData</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.w3c.dom.Node">
<!-- -->
</a>
<h3>Methods declared in interface org.w3c.dom.<a href="Node.html" title="interface in org.w3c.dom">Node</a></h3>
<code><a href="Node.html#appendChild(org.w3c.dom.Node)">appendChild</a>, <a href="Node.html#cloneNode(boolean)">cloneNode</a>, <a href="Node.html#compareDocumentPosition(org.w3c.dom.Node)">compareDocumentPosition</a>, <a href="Node.html#getAttributes()">getAttributes</a>, <a href="Node.html#getBaseURI()">getBaseURI</a>, <a href="Node.html#getChildNodes()">getChildNodes</a>, <a href="Node.html#getFeature(java.lang.String,java.lang.String)">getFeature</a>, <a href="Node.html#getFirstChild()">getFirstChild</a>, <a href="Node.html#getLastChild()">getLastChild</a>, <a href="Node.html#getLocalName()">getLocalName</a>, <a href="Node.html#getNamespaceURI()">getNamespaceURI</a>, <a href="Node.html#getNextSibling()">getNextSibling</a>, <a href="Node.html#getNodeName()">getNodeName</a>, <a href="Node.html#getNodeType()">getNodeType</a>, <a href="Node.html#getNodeValue()">getNodeValue</a>, <a href="Node.html#getOwnerDocument()">getOwnerDocument</a>, <a href="Node.html#getParentNode()">getParentNode</a>, <a href="Node.html#getPrefix()">getPrefix</a>, <a href="Node.html#getPreviousSibling()">getPreviousSibling</a>, <a href="Node.html#getTextContent()">getTextContent</a>, <a href="Node.html#getUserData(java.lang.String)">getUserData</a>, <a href="Node.html#hasAttributes()">hasAttributes</a>, <a href="Node.html#hasChildNodes()">hasChildNodes</a>, <a href="Node.html#insertBefore(org.w3c.dom.Node,org.w3c.dom.Node)">insertBefore</a>, <a href="Node.html#isDefaultNamespace(java.lang.String)">isDefaultNamespace</a>, <a href="Node.html#isEqualNode(org.w3c.dom.Node)">isEqualNode</a>, <a href="Node.html#isSameNode(org.w3c.dom.Node)">isSameNode</a>, <a href="Node.html#isSupported(java.lang.String,java.lang.String)">isSupported</a>, <a href="Node.html#lookupNamespaceURI(java.lang.String)">lookupNamespaceURI</a>, <a href="Node.html#lookupPrefix(java.lang.String)">lookupPrefix</a>, <a href="Node.html#normalize()">normalize</a>, <a href="Node.html#removeChild(org.w3c.dom.Node)">removeChild</a>, <a href="Node.html#replaceChild(org.w3c.dom.Node,org.w3c.dom.Node)">replaceChild</a>, <a href="Node.html#setNodeValue(java.lang.String)">setNodeValue</a>, <a href="Node.html#setPrefix(java.lang.String)">setPrefix</a>, <a href="Node.html#setTextContent(java.lang.String)">setTextContent</a>, <a href="Node.html#setUserData(java.lang.String,java.lang.Object,org.w3c.dom.UserDataHandler)">setUserData</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="splitText(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>splitText</h4>
<pre class="methodSignature"><a href="Text.html" title="interface in org.w3c.dom">Text</a> splitText​(int offset)
throws <a href="DOMException.html" title="class in org.w3c.dom">DOMException</a></pre>
<div class="block">Breaks this node into two nodes at the specified <code>offset</code>,
keeping both in the tree as siblings. After being split, this node
will contain all the content up to the <code>offset</code> point. A
new node of the same type, which contains all the content at and
after the <code>offset</code> point, is returned. If the original
node had a parent node, the new node is inserted as the next sibling
of the original node. When the <code>offset</code> is equal to the
length of this node, the new node has no data.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>offset</code> - The 16-bit unit offset at which to split, starting from
<code>0</code>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The new node, of the same type as this node.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="DOMException.html" title="class in org.w3c.dom">DOMException</a></code> - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
than the number of 16-bit units in <code>data</code>.
<br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.</dd>
</dl>
</li>
</ul>
<a id="isElementContentWhitespace()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isElementContentWhitespace</h4>
<pre class="methodSignature">boolean isElementContentWhitespace()</pre>
<div class="block">Returns whether this text node contains <a href='http://www.w3.org/TR/2004/REC-xml-infoset-20040204#infoitem.character'>
element content whitespace</a>, often abusively called "ignorable whitespace". The text node is
determined to contain whitespace in element content during the load
of the document or if validation occurs while using
<code>Document.normalizeDocument()</code>.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5, DOM Level 3</dd>
</dl>
</li>
</ul>
<a id="getWholeText()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWholeText</h4>
<pre class="methodSignature"><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a> getWholeText()</pre>
<div class="block">Returns all text of <code>Text</code> nodes logically-adjacent text
nodes to this node, concatenated in document order.
<br>For instance, in the example below <code>wholeText</code> on the
<code>Text</code> node that contains "bar" returns "barfoo", while on
the <code>Text</code> node that contains "foo" it returns "barfoo".
<pre>
+-----+
| <p> |
+-----+
/\
/ \
/-----\ +-------+
| bar | | &ent; |
\-----/ +-------+
|
|
/-----\
| foo |
\-----/
</pre>
<em>Figure: barTextNode.wholeText value is "barfoo"</em></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5, DOM Level 3</dd>
</dl>
</li>
</ul>
<a id="replaceWholeText(java.lang.String)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>replaceWholeText</h4>
<pre class="methodSignature"><a href="Text.html" title="interface in org.w3c.dom">Text</a> replaceWholeText​(<a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a> content)
throws <a href="DOMException.html" title="class in org.w3c.dom">DOMException</a></pre>
<div class="block">Replaces the text of the current node and all logically-adjacent text
nodes with the specified text. All logically-adjacent text nodes are
removed including the current node unless it was the recipient of the
replacement text.
<p>This method returns the node which received the replacement text.
The returned node is:</p>
<ul>
<li><code>null</code>, when the replacement text is
the empty string;
</li>
<li>the current node, except when the current node is
read-only;
</li>
<li> a new <code>Text</code> node of the same type (
<code>Text</code> or <code>CDATASection</code>) as the current node
inserted at the location of the replacement.
</li>
</ul>
<p>For instance, in the above example calling
<code>replaceWholeText</code> on the <code>Text</code> node that
contains "bar" with "yo" in argument results in the following:</p>
<pre>
+-----+
| <p> |
+-----+
|
|
/-----\
| yo |
\-----/
</pre>
<em>Figure: barTextNode.replaceWholeText("yo") modifies the
textual content of barTextNode with "yo"</em>
<p>Where the nodes to be removed are read-only descendants of an
<code>EntityReference</code>, the <code>EntityReference</code> must
be removed instead of the read-only nodes. If any
<code>EntityReference</code> to be removed has descendants that are
not <code>EntityReference</code>, <code>Text</code>, or
<code>CDATASection</code> nodes, the <code>replaceWholeText</code>
method must fail before performing any modification of the document,
raising a <code>DOMException</code> with the code
<code>NO_MODIFICATION_ALLOWED_ERR</code>.</p>
<p>For instance, in the example below calling
<code>replaceWholeText</code> on the <code>Text</code> node that
contains "bar" fails, because the <code>EntityReference</code> node
"ent" contains an <code>Element</code> node which cannot be removed.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>content</code> - The content of the replacing <code>Text</code> node.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <code>Text</code> node created with the specified content.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="DOMException.html" title="class in org.w3c.dom">DOMException</a></code> - NO_MODIFICATION_ALLOWED_ERR: Raised if one of the <code>Text</code>
nodes being replaced is readonly.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.5, DOM Level 3</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="../../../module-summary.html">Module</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Text.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 & JDK 12</strong> </div></div>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field.summary">Field</a> | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small><a href="https://bugreport.java.com/bugreport/">Report a bug or suggest an enhancement</a><br> For further API reference and developer documentation see the <a href="https://docs.oracle.com/pls/topic/lookup?ctx=javase12.0.2&id=homepage" target="_blank">Java SE Documentation</a>, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.<br> Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.<br> <a href="../../../../../legal/copyright.html">Copyright</a> © 1993, 2019, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.<br>All rights reserved. Use is subject to <a href="https://www.oracle.com/technetwork/java/javase/terms/license/java12.0.2speclicense.html">license terms</a> and the <a href="https://www.oracle.com/technetwork/java/redist-137594.html">documentation redistribution policy</a>. <!-- Version 12.0.2+10 --></small></p>
</footer>
</body>
</html>