public class DOMTextImpl extends DOMCharacterDataImpl implements org.w3c.dom.Text
adaptee| Modifier | Constructor and Description |
|---|---|
protected |
DOMTextImpl(Node adaptee) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getNodeName()
The name of this node, depending on its type; see the table above.
|
short |
getNodeType()
A code representing the type of the underlying object, as defined above.
|
org.w3c.dom.Text |
splitText(int offset)
Breaks this node into two nodes at the specified
offset,
keeping both in the tree as siblings. |
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringDataappendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix, supportsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendData, deleteData, getData, getLength, insertData, replaceData, setData, substringDataappendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefixprotected DOMTextImpl(Node adaptee)
public java.lang.String getNodeName()
org.w3c.dom.NodegetNodeName in interface org.w3c.dom.NodegetNodeName in class DOMNodeImplNode.getNodeName()public short getNodeType()
org.w3c.dom.NodegetNodeType in interface org.w3c.dom.NodegetNodeType in class DOMNodeImplNode.getNodeType()public org.w3c.dom.Text splitText(int offset)
throws org.w3c.dom.DOMException
org.w3c.dom.Textoffset,
keeping both in the tree as siblings. After being split, this node
will contain all the content up to the offset point. A
new node of the same type, which contains all the content at and
after the offset 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 offset is equal to the
length of this node, the new node has no data.splitText in interface org.w3c.dom.Textorg.w3c.dom.DOMException - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
than the number of 16-bit units in data.
Text.splitText(int)