Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
gnu.xml.dom

Class DomCharacterData

java.lang.Object
|
+--gnu.xml.dom.DomNode
   |
   +--gnu.xml.dom.DomCharacterData

All Implemented Interfaces:

CharacterData, Node, NodeList, EventTarget, DocumentEvent, Cloneable


public abstract class DomCharacterData

extends DomNode

implements CharacterData

Abstract "CharacterData" implementation. This facilitates reusing code in classes implementing subtypes of that DOM interface (Text, Comment, CDATASection).

Author:

Method Summary

voidappendData(java.lang.String arg)

DOM L1 Appends the specified data to the value of this node.
voiddeleteData(int offset, int count)

DOM L1 Modifies the value of this node.
org.w3c.dom.NodeListgetChildNodes()

DOM L1 Returns an empty list of children.
java.lang.StringgetData()

DOM L1 Returns the value of this node; same as getNodeValue.
intgetLength()

DOM L1 Returns the length of the data.
java.lang.StringgetNodeValue()

DOM L1 Returns the value of this node.
voidinsertData(int offset, java.lang.String arg)

DOM L1 Modifies the value of this node.
voidreplaceData(int offset, int count, java.lang.String arg)

DOM L1 Modifies the value of this node.
voidsetData(java.lang.String data)

DOM L1 Assigns the value of this node; same as setNodeValue.
voidsetNodeValue(java.lang.String value)

DOM L1 Assigns the value of this node.
java.lang.StringsubstringData(int offset, int count)

DOM L1 Returns the specified substring.

Method Details

appendData

public void appendData(java.lang.String arg)

DOM L1 Appends the specified data to the value of this node. Causes a DOMCharacterDataModified mutation event to be reported.

Parameters:


deleteData

public void deleteData(int offset, int count)

DOM L1 Modifies the value of this node. Causes a DOMCharacterDataModified mutation event to be reported.

Parameters:


getChildNodes

public final NodeList getChildNodes()

DOM L1 Returns an empty list of children.


getData

public final String getData()

DOM L1 Returns the value of this node; same as getNodeValue.


getLength

public int getLength()

DOM L1 Returns the length of the data.


getNodeValue

public String getNodeValue()

DOM L1 Returns the value of this node.


insertData

public void insertData(int offset, java.lang.String arg)

DOM L1 Modifies the value of this node.

Parameters:


replaceData

public void replaceData(int offset, int count, java.lang.String arg)

DOM L1 Modifies the value of this node. Causes DOMCharacterDataModified mutation events to be reported (at least one).

Parameters:


setData

public final void setData(java.lang.String data)

DOM L1 Assigns the value of this node; same as setNodeValue.

Parameters:


setNodeValue

public void setNodeValue(java.lang.String value)

DOM L1 Assigns the value of this node. Causes a DOMCharacterDataModified mutation event to be reported.

Parameters:


substringData

public String substringData(int offset, int count)

DOM L1 Returns the specified substring.

Parameters: