GData.GDWhere

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

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new (relation_type, value_string, label)

get_label ()

get_relation_type ()

get_value_string ()

set_label (label)

set_relation_type (relation_type)

set_value_string (value_string)

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

Specifies a user-readable label to distinguish this location from others.

relation-type

str

r/w

Specifies the relationship between the container and the containee.

value-string

str

r/w

A simple string representation of this location.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GData.Parsable

r

Class Details

class GData.GDWhere(**kwargs)
Bases:

GData.Parsable, GData.Comparable

Abstract:

No

Structure:

GData.GDWhereClass

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

New in version 0.2.0.

classmethod new(relation_type, value_string, label)
Parameters:
  • relation_type (str or None) – the relationship between the item and this place, or None

  • value_string (str or None) – a string to represent the place, or None

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

Returns:

a new GData.GDWhere; unref with GObject.Object.unref()

Return type:

GData.GDWhere

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

Currently, entryLink functionality is not implemented in GData.GDWhere.

New in version 0.2.0.

get_label()
Returns:

the label, or None

Return type:

str

Gets the GData.GDWhere :label property.

New in version 0.4.0.

get_relation_type()
Returns:

the relation type, or None

Return type:

str

Gets the GData.GDWhere :relation-type property.

New in version 0.4.0.

get_value_string()
Returns:

the value string, or None

Return type:

str

Gets the GData.GDWhere :value-string property.

New in version 0.4.0.

set_label(label)
Parameters:

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

Sets the GData.GDWhere :label property to label.

Set label to None to unset the property.

New in version 0.4.0.

set_relation_type(relation_type)
Parameters:

relation_type (str or None) – the new relation type, or None

Sets the GData.GDWhere :relation-type property to relation_type.

Set relation_type to None to unset the property.

New in version 0.4.0.

set_value_string(value_string)
Parameters:

value_string (str or None) – the new value string, or None

Sets the GData.GDWhere :value-string property to value_string.

Set value_string to None to unset the property.

New in version 0.4.0.

Property Details

GData.GDWhere.props.label
Name:

label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Specifies a user-readable label to distinguish this location from others.

For more information, see the

GData specification.

New in version 0.4.0.

GData.GDWhere.props.relation_type
Name:

relation-type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Specifies the relationship between the containing entity and the contained location. For example: GData.GD_WHERE_EVENT or GData.GD_WHERE_EVENT_PARKING.

For more information, see the

GData specification.

New in version 0.4.0.

GData.GDWhere.props.value_string
Name:

value-string

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

A simple string representation of this location.

For more information, see the

GData specification.

New in version 0.4.0.