gnu.xml.dom

Class DomCharacterData

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).

Version: $Date: 2001/11/20 04:53:46 $

Author: David Brownell

Method Summary
voidappendData(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.
NodeListgetChildNodes()
DOM L1 Returns an empty list of children.
StringgetData()
DOM L1 Returns the value of this node; same as getNodeValue.
intgetLength()
DOM L1 Returns the length of the data.
StringgetNodeValue()
DOM L1 Returns the value of this node.
voidinsertData(int offset, String arg)
DOM L1 Modifies the value of this node.
voidreplaceData(int offset, int count, String arg)
DOM L1 Modifies the value of this node.
voidsetData(String data)
DOM L1 Assigns the value of this node; same as setNodeValue.
voidsetNodeValue(String value)
DOM L1 Assigns the value of this node.
StringsubstringData(int offset, int count)
DOM L1 Returns the specified substring.

Method Detail

appendData

public void appendData(String arg)
DOM L1 Appends the specified data to the value of this node. Causes a DOMCharacterDataModified mutation event to be reported.

deleteData

public void deleteData(int offset, int count)
DOM L1 Modifies the value of this node. Causes a DOMCharacterDataModified mutation event to be reported.

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, String arg)
DOM L1 Modifies the value of this node.

replaceData

public void replaceData(int offset, int count, String arg)
DOM L1 Modifies the value of this node. Causes DOMCharacterDataModified mutation events to be reported (at least one).

setData

public final void setData(String data)
DOM L1 Assigns the value of this node; same as setNodeValue.

setNodeValue

public void setNodeValue(String value)
DOM L1 Assigns the value of this node. Causes a DOMCharacterDataModified mutation event to be reported.

substringData

public String substringData(int offset, int count)
DOM L1 Returns the specified substring.

Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2013-01-12.