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

Class DomCharacterData

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

All Implemented Interfaces:
java.lang.Cloneable, CharacterData, DocumentEvent, EventTarget, Node, NodeList

Known Direct Subclasses:
DomComment, DomText


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:
David Brownell

Method Summary

void

appendData(java.lang.String arg)

DOM L1 Appends the specified data to the value of this node.

void

deleteData(int offset, int count)

DOM L1 Modifies the value of this node.

NodeList

getChildNodes()

DOM L1 Returns an empty list of children.

java.lang.String

getData()

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

int

getLength()

DOM L1 Returns the length of the data.

java.lang.String

getNodeValue()

DOM L1 Returns the value of this node.

void

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

DOM L1 Modifies the value of this node.

void

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

DOM L1 Modifies the value of this node.

void

setData(java.lang.String data)

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

void

setNodeValue(java.lang.String value)

DOM L1 Assigns the value of this node.

java.lang.String

substringData(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:
arg

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:
offset
count

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:
offset
arg

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:
offset
count
arg

setData

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

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

Parameters:
data

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:
value

substringData

public String substringData(int offset, int count)

DOM L1 Returns the specified substring.

Parameters:
offset
count