Interface CharacterData

All Superinterfaces:
EventTarget, Node, NonDocumentTypeChildNode
All Known Subinterfaces:
CDATASection, Comment, ProcessingInstruction, Text
All Known Implementing Classes:
CDataSectionImpl, CharacterDataImpl, CommentImpl, DTMNodeProxy, HTMLProcessingInstruction, TextImpl

public interface CharacterData extends Node, NonDocumentTypeChildNode
The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type it is implemented by other interfaces CharacterData, like Text, Comment, or ProcessingInstruction which aren't abstract.
  • Method Details

    • getData

      String getData()

      getData.

      Returns:
      a String object.
    • setData

      void setData(String data)

      setData.

      Parameters:
      data - a String object.
    • getLength

      int getLength()

      getLength.

      Returns:
      a Integer object.
    • appendData

      void appendData(String data)

      appendData.

      Parameters:
      data - a String object.
    • deleteData

      void deleteData(int offset, int count)

      deleteData.

      Parameters:
      offset - a Integer object.
      count - a Integer object.
    • insertData

      void insertData(int offset, String data)

      insertData.

      Parameters:
      offset - a Integer object.
      data - a String object.
    • replaceData

      void replaceData(int offset, int count, String data)

      replaceData.

      Parameters:
      offset - a Integer object.
      count - a Integer object.
      data - a String object.
    • substringData

      String substringData(int offset, int count)

      substringData.

      Parameters:
      offset - a Integer object.
      count - a Integer object.
      Returns:
      a String object.