ibm.techexplorer.dom
Class TEText

java.lang.Object
  |
  +--ibm.techexplorer.dom.TENode
        |
        +--ibm.techexplorer.dom.TECharacterData
              |
              +--ibm.techexplorer.dom.TEText
All Implemented Interfaces:
CharacterData, Node, Text
Direct Known Subclasses:
TECDATASection

public class TEText
extends TECharacterData
implements Text

Description

See Also:
techexplorer, org.w3c.dom

Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
TEText(techexplorer teobject, int node)
           
 
Method Summary
 Text splitText(int offset)
          Breaks this Text node into two Text nodes at the specified offset, keeping both in the tree as siblings.
 
Methods inherited from class ibm.techexplorer.dom.TECharacterData
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
 
Methods inherited from class ibm.techexplorer.dom.TENode
appendChild, cloneNode, convertFrBool, convertFrNode, convertToAttribute, convertToBool, convertToCDATASection, convertToComment, convertToDocument, convertToDocumentFragment, convertToDocumentType, convertToDOMImplementation, convertToElement, convertToEntity, convertToEntityReference, convertToNamedNodeMap, convertToNode, convertToNodeList, convertToNotation, convertToProcessingInstruction, convertToText, createNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.CharacterData
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue
 

Constructor Detail

TEText

public TEText(techexplorer teobject,
              int node)
Method Detail

splitText

public Text splitText(int offset)
               throws DOMException
Description copied from interface: Text
Breaks this Text node into two Text nodes at the specified offset, keeping both in the tree as siblings. This node then only contains all the content up to the offset point. And a new Text node, which is inserted as the next sibling of this node, contains all the content at and after the offset point.
Specified by:
splitText in interface Text
Following copied from interface: org.w3c.dom.Text
Parameters:
offset - The offset at which to split, starting from 0.
Returns:
The new Text node.
Throws:
DOMException - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of characters in data.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.