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
Abstract "CharacterData" implementation. This
facilitates reusing code in classes implementing subtypes of that DOM
interface (Text, Comment, CDATASection).
Author: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:
Abstract "CharacterData" implementation. This facilitates reusing code in classes implementing subtypes of that DOM interface (Text, Comment, CDATASection).