Class Text

    • Method Detail

      • isCDATA

        public boolean isCDATA()
      • getText

        public String getText()
        Description copied from interface: TextNode
        Get the text from the node
        Specified by:
        getText in interface TextNode
      • setText

        public Text setText​(String text)
        Description copied from interface: TextNode
        Change the text of the node. When necessary, the text will be escaped before writing it to the output stream.
        Specified by:
        setText in interface TextNode
      • getTrimmedText

        public String getTrimmedText()
        Get the contents of this text node without all whitespace before and after
      • getNormalizedText

        public String getNormalizedText()
        Get the contents of this text node without all whitespace before and after and with all whitespace between the words in the node reduced to a single space.
      • isWhitespace

        public boolean isWhitespace()
        True, if this text node contains only whitespace
      • copy

        public BasicNode copy​(Node orig)
        Description copied from interface: Node
        Copy all data from orig into this
        Specified by:
        copy in interface Node
        Overrides:
        copy in class BasicNode
      • copy

        public Text copy()
        Description copied from interface: Node
        Simulate clone()
        Specified by:
        copy in interface Node
        Overrides:
        copy in class BasicNode