Class
AppStreamValidator
since: 1.0
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_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.
since: 1.0
as_validator_clear_release_data
Clear all release information that was explicitly added to the validation process.
since: 0.16.0
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_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_set_allow_net
If set to TRUE
, the validator will be allowed to connect
to the internet to e.g. check URLs for validity.
since: 1.0
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_tree
Validate a full directory tree for issues in AppStream metadata.
since: 1.0
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.
unstable since: 2.0
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
);
}
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.