public interface

CharacterData

implements Node
com.google.gwt.xml.client.CharacterData
Known Indirect Subclasses

Class Overview

This interface describes CharacterData XML nodes. These can be either Text, CDATASection or Comment nodes.

Summary

[Expand]
Inherited Constants
From interface com.google.gwt.xml.client.Node
Public Methods
abstract void appendData(String appendedData)
This method appends data to the data in this CharacterData.
abstract void deleteData(int offset, int count)
This method deletes data, starting at offset, and deleting count characters.
abstract String getData()
This method retrieves the data.
abstract int getLength()
This method retrieves the length of the data.
abstract void insertData(int offset, String insertedData)
This method inserts data at the specified offset.
abstract void replaceData(int offset, int count, String replacementData)
This method replaces the substring of data indicated by offset and count with replacementData.
abstract void setData(String data)
This method sets the data to data.
abstract String substringData(int offset, int count)
This method gets a substring of the character data.
[Expand]
Inherited Methods
From interface com.google.gwt.xml.client.Node

Public Methods

public abstract void appendData (String appendedData)

This method appends data to the data in this CharacterData.

Parameters
appendedData the data to be appended to the end

public abstract void deleteData (int offset, int count)

This method deletes data, starting at offset, and deleting count characters.

Parameters
offset how far from the beginning to start deleting
count how many characters to delete

public abstract String getData ()

This method retrieves the data.

Returns
  • the data of this CharacterData

public abstract int getLength ()

This method retrieves the length of the data.

Returns
  • the length of the data contained in this CharacterData

public abstract void insertData (int offset, String insertedData)

This method inserts data at the specified offset.

Parameters
offset how far from the beginning to start inserting
insertedData the data to be inserted

public abstract void replaceData (int offset, int count, String replacementData)

This method replaces the substring of data indicated by offset and count with replacementData.

Parameters
offset how far from the beginning to start the replacement
count how many characters to delete before inserting replacementData
replacementData the data that will replace the deleted data

public abstract void setData (String data)

This method sets the data to data.

Parameters
data the new data

public abstract String substringData (int offset, int count)

This method gets a substring of the character data.

Parameters
offset the place to start the substring
count how many characters to return
Returns
  • the specified substring