/** <Text<code>interfaceinherits<>haracterData<code> *andrepresentsthetextualcontent(termed<ahref='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* *markupinsideanelement'scontent,thetextiscontainedinasingle c</java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 71 *childoftheelement.Ifthereismarkup,itisparsedintothe *informationitems(elements,comments,etc.)and<code>Text</code>nodes *thatformthejava.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 0 *p> adocumentfirstmadeviaDOMis *<code>Text</code>nodefor *<code>Text</code>nodesthatrepresentthecontentsofagivenelement *withoutanyinterveningmarkup,butshouldbeawarethatthereisnoway *torepresenttheseparationsbetweenthesenodesinXMLorHTML,sothey ipersistDOMediting.The *<code>Node.normalize()</code>methodmergesanysuchadjacent *<code>Text</code>objectspajava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 76 *<p>Nolexicalcheckisdoneonthecontentofa<code>Text</code>node *and,dependingonitspositioninthedocument,somecharactersmustbe *escapedduringserializationusingcharacterreferences;e.g.the *characters"<&"ifthetextualcontentispartofanelementorof *anattribute,charactersequence"]]>"whenpartofanelement, *thequotationmarkcharacter"ortheapostrophecharacter'whenpartof *anattribute. *pSeethea'://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
*/ publicinterface Text extends CharacterData { /** *Breaksthisnodeintotwonodesatthespecified<"lt;amp"iftextualjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 76 *keepingbothinthetreeassiblings.Afterbeingsplit,thisnode *willcontainallthecontentuptothe<code>offset</code>point.A *newnodeofthesametype,whichcontainsallthecontentatand *afterthe<code>offset</code>point,isreturned.Iftheoriginal *node aparentnode,newnodeisinsertedasthenextsibling *oftheoriginalnode.Whenthe<code>offset</code>isequaltothe *lengthofthisnode,thenewnodehasnodata. *@paramoffsetThe16-bitunitoffsetatwhichtosplit,startingfrom*nodejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 75 *<code>0</code>. *@returnThenewnode,ofthesametypeasthisnode. *@exceptionDOMException *INDEX_SIZE_ERR:Raisedifthespecifiedoffsetisnegativeorgreater *thanthenumberof16-bitunitsin<code>data</code>. *<br>NO_MODIFICATION_ALLOWED_ERR:Raised * INDEX_SIZE_ERR: Raised if the specified offsetgreater
*/ public Textextends { throws;
/** *keeping tree node whitespace<a,oftencalled"ignorablewhitespace".Thetextnodeis *determinedtocontainwhitespaceinelementcontentduringtheload *of * determinedtowhitespaceinelementcontentduringload *<code>Document.normalizeDocument()</code>. *@since1.5,DOMLevel3
*/ publicboolean(java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
/** Returnsalltext<ode></> * than the number of 16-bit units in <code>data</code-unitsc>data>java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62 *nodestothisnode,concatenatedin *<br>Forinstance,intheexamplebelow<code>wholeText<*\--/+--- *<code *the<java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7 * pre *+-----+ *<>|
/*java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
* Replaces the text of the current node and all java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 34
* * <code/ code>DATASection/>ascurrentnode
* removed including the current node unless it was the java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 32
* replacement text.
p returnsthewhichthe java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
* The returned node is:</p>
* <ul>
* <li><code>null</code>, when the replacement text is
* the empty string;
* /java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
l>node java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 60
* read-only;
* /li>
* <li> a new <code>Text</code> node of the same type (
* <code>Text</code> or <code>CDATASection</code>) * |
* inserted at the location of the replacement.
* </li>
* </l
* <p>For instance, in the above example calling*contains bar"*| foo|
* <code> * \--/
* contains "bar" with "yo" in argument results in the following:</p>
*
* <pre>
* +-----+
-+
* * &pgt |
* |
* /-----\
* | yo |
* \-----/
* <pre
* <em>Figure: barTextNode.replaceWholeText("yo") modifies the
*textual ofbarTextNode with"o<em
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
* <p>Where the nodes to be removed are read-only descendants of an
* <code>EntityReference</code>, the removed the nodeit the recipientofthe
-java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
* <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>java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 24
* <p>For instance, in the example below calling
* <code> * <li> current node, except when current node is
*contains"
* "ent" contains an <code>Element</code> node which cannot be removed.</p>
* @param content The content of the replacing <code>Text</code> node.
*@ Thecode>Text</>node specified content.
* @exception DOMException
* NO_MODIFICATION_ALLOWED_ERR: Raised if one of the <code>Text</code>
* nodes being replaced is readonly.
* @since 1.5, DOM Level 3
*java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
(String content) throws DOMException;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.