GData.Category¶
- Subclasses:
Methods¶
- Inherited:
GData.Parsable (5), GObject.Object (37), GData.Comparable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GData.Parsable (9), GObject.Object (7), GData.Comparable (1)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
A human-readable label for display in end-user applications. |
||
r/w |
An IRI that identifies a categorization scheme. |
||
r/w |
Identifies the category to which the entry or feed belongs. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.Category(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.Category
structure are private and should never be accessed directly.- classmethod new(term, scheme, label)¶
- Parameters:
- Returns:
a new
GData.Category
, orNone
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.Category
. More information is available in the Atom specification.term must be non-
None
and non-empty. scheme must beNone
or non-empty.
- get_label()¶
-
Gets the
GData.Category
:label
property.New in version 0.4.0.
- get_scheme()¶
-
Gets the
GData.Category
:scheme
property. If the scheme is non-None
, it will be non-empty.New in version 0.4.0.
- get_term()¶
- Returns:
the category’s term
- Return type:
Gets the
GData.Category
:term
property. The term will always be a non-None
, non-empty string.New in version 0.4.0.
- set_label(label)¶
-
Sets the
GData.Category
:label
property to label.Set label to
None
to unset the property in the category.New in version 0.4.0.
- set_scheme(scheme)¶
-
Sets the
GData.Category
:scheme
property to scheme. scheme must beNone
or non-empty.Set scheme to
None
to unset the property in the category.New in version 0.4.0.
- set_term(term)¶
- Parameters:
term (
str
) – the new term for the category
Sets the
GData.Category
:term
property to term. term must be non-None
and non-empty.New in version 0.4.0.
Property Details¶
- GData.Category.props.label¶
-
A human-readable label for display in end-user applications.
For more information, see the
New in version 0.4.0.
- GData.Category.props.scheme¶
-
An IRI that identifies a categorization scheme.
For more information, see the
New in version 0.4.0.