Snapd.MarkdownNode

g GObject.Object GObject.Object Snapd.MarkdownNode Snapd.MarkdownNode GObject.Object->Snapd.MarkdownNode

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_children ()

get_node_type ()

get_text ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

children

GLib.PtrArray

r/w/co

Child nodes

node-type

Snapd.MarkdownNodeType

r/w/co

Type of node

text

str

r/w/co

Text this node contains

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.MarkdownNode(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.MarkdownNodeClass

Snapd.MarkdownNode is an opaque data structure and can only be accessed using the provided functions.

New in version 1.48.

get_children()
Returns:

child nodes or None if none.

Return type:

[Snapd.MarkdownNode]

Get the child nodes of this node.

New in version 1.48.

get_node_type()
Returns:

a Snapd.MarkdownNodeType

Return type:

Snapd.MarkdownNodeType

Get the type of node this is.

New in version 1.48.

get_text()
Returns:

a UTF-8 string or None if none in this node.

Return type:

str

Gets the text associated with this node. This is only present for nodes of type Snapd.MarkdownNodeType.TEXT.

New in version 1.48.

Property Details

Snapd.MarkdownNode.props.children
Name:

children

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Child nodes

Snapd.MarkdownNode.props.node_type
Name:

node-type

Type:

Snapd.MarkdownNodeType

Default Value:

Snapd.MarkdownNodeType.TEXT

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Type of node

Snapd.MarkdownNode.props.text
Name:

text

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Text this node contains