Aravis.DomNode¶
- Subclasses:
Aravis.DomCharacterData
,Aravis.DomDocument
,Aravis.DomDocumentFragment
,Aravis.DomElement
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Aravis.DomNode(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- append_child(new_child)¶
- Parameters:
new_child (
Aravis.DomNode
) – node to append- Returns:
the added node.
- Return type:
Adds the node new_child to the end of the list of children of this node. If the new_child is already in the tree, it is first removed.
- changed()¶
- get_child_nodes()¶
- Returns:
a
Aravis.DomNodeList
,None
on error.- Return type:
- get_first_child()¶
- Returns:
self first child.
- Return type:
- get_last_child()¶
- Returns:
self last child.
- Return type:
- get_next_sibling()¶
- Returns:
self next sibling.
- Return type:
- get_node_type()¶
- Return type:
- get_owner_document()¶
- Returns:
self owner document.
- Return type:
- get_parent_node()¶
- Returns:
self parent.
- Return type:
Get the parent node of self.
- get_previous_sibling()¶
- Returns:
self previous sibling.
- Return type:
- insert_before(new_child, ref_child)¶
- Parameters:
new_child (
Aravis.DomNode
) – node to insertref_child (
Aravis.DomNode
) – reference node, i.e., the node before which the new node must be inserted.
- Returns:
the inserted node.
- Return type:
Inserts the node new_child before the existing child node ref_child. If ref_child is null, insert new_child at the end of the list of children. If the new_child is already in the tree, it is first removed.
- remove_child(old_child)¶
- Parameters:
old_child (
Aravis.DomNode
) – node to remove.- Returns:
the removed node.
- Return type:
Removes the child node indicated by old_child from the list of children, and returns it.
- replace_child(new_child, old_child)¶
- Parameters:
new_child (
Aravis.DomNode
) – a replacement nodeold_child (
Aravis.DomNode
) – node to replace
- Returns:
the replaced node.
- Return type:
Replaces the child node old_child with new_child in the list of children, and returns the old_child node. If the new_child is already in the tree, it is first removed.
- do_can_append_child(new_child) virtual¶
- Parameters:
new_child (
Aravis.DomNode
) –- Return type:
- do_changed() virtual¶
- do_child_changed(child) virtual¶
- Parameters:
child (
Aravis.DomNode
) –- Return type:
- do_get_node_type() virtual¶
- Return type:
- do_post_new_child(child) virtual¶
- Parameters:
child (
Aravis.DomNode
) –
- do_pre_remove_child(child) virtual¶
- Parameters:
child (
Aravis.DomNode
) –