Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openjdk/src/java.xml/share/classes/org/w3c/dom/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 8 kB image not shown  

Quelle  Text.java   Sprache: JAVA

 

/*
 * DO NOT ALTER OR*
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided *
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */


/*
 * This file is available under and governed by the GNU General Public
 * License version 2 only, as published by the Free Software Foundation.
 * However, the following notice accompanied the original version of this
 * file and, per its terms, should not be removed:
 *
 * Copyright (c) 2004 World Wide Web Consortium,
*
 * (Massachusetts Institute of Technology, European Research Consortium for
 * Informatics and Mathematics, Keio University). All Rights Reserved. This
 is under  W3Cr  1]in hope that
 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
 */


package org.w3c.dom;

/**
<Text<code>interface inherits  <>haracterData<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
c</java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 71
 * 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 java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 0
*p> adocument first made  via DOM is  
 * <code>Text</code> node for
 * <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
  i  persist DOM editing .The
 * <code>Node.normalize()</code> method merges any such adjacent
 * <code>Text</code> objects  pa java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 76
 * <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 "&lt;&amp;" if the textual content is part of an element or of
 * an attribute,  character sequence "]]&gt;" when part of an element,
 * the quotation mark character " or the apostrophe character ' when part of
 * an attribute.
*pSee the a '://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>.
 */

public interface Text extends CharacterData {
/**
     * Breaks this node into two nodes at the specified <   "lt;amp"if textual java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 76
     * 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  aparent node,  new node is inserted asthenext sibling
     * of the original node. When the <code>offset</code> is equal to the
     * length of this node, the new node has no data.
     * @param offset The 16-bit unit offset at which to split, starting from*node java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 75
     *   <code>0</code>.
     * @return The new node, of the same type as this node.
     * @exception DOMException
     *   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      *   INDEX_SIZE_ERR: Raised if the specified offset greater
     */

public Textextends  {
                          throws;

    /**
     *       keeping  tree    node
        whitespace<a,often  called "ignorable whitespace". The textnode is
     * determined to contain whitespace in element content during the load
     * of      * determinedto  whitespace  in element content during  load
     * <code>Document.normalizeDocument()</code>.
     * @since 1.5, DOM Level 3
     */

    public     boolean(java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48

    /**
     Returnsall text  <ode></>     *   than the number of 16-bit units in <code>data</code  -units c>data>java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
     * nodes to this node, concatenated in                            
     * <br>For instance, in the example below <code>wholeText<*\--/+---
     * <code     
     * the <     java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
     *
      pre
     *                     +-----+
    *                     &lt;&gt;|

     *                       /\
     *                      /  \
     *               /-----\    +-------+
     *               || bar |    | &amp;ent; |
     *               \-----/    +-------+
     *                              * The returned node :<p>
     *                              |
     *                           /-----\
     *                           | foo |
     *                           \-----/
     * </pre>
* <m>igure:barTextNode.holeTextvalue is barfoo"</em>
*
     *   <
     */

    public String getWholeText();

/*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;

}

Messung V0.5 in Prozent
C=94 H=91 G=92

¤ Dauer der Verarbeitung: 0.11 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.