Gdome2 Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
struct GdomeText { const GdomeTextVtab *vtab; /* deprecated */ GdomePrivateList *private; }; |
GdomeText* gdome_t_splitText (GdomeText *self, unsigned |
Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings. After being split, this node will contain all the content up to the offset point. A new node of the same type, which contains all the content at and after the offset point, is returned. If the original node had a parent node, the new node is inserted as the next sibling of the original node. When the offset is equal to the length of this node, the new node has no data.
GDOME_INDEX_SIZE_ERR: Raised if the specified offset is greater than the number of 16-bit units in data. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
void gdome_t_set_data (GdomeText *self, GdomeDOMString *data, GdomeException *exc); |
Sets the data value of this node.
GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
GdomeDOMString* gdome_t_substringData (GdomeText *self, unsigned |
Extracts a range of data from the node.
GDOME_INDEX_SIZE_ERR: Raised if the specified offset is greater than the number of 16-bit units in data.
void gdome_t_appendData (GdomeText *self, GdomeDOMString *arg, GdomeException *exc); |
Append the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the string specified.
GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
void gdome_t_insertData (GdomeText *self, unsigned |
Insert a string at the specified 16-bit unit offset.
GDOME_INDEX_SIZE_ERR: Raised if the specified offset is greater than the number of 16-bit units in data. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
void gdome_t_deleteData (GdomeText *self, unsigned |
Remove a range of 16-bit units from the node. If the sum of offset and count exceeds length then all 16-bit units from offset to the end of the data are deleted. Upon success, data and length reflect the change.
GDOME_INDEX_SIZE_ERR: Raised if the specified offset is greater than the number of 16-bit units in data. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
void gdome_t_replaceData (GdomeText *self, unsigned |
Replace the characters starting at the specified 16-bit unit offset with the specified string. If the sum of offset and count exceeds length, then all 16-bit units to the end of the data are replaced;
GDOME_INDEX_SIZE_ERR: Raised if the specified offset is greater than the number of 16-bit units in data. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
void gdome_t_ref (GdomeText *self, GdomeException *exc); |
Increase the reference count of the specified Node.
void gdome_t_unref (GdomeText *self, GdomeException *exc); |
Decrease the reference count of the specified Node. Free the Node structure if the Node will have zero reference.
void* gdome_t_query_interface (GdomeText *self, const char *interface, GdomeException *exc); |
NOT IMPLEMENTED
void gdome_t_set_nodeValue (GdomeText *self, GdomeDOMString *nodeValue, GdomeException *exc); |
Sets The value of this node, depending on its type.
GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
GdomeNode* gdome_t_parentNode (GdomeText *self, GdomeException *exc); |
self : | Node Object ref |
exc : | Exception Object ref |
Returns : | the parent of this node. All nodes, except Attr, Document, DocumentFragment, Entity, and Notation may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is NULL. |
GdomeNode* gdome_t_previousSibling (GdomeText *self, GdomeException *exc); |
GdomeDocument* gdome_t_ownerDocument (GdomeText *self, GdomeException *exc); |
GdomeNode* gdome_t_insertBefore (GdomeText *self, GdomeNode *newChild, GdomeNode *refChild, GdomeException *exc); |
Inserts the node newChild before the existing child node refChild. If refChild is NULL, insert newChild at the end of the list of children. If newChild is a DocumentFragment node, all of its children are inserted, in the same order, before refChild. If the newChild is already in the tree, it is first removed.
GDOME_WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. GDOME_NOT_FOUND_ERR: Raised if refChild is not a child of this node. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
GdomeNode* gdome_t_replaceChild (GdomeText *self, GdomeNode *newChild, GdomeNode *oldChild, GdomeException *exc); |
Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node. If newChild is a DocumentFragment object, oldChild is replaced by all of the DocumentFragment children, which are inserted in the same order. If the newChild is already in the tree, it is first removed.
GDOME_WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. GDOME_NOT_FOUND_ERR: Raised if oldChild is not a child of this node. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
GdomeNode* gdome_t_removeChild (GdomeText *self, GdomeNode *oldChild, GdomeException *exc); |
Removes the child node indicated by oldChild from the list of children, and returns it.
GDOME_NOT_FOUND_ERR: Raised if oldChild is not a child of this node. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
GdomeNode* gdome_t_appendChild (GdomeText *self, GdomeNode *newChild, GdomeException *exc); |
Adds the node newChild to the end of the list of children of this node. If the newChild is already in the tree, it is first removed. If it is a DocumentFragment node, the entire contents of the document fragment are moved into the child list of this node
GDOME_WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
GdomeNode* gdome_t_cloneNode (GdomeText *self, GdomeBoolean deep, GdomeException *exc); |
self : | Node Object ref |
deep : | If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an Element). |
exc : | Exception Object ref |
Returns : | a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent; (parentNode is NULL). |
void gdome_t_normalize (GdomeText *self, GdomeException *exc); |
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.
GdomeBoolean gdome_t_isSupported (GdomeText *self, GdomeDOMString *feature, GdomeDOMString *version, GdomeException *exc); |
Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.
self : | Node Object ref |
feature : | The name of the feature to test. |
version : | This is the version number of the feature to test. In Level 2, version 1, this is the string "2.0". If the version is not specified, supporting any version of the feature will cause the method to return TRUE. |
exc : | Exception Object ref |
Returns : | TRUE if the specified feature is supported on this node, FALSE otherwise. |
void gdome_t_set_prefix (GdomeText *self, GdomeDOMString *prefix, GdomeException *exc); |
Sets a new nemaspace prefix for this node.
GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. GDOME_NAMESPACE_ERR: Raised if the specified prefix is malformed, if the namespaceURI of this node is NULL, if the specified prefix is "xml" and the namespaceURI of this node is different from "http://www.w3.org/XML/1998/namespace", if this node is an attribute and the specified prefix is "xmlns" and the namespaceURI of this node is different from "http://www.w3.org/2000/xmlns/", or if this node is an attribute and the qualifiedName of this node is "xmlns"
void gdome_t_addEventListener (GdomeText *self, GdomeDOMString *type, |
NOT IMPLEMENTED YET
void gdome_t_removeEventListener (GdomeText *self, GdomeDOMString *type, |
NOT IMPLEMENTED YET
GdomeBoolean gdome_t_dispatchEvent (GdomeText *self, |
NOT IMPLEMENTED YET