Validator
Object Hierarchy:
Description:
Namespace: AppStream
Package: appstream
Content:
Creation methods:
- public Validator ()
Creates a new Validator.
Methods:
- public bool add_override (string tag, IssueSeverity severity_override) throws Error
Override the severity of a selected tag.
- public bool add_release_bytes (string release_fname, Bytes release_metadata) throws Error
Add release metadata explicitly from bytes.
- public bool add_release_file (File release_file) throws Error
Add a release metadata file to the validation process.
- public void clear_issues ()
Clears the list of issues
- public void clear_release_data ()
Clear all release information that was explicitly added to the validation process.
- public bool get_check_urls ()
- public uint get_issue_files_count ()
Get the number of files for which issues have been found.
- public List<unowned ValidatorIssue> get_issues ()
Get a list of found metadata format issues.
- public unowned HashTable<string,GenericArray<ValidatorIssue>> get_issues_per_file ()
Get a hash table of filenames mapped to lists of issues.
- public bool get_report_yaml (string yaml_report)
- public bool get_strict ()
- public unowned string get_tag_explanation (string tag)
Get the explanatory text for a given issue tag.
- public IssueSeverity get_tag_severity (string tag)
Get the severity for a given issue tag.
- public string[] get_tags ()
Get an array of all tags known to the validator.
- public void set_check_urls (bool value)
Set this value to make the Validator check whether remote URLs actually exist.
- public void set_strict (bool is_strict)
Enable or disable strict mode.
- public bool validate_bytes (Bytes metadata)
Validate AppStream XML data from a byte array.
- public bool validate_data (string metadata)
Validate AppStream XML data.
- public bool validate_file (File metadata_file)
Validate an AppStream XML file.
- public bool validate_tree (string root_dir)
Validate a full directory tree for issues in AppStream metadata.
Inherited Members:
All known members inherited from class GLib.Object