Package com.pd4ml.dom

Class Text


  • public class Text
    extends Node
    A run of text.
    Since:
    v4.2.0
    • 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: Node
        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.
        Overrides:
        setTextContent in class Node