Xmlb.BuilderFixup¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
None
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class Xmlb.BuilderFixup(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod new(id, func, *user_data)¶
 - Parameters:
 id (
str) – a text ID value, e.g.AppStreamUpgradefunc (
Xmlb.BuilderFixupFunc) – a callbackuser_data (
objectorNone) – user pointer to pass to func, orNone
- Returns:
 a new
Xmlb.BuilderFixup- Return type:
 
Creates a function that will get run on every
Xmlb.BuilderNodecompile creates.New in version 0.1.3.
- get_max_depth()¶
 - Returns:
 integer, or -1 if unset
- Return type:
 
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.