Aravis.DomNode

g Aravis.DomNode Aravis.DomNode GObject.Object GObject.Object GObject.Object->Aravis.DomNode

Subclasses:

Aravis.DomCharacterData, Aravis.DomDocument, Aravis.DomDocumentFragment, Aravis.DomElement

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

append_child (new_child)

changed ()

get_child_nodes ()

get_first_child ()

get_last_child ()

get_next_sibling ()

get_node_name ()

get_node_type ()

get_node_value ()

get_owner_document ()

get_parent_node ()

get_previous_sibling ()

has_child_nodes ()

insert_before (new_child, ref_child)

remove_child (old_child)

replace_child (new_child, old_child)

set_node_value (new_value)

Virtual Methods

Inherited:

GObject.Object (7)

do_can_append_child (new_child)

do_changed ()

do_child_changed (child)

do_get_node_name ()

do_get_node_type ()

do_get_node_value ()

do_post_new_child (child)

do_pre_remove_child (child)

do_set_node_value (new_value)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Aravis.DomNode(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Aravis.DomNodeClass

append_child(new_child)
Parameters:

new_child (Aravis.DomNode) – node to append

Returns:

the added node.

Return type:

Aravis.DomNode

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:

Aravis.DomNodeList

get_first_child()
Returns:

self first child.

Return type:

Aravis.DomNode

get_last_child()
Returns:

self last child.

Return type:

Aravis.DomNode

get_next_sibling()
Returns:

self next sibling.

Return type:

Aravis.DomNode

get_node_name()
Returns:

the node name.

Return type:

str

Gets the node name.

get_node_type()
Return type:

Aravis.DomNodeType

get_node_value()
Returns:

the node value.

Return type:

str

Gets the node value.

get_owner_document()
Returns:

self owner document.

Return type:

Aravis.DomDocument

get_parent_node()
Returns:

self parent.

Return type:

Aravis.DomNode

Get the parent node of self.

get_previous_sibling()
Returns:

self previous sibling.

Return type:

Aravis.DomNode

has_child_nodes()
Return type:

bool

insert_before(new_child, ref_child)
Parameters:
  • new_child (Aravis.DomNode) – node to insert

  • ref_child (Aravis.DomNode) – reference node, i.e., the node before which the new node must be inserted.

Returns:

the inserted node.

Return type:

Aravis.DomNode

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:

Aravis.DomNode

Removes the child node indicated by old_child from the list of children, and returns it.

replace_child(new_child, old_child)
Parameters:
Returns:

the replaced node.

Return type:

Aravis.DomNode

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.

set_node_value(new_value)
Parameters:

new_value (str) –

do_can_append_child(new_child) virtual
Parameters:

new_child (Aravis.DomNode) –

Return type:

bool

do_changed() virtual
do_child_changed(child) virtual
Parameters:

child (Aravis.DomNode) –

Return type:

bool

do_get_node_name() virtual
Returns:

the node name.

Return type:

str

Gets the node name.

do_get_node_type() virtual
Return type:

Aravis.DomNodeType

do_get_node_value() virtual
Returns:

the node value.

Return type:

str

Gets the node value.

do_post_new_child(child) virtual
Parameters:

child (Aravis.DomNode) –

do_pre_remove_child(child) virtual
Parameters:

child (Aravis.DomNode) –

do_set_node_value(new_value) virtual
Parameters:

new_value (str) –