GData.Category

g GData.Category GData.Category GData.Comparable GData.Comparable GData.Comparable->GData.Category GData.Parsable GData.Parsable GData.Parsable->GData.Category GObject.GInterface GObject.GInterface GObject.GInterface->GData.Comparable GObject.Object GObject.Object GObject.Object->GData.Parsable

Subclasses:

GData.YouTubeCategory

Methods

Inherited:

GData.Parsable (5), GObject.Object (37), GData.Comparable (1)

Structs:

GObject.ObjectClass (5)

class

new (term, scheme, label)

get_label ()

get_scheme ()

get_term ()

set_label (label)

set_scheme (scheme)

set_term (term)

Virtual Methods

Inherited:

GData.Parsable (9), GObject.Object (7), GData.Comparable (1)

Properties

Inherited:

GData.Parsable (1)

Name

Type

Flags

Short Description

label

str

r/w

A human-readable label for display in end-user applications.

scheme

str

r/w

An IRI that identifies a categorization scheme.

term

str

r/w

Identifies the category to which the entry or feed belongs.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GData.Parsable

r

Class Details

class GData.Category(**kwargs)
Bases:

GData.Parsable, GData.Comparable

Abstract:

No

Structure:

GData.CategoryClass

All the fields in the GData.Category structure are private and should never be accessed directly.

classmethod new(term, scheme, label)
Parameters:
  • term (str) – a category identifier

  • scheme (str or None) – an IRI to define the categorisation scheme, or None

  • label (str or None) – a human-readable label for the category, or None

Returns:

a new GData.Category, or None; unref with GObject.Object.unref()

Return type:

GData.Category

Creates a new GData.Category. More information is available in the Atom specification.

term must be non-None and non-empty. scheme must be None or non-empty.

get_label()
Returns:

the category’s label, or None

Return type:

str

Gets the GData.Category :label property.

New in version 0.4.0.

get_scheme()
Returns:

the category’s scheme, or None

Return type:

str

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:

str

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)
Parameters:

label (str or None) – the new label for the category, or None

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)
Parameters:

scheme (str or None) – the new scheme for the category, or None

Sets the GData.Category :scheme property to scheme. scheme must be None 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
Name:

label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

A human-readable label for display in end-user applications.

For more information, see the

Atom specification.

New in version 0.4.0.

GData.Category.props.scheme
Name:

scheme

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

An IRI that identifies a categorization scheme.

For more information, see the

Atom specification.

New in version 0.4.0.

GData.Category.props.term
Name:

term

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Identifies the category to which the entry or feed belongs.

For more information, see the

Atom specification.

New in version 0.4.0.