Class

AppStreamValidator

Description

class AppStream.Validator : GObject.Object
{
  /* No available fields */
}

No description available.

Hierarchy

hierarchy this AsValidator ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

as_validator_new

Creates a new AsValidator.

Instance methods

as_validator_add_override

Override the severity of a selected tag. For most tags, the severity can not be lowered to a value that makes a validation that would otherwise fail pass (so e.g. an ERROR can not become an INFO). Some tags are explicitly allowed to have their severity lowered to enable validation of e.g. incomplete metadata during development. Increasing the severity of any tag is always allowed.

since: 0.15.4

as_validator_add_release_bytes

Add release metadata explicitly from bytes.

since: 0.16.0

as_validator_add_release_file

Add a release metadata file to the validation process.

since: 0.16.0

as_validator_check_success

Check the current registered values again and return TRUE if no issues were found that would make the previously validated files fail validation.

as_validator_clear_release_data

Clear all release information that was explicitly added to the validation process.

since: 0.16.0

as_validator_get_allow_net
No description available.

as_validator_get_issue_files_count

Get the number of files for which issues have been found.

since: 0.16.0

as_validator_get_issues

Get a list of found metadata format issues.

as_validator_get_issues_per_file

Get a hash table of filenames mapped to lists of issues. This is useful if validation was requested for multiple files and a list of issues per-file is desired without prior explicit sorting.

since: 0.12.8

as_validator_get_report_yaml
No description available.

as_validator_get_strict
No description available.

since: 0.15.4

as_validator_get_tag_explanation

Get the explanatory text for a given issue tag.

as_validator_get_tag_severity

Get the severity for a given issue tag.

as_validator_get_tags

Get an array of all tags known to the validator.

as_validator_set_allow_net

If set to TRUE, the validator will be allowed to connect to the internet to e.g. check URLs for validity.

as_validator_set_strict

Enable or disable strict mode. In strict mode, any found issue will result in a failed validation (except for issues of “pedantic” severity). Otherwise, only a “warning” or “error” will cause the validation to fail.

since: 0.15.4

as_validator_validate_bytes

Validate AppStream XML data from a byte array. Remember to run %as_validator_clear_issues if you do not want previous validation runs to affect the outcome of this validation.

since: 0.14.0

as_validator_validate_data

Validate AppStream XML data.

as_validator_validate_file

Validate an AppStream XML file.

as_validator_validate_tree

Validate a full directory tree for issues in AppStream metadata.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AppStreamValidatorClass {
  GObjectClass parent_class;
  void (* _as_reserved1) (
void
  );
  void (* _as_reserved2) (
void
  );
  void (* _as_reserved3) (
void
  );
  void (* _as_reserved4) (
void
  );
  void (* _as_reserved5) (
void
  );
  void (* _as_reserved6) (
void
  );
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.

_as_reserved1: void (* _as_reserved1) ( void )

No description available.

_as_reserved2: void (* _as_reserved2) ( void )

No description available.

_as_reserved3: void (* _as_reserved3) ( void )

No description available.

_as_reserved4: void (* _as_reserved4) ( void )

No description available.

_as_reserved5: void (* _as_reserved5) ( void )

No description available.

_as_reserved6: void (* _as_reserved6) ( void )

No description available.