LibreOffice: XCharacterData Interface Reference

LibreOffice LibreOffice 7.4 SDK API Reference

Loading...
Searching...
No Matches
Public Member Functions | List of all members
XCharacterData Interface Reference
Inheritance diagram for XCharacterData:

## Public Member Functions
void | appendData ([in] string arg) raises (DOMException)
| Append the string to the end of the character data of the node.
void | deleteData ([in] long offset, [in] long count) raises (DOMException)
| Remove a range of 16-bit units from the node.
string | getData () raises (DOMException)
| Return the character data of the node that implements this interface.
long | getLength ()
| The number of 16-bit units that are available through data and the substringData method below.
void | insertData ([in] long offset, [in] string arg) raises (DOMException)
| Insert a string at the specified 16-bit unit offset.
void | replaceData ([in] long offset, [in] long count, [in] string arg) raises (DOMException)
| Replace the characters starting at the specified 16-bit unit offset with the specified string.
void | setData ([in] string data) raises (DOMException)
| Set the character data of the node that implements this interface.
string | subStringData ([in] long offset, [in] long count) raises (DOMException)
| Extracts a range of data from the node.
Public Member Functions inherited from XNode
XNode | appendChild ([in] XNode newChild) raises (DOMException)
| Adds the node newChild to the end of the list of children of this node.
XNode | cloneNode ([in] boolean deep)
| Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.
XNamedNodeMap | getAttributes ()
| A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
XNodeList | getChildNodes ()
| A NodeList that contains all children of this node.
XNode | getFirstChild ()
| The first child of this node.
XNode | getLastChild ()
| The last child of this node.
string | getLocalName ()
| Returns the local part of the qualified name of this node.
string | getNamespaceURI ()
| The namespace URI of this node, or null if it is unspecified.
XNode | getNextSibling ()
| The node immediately following this node.
string | getNodeName ()
| The name of this node, depending on its type; see the table above.
NodeType | getNodeType ()
| A code representing the type of the underlying object, as defined above.
string | getNodeValue () raises (DOMException)
| The value of this node, depending on its type; see the table above.
XDocument | getOwnerDocument ()
| The Document object associated with this node.
XNode | getParentNode ()
| The parent of this node.
string | getPrefix ()
| The namespace prefix of this node, or null if it is unspecified.
XNode | getPreviousSibling ()
| The node immediately preceding this node.
boolean | hasAttributes ()
| Returns whether this node (if it is an element) has any attributes.
boolean | hasChildNodes ()
| Returns whether this node has any children.
XNode | insertBefore ([in] XNode newChild, [in] XNode refChild) raises (DOMException)
| Inserts the node newChild before the existing child node refChild.
boolean | isSupported ([in] string feature, [in] string ver)
| Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.
void | normalize ()
| Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes.
XNode | removeChild ([in] XNode oldChild) raises (DOMException)
| Removes the child node indicated by oldChild from the list of children, and returns it.
XNode | replaceChild ([in] XNode newChild, [in] XNode oldChild) raises (DOMException)
| Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.
void | setNodeValue ([in] string nodeValue) raises (DOMException)
| The value of this node, depending on its type; see the table above.
void | setPrefix ([in] string prefix) raises (DOMException)
| The namespace prefix of this node, or null if it is unspecified.
Public Member Functions inherited from XInterface
any | queryInterface ([in] type aType)
| queries for a new interface to an existing UNO object.
void | acquire ()
| increases the reference counter by one.
void | release ()
| decreases the reference counter by one.

## Member Function Documentation

## ◆ appendData()

void appendData | ( | [in] string | arg | ) |
raises | ( | DOMException
| ) |  |

Append the string to the end of the character data of the node.

Throws: DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

## ◆ deleteData()

void deleteData | ( | [in] long | offset,
|  | [in] long | count
| ) |  |
raises | ( | DOMException
| ) |  |

Remove a range of 16-bit units from the node.

Throws: DOMException - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

## ◆ getData()

string getData | ( |  | ) |
raises | ( | DOMException
| ) |  |

Return the character data of the node that implements this interface.

Throws: DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. DOMException - DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the implementation platform.

## ◆ getLength()

long getLength | ( |  | ) |

The number of 16-bit units that are available through data and the substringData method below.

## ◆ insertData()

void insertData | ( | [in] long | offset,
|  | [in] string | arg
| ) |  |
raises | ( | DOMException
| ) |  |

Insert a string at the specified 16-bit unit offset.

Throws: DOMException - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

## ◆ replaceData()

void replaceData | ( | [in] long | offset,
|  | [in] long | count,
|  | [in] string | arg
| ) |  |
raises | ( | DOMException
| ) |  |

Replace the characters starting at the specified 16-bit unit offset with the specified string.

Throws; DOMException - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative. NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

## ◆ setData()

void setData | ( | [in] string | data | ) |
raises | ( | DOMException
| ) |  |

Set the character data of the node that implements this interface.

Throws: DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. DOMException - DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the implementation platform.

## ◆ subStringData()

string subStringData | ( | [in] long | offset,
|  | [in] long | count
| ) |  |
raises | ( | DOMException
| ) |  |

Extracts a range of data from the node.

Throws: DOMException - INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative. DOMSTRING_SIZE_ERR: Raised if the specified range of text does not fit into a DOMString.

The documentation for this interface was generated from the following file:

- com/sun/star/xml/dom/XCharacterData.idl