public class TextImpl extends DefaultText
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description | 
|---|
| TextImpl(java.lang.StringBuffer str,
        SchemaDOM sDOM,
        int row,
        int col) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getData()The character data of the node that implements this interface. | 
| int | getLength()The number of 16-bit units that are available through  dataand thesubstringDatamethod below. | 
| org.w3c.dom.Node | getNextSibling()The node immediately following this node. | 
| java.lang.String | getNodeName()The name of this node, depending on its type; see the table above. | 
| org.w3c.dom.Node | getParentNode()The parent of this node. | 
| org.w3c.dom.Node | getPreviousSibling()The node immediately preceding this node. | 
| java.lang.String | substringData(int offset,
             int count)Extracts a range of data from the node. | 
appendData, deleteData, getWholeText, insertData, isElementContentWhitespace, replaceData, replaceWholeText, setData, splitTextgetLocalName, getNamespaceURI, getNodeType, getPrefix, getReadOnly, setReadOnly, toStringappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNodeValue, getOwnerDocument, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeType, getNodeValue, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic TextImpl(java.lang.StringBuffer str,
        SchemaDOM sDOM,
        int row,
        int col)
public java.lang.String getNodeName()
org.w3c.dom.NodegetNodeName in interface org.w3c.dom.NodegetNodeName in class NodeImplpublic org.w3c.dom.Node getParentNode()
org.w3c.dom.NodeAttr, 
 Document, DocumentFragment, 
 Entity, and Notation may have a parent. 
 However, if a node has just been created and not yet added to the 
 tree, or if it has been removed from the tree, this is 
 null.getParentNode in interface org.w3c.dom.NodegetParentNode in class DefaultNodepublic org.w3c.dom.Node getPreviousSibling()
org.w3c.dom.Nodenull.getPreviousSibling in interface org.w3c.dom.NodegetPreviousSibling in class DefaultNodepublic org.w3c.dom.Node getNextSibling()
org.w3c.dom.Nodenull.getNextSibling in interface org.w3c.dom.NodegetNextSibling in class DefaultNodepublic java.lang.String getData()
                         throws org.w3c.dom.DOMException
CharacterData node. However, 
 implementation limits may mean that the entirety of a node's data may 
 not fit into a single DOMString. In such cases, the user 
 may call substringData to retrieve the data in 
 appropriately sized pieces.getData in interface org.w3c.dom.CharacterDatagetData in class DefaultTextorg.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.org.w3c.dom.DOMException - DOMSTRING_SIZE_ERR: Raised when it would return more characters than 
   fit in a DOMString variable on the implementation 
   platform.public int getLength()
data 
 and the substringData method below. This may have the 
 value zero, i.e., CharacterData nodes may be empty.getLength in interface org.w3c.dom.CharacterDatagetLength in class DefaultTextpublic java.lang.String substringData(int offset,
                             int count)
                               throws org.w3c.dom.DOMException
substringData in interface org.w3c.dom.CharacterDatasubstringData in class DefaultTextoffset - Start offset of substring to extract.count - The number of 16-bit units to extract.offset and 
   count exceeds the length, then all 16-bit 
   units to the end of the data are returned.org.w3c.dom.DOMException - INDEX_SIZE_ERR: Raised if the specified offset is 
   negative or greater than the number of 16-bit units in 
   data, or if the specified count is 
   negative.
   DOMString.Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.