Example usage for Java org.w3c.dom Text fields, constructors, methods, implement or subclass
The text is from its open source code.
void | appendData(String arg) Append the string to the end of the character data of the node. |
void | deleteData(int offset, int count) Remove a range of 16-bit units from the node. |
String | getData() The character data of the node that implements this interface. |
Node | getFirstChild() The first child of this node. |
int | getLength() The number of 16-bit units that are available through data and the substringData method below. |
Node | getNextSibling() The node immediately following this node. |
String | getNodeValue() The value of this node, depending on its type; see the table above. |
Node | getParentNode() The parent of this node. |
String | getTextContent() This attribute returns the text content of this node and its descendants. |
String | getWholeText() Returns all text of Text nodes logically-adjacent text nodes to this node, concatenated in document order. |
void | insertData(int offset, String arg) Insert a string at the specified 16-bit unit offset. |
boolean | isElementContentWhitespace() Returns whether this text node contains element content whitespace, often abusively called "ignorable whitespace". |
void | replaceData(int offset, int count, String arg) Replace the characters starting at the specified 16-bit unit offset with the specified string. |
Text | replaceWholeText(String content) Replaces the text of the current node and all logically-adjacent text nodes with the specified text. |
void | setData(String data) The character data of the node that implements this interface. |
void | setNodeValue(String nodeValue) The value of this node, depending on its type; see the table above. |
Text | splitText(int offset) Breaks this node into two nodes at the specified offset , keeping both in the tree as siblings. |
String | substringData(int offset, int count) Extracts a range of data from the node. |