Xmlb.BuilderFixup

g GObject.Object GObject.Object Xmlb.BuilderFixup Xmlb.BuilderFixup GObject.Object->Xmlb.BuilderFixup

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (id, func, *user_data)

get_max_depth ()

set_max_depth (max_depth)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Xmlb.BuilderFixup(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Xmlb.BuilderFixupClass

classmethod new(id, func, *user_data)
Parameters:
Returns:

a new Xmlb.BuilderFixup

Return type:

Xmlb.BuilderFixup

Creates a function that will get run on every Xmlb.BuilderNode compile creates.

New in version 0.1.3.

get_max_depth()
Returns:

integer, or -1 if unset

Return type:

int

Gets the maximum depth used for this fixup, if each node is being visited.

New in version 0.1.3.

set_max_depth(max_depth)
Parameters:

max_depth (int) – integer, -1 for “all”

Sets the maximum depth used for this fixup. Use a max_depth of 0 to only visit the root node.

Setting a maximum depth may increase performance considerably if using fixup functions on large and deeply nested XML files.

New in version 0.1.3.