AppStream.Reference¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStream.Reference(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.Reference
.
- get_kind()¶
- Returns:
- Return type:
Gets the reference kind.
New in version 1.0.0.
- get_registry_name()¶
-
Gets the name of the registry this reference is for, if the reference is of type
AppStream.ReferenceKind.REGISTRY
. Otherwise returnNone
.
- get_value()¶
- Returns:
the value of this reference.
- Return type:
Gets the value of this reference, e.g. a DOI if the reference kind is
AppStream.ReferenceKind.DOI
or an URL forAppStream.ReferenceKind.CITATION_CFF
.
- set_kind(kind)¶
- Parameters:
kind (
AppStream.ReferenceKind
) – theAppStream.ReferenceKind
, e.g.AppStream.ReferenceKind.DOI
.
Sets the reference kind.
New in version 1.0.0.
- set_registry_name(name)¶
- Parameters:
name (
str
) – name of an external registry.
Sets a name of a registry if this reference is of type
AppStream.ReferenceKind.REGISTRY
.