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.Categorystructure 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-
Noneand non-empty. scheme must beNoneor non-empty.
- get_label()¶
-
Gets the
GData.Category:labelproperty.New in version 0.4.0.
- get_scheme()¶
-
Gets the
GData.Category:schemeproperty. 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:termproperty. The term will always be a non-None, non-empty string.New in version 0.4.0.
- set_label(label)¶
-
Sets the
GData.Category:labelproperty to label.Set label to
Noneto unset the property in the category.New in version 0.4.0.
- set_scheme(scheme)¶
-
Sets the
GData.Category:schemeproperty to scheme. scheme must beNoneor non-empty.Set scheme to
Noneto 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:termproperty to term. term must be non-Noneand 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.