Xmlb.BuilderSource

g GObject.Object GObject.Object Xmlb.BuilderSource Xmlb.BuilderSource GObject.Object->Xmlb.BuilderSource

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_fixup (fixup)

load_bytes (bytes, flags)

load_file (file, flags, cancellable)

load_xml (xml, flags)

set_info (info)

set_prefix (prefix)

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.BuilderSource(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Xmlb.BuilderSourceClass

classmethod new()
Returns:

a new Xmlb.BuilderSource

Return type:

Xmlb.BuilderSource

Creates a new builder source.

New in version 0.1.1.

add_fixup(fixup)
Parameters:

fixup (Xmlb.BuilderFixup) – a Xmlb.BuilderFixup

Adds a function that will get run on every Xmlb.BuilderNode compile creates with this source.

New in version 0.1.3.

load_bytes(bytes, flags)
Parameters:
Raises:

GLib.Error

Returns:

True for success

Return type:

bool

Loads XML data and begins to build a Xmlb.Silo.

New in version 0.1.2.

load_file(file, flags, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True for success

Return type:

bool

Loads an optionally compressed XML file to build a Xmlb.Silo.

New in version 0.1.1.

load_xml(xml, flags)
Parameters:
Raises:

GLib.Error

Returns:

True for success

Return type:

bool

Loads XML data and begins to build a Xmlb.Silo.

New in version 0.1.1.

set_info(info)
Parameters:

info (Xmlb.BuilderNode or None) – a Xmlb.BuilderNode

Sets an optional information metadata node on the root node.

New in version 0.1.0.

set_prefix(prefix)
Parameters:

prefix (str or None) – an XPath prefix, e.g. installed

Sets an optional prefix on the root node. This makes any nodes added using this source reside under a common shared parent node.

New in version 0.1.0.