Foundry.License

g Foundry.License Foundry.License GObject.Object GObject.Object GObject.Object->Foundry.License

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

find (id)

class

list_all ()

dup_id ()

dup_snippet_text ()

dup_text ()

dup_title ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

id

str

r/w/co

snippet-text

str

r

snippet-text-bytes

GLib.Bytes

r/w/co

text

str

r

text-bytes

GLib.Bytes

r/w/co

title

str

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.License(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Foundry.LicenseClass

Represents a source code license.

classmethod find(id)
Parameters:

id (str) – the SPDX identifier

Return type:

Foundry.License or None

classmethod list_all()
Return type:

Gio.ListModel

Get a [iface`Gio`.ListModel] of all [class`Foundry`.License].

dup_id()
Return type:

str

dup_snippet_text()
Return type:

GLib.Bytes or None

dup_text()
Return type:

GLib.Bytes or None

dup_title()
Return type:

str

Property Details

Foundry.License.props.id
Name:

id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.License.props.snippet_text
Name:

snippet-text

Type:

str

Default Value:

None

Flags:

READABLE

Foundry.License.props.snippet_text_bytes
Name:

snippet-text-bytes

Type:

GLib.Bytes

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.License.props.text
Name:

text

Type:

str

Default Value:

None

Flags:

READABLE

Foundry.License.props.text_bytes
Name:

text-bytes

Type:

GLib.Bytes

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.License.props.title
Name:

title

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY