AppStream.ValidatorIssue

g AppStream.ValidatorIssue AppStream.ValidatorIssue GObject.Object GObject.Object GObject.Object->AppStream.ValidatorIssue

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_cid ()

get_explanation ()

get_filename ()

get_hint ()

get_line ()

get_location ()

get_severity ()

get_tag ()

set_cid (cid)

set_explanation (explanation)

set_filename (fname)

set_hint (hint)

set_line (line)

set_severity (severity)

set_tag (tag)

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

GObject.Object

Abstract:

No

Structure:

AppStream.ValidatorIssueClass

classmethod new()
Returns:

a AppStream.ValidatorIssue

Return type:

AppStream.ValidatorIssue

Creates a new AppStream.ValidatorIssue.

get_cid()
Returns:

a component-id.

Return type:

str

The component-id this issue is about.

get_explanation()
Returns:

the explanation

Return type:

str

Get an extended explanation on this issue, or return None if none is available.

New in version 0.12.8.

get_filename()
Returns:

the filename

Return type:

str

The name of the file this issue was found in.

get_hint()
Returns:

the hint

Return type:

str

Get a short context hint for this issue.

New in version 0.12.8.

get_line()
Returns:

the line number where this issue occured, or -1 if unknown.

Return type:

int

Gets the line number where this issue was found.

get_location()
Returns:

the location hint as string.

Return type:

str

Builds a string containing all information about the location where this issue occured that we know about.

get_severity()
Returns:

a AppStream.IssueSeverity

Return type:

AppStream.IssueSeverity

Gets the severity of this issue.

get_tag()
Returns:

the tag

Return type:

str

Gets the issue tag string for this issue.

New in version 0.12.8.

set_cid(cid)
Parameters:

cid (str) – a component-id.

Sets the component-id this issue is about.

set_explanation(explanation)
Parameters:

explanation (str) – the explanation.

Set explanatory text for this issue.

New in version 0.12.8.

set_filename(fname)
Parameters:

fname (str) – the filename.

Sets the name of the file the issue was found in.

set_hint(hint)
Parameters:

hint (str) – the hint.

Sets short issue hint.

New in version 0.12.8.

set_line(line)
Parameters:

line (int) – the line number.

Sets the line number where this issue was found.

set_severity(severity)
Parameters:

severity (AppStream.IssueSeverity) – the AppStream.IssueSeverity.

Sets the severity for this issue.

set_tag(tag)
Parameters:

tag (str) – the tag.

Sets the issue tag.

New in version 0.12.8.