Interface CharacterData

All Superinterfaces:
Cloneable, Node
All Known Subinterfaces:
CDATA, Comment, Text
All Known Implementing Classes:
AbstractCDATA, AbstractCharacterData, AbstractComment, AbstractText, DefaultCDATA, DefaultComment, DefaultText, DOMCDATA, DOMComment, DOMText, FlyweightCDATA, FlyweightComment, FlyweightText

public interface CharacterData extends Node
CharacterData is a marker interface for character based nodes such as the CDATA,Comment and Text nodes.
Version:
$Revision: 1.9 $
  • Method Details

    • appendText

      void appendText(String text)
      Appends the given text to this nodes text value. Calling this method is equivalent of the code node.setText(node.getText() + text) but allows for possible implementation optimisations (such as a text based node storing a StringBuffer internally
      Parameters:
      text - the text to append