Package com.pd4ml.dom
Class Text
- java.lang.Object
-
- com.pd4ml.dom.Node
-
- com.pd4ml.dom.Text
-
public class Text extends Node
A run of text.- Since:
- v4.2.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetData()booleanisWhitespace()True if the text consists of white space only.voidsetData(java.lang.String data)voidsetTextContent(java.lang.String text)Replaces the content of this node with the text: an element's children are replaced by one text node (none for an empty text); a text or comment gets the text as its data.-
Methods inherited from class com.pd4ml.dom.Node
appendChild, cloneNode, contains, equals, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, hashCode, insertBefore, remove, removeChild, replaceChild, toHtml, toString
-
-
-
-
Method Detail
-
getData
public java.lang.String getData()
-
setData
public void setData(java.lang.String data)
-
isWhitespace
public boolean isWhitespace()
True if the text consists of white space only.
-
setTextContent
public void setTextContent(java.lang.String text)
Description copied from class:NodeReplaces the content of this node with the text: an element's children are replaced by one text node (none for an empty text); a text or comment gets the text as its data.- Overrides:
setTextContentin classNode
-
-