DOMCharacterData
interface extends DOMNode with a set of attributes and methods for accessing character data in the DOM.
More...
#include <DOMCharacterData.hpp>
Inheritance diagram for xercesc::DOMCharacterData:
Public Member Functions | |
Destructor | |
virtual | ~DOMCharacterData () |
Destructor. | |
Functions introduced in DOM Level 1 | |
virtual const XMLCh * | getData () const =0 |
Returns the character data of the node that implements this interface. | |
virtual XMLSize_t | getLength () const =0 |
Returns the number of characters that are available through data and the substringData method below. | |
virtual const XMLCh * | substringData (XMLSize_t offset, XMLSize_t count) const =0 |
Extracts a range of data from the node. | |
virtual void | appendData (const XMLCh *arg)=0 |
Append the string to the end of the character data of the node. | |
virtual void | insertData (XMLSize_t offset, const XMLCh *arg)=0 |
Insert a string at the specified character offset. | |
virtual void | deleteData (XMLSize_t offset, XMLSize_t count)=0 |
Remove a range of characters from the node. | |
virtual void | replaceData (XMLSize_t offset, XMLSize_t count, const XMLCh *arg)=0 |
Replace the characters starting at the specified character offset with the specified string. | |
virtual void | setData (const XMLCh *data)=0 |
Sets the character data of the node that implements this interface. | |
Protected Member Functions | |
Hidden constructors | |
DOMCharacterData () | |
DOMCharacterData (const DOMCharacterData &other) |
DOMCharacterData
interface extends DOMNode with a set of attributes and methods for accessing character data in the DOM.
For clarity this set is defined here rather than on each object that uses these attributes and methods. No DOM objects correspond directly to DOMCharacterData
, though DOMText
and others do inherit the interface from it. All offsets
in this interface start from 0
.
As explained in the DOM spec, text strings in the DOM are represented in UTF-16, i.e. as a sequence of 16-bit units. In the following, the term 16-bit units is used whenever necessary to indicate that indexing on DOMCharacterData is done in 16-bit units.
See also the Document Object Model (DOM) Level 2 Core Specification.
|
|
|
|
|
Destructor.
|
|
Append the string to the end of the character data of the node.
Upon success,
|
|
Remove a range of characters from the node.
Upon success,
|
|
Returns the character data of the node that implements this interface.
The DOM implementation may not put arbitrary limits on the amount of data that may be stored in a
|
|
Returns the number of characters that are available through
This may have the value zero, i.e.,
|
|
Insert a string at the specified character offset.
|
|
Replace the characters starting at the specified character offset with the specified string.
|
|
Sets the character data of the node that implements this interface.
|
|
Extracts a range of data from the node.
|