GData.GDName

g GData.Comparable GData.Comparable GData.GDName GData.GDName GData.Comparable->GData.GDName GData.Parsable GData.Parsable GData.Parsable->GData.GDName 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 (given_name, family_name)

get_additional_name ()

get_family_name ()

get_full_name ()

get_given_name ()

get_prefix ()

get_suffix ()

set_additional_name (additional_name)

set_family_name (family_name)

set_full_name (full_name)

set_given_name (given_name)

set_prefix (prefix)

set_suffix (suffix)

Virtual Methods

Inherited:

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

Properties

Inherited:

GData.Parsable (1)

Name

Type

Flags

Short Description

additional-name

str

r/w

An additional name for the person (e.g. a middle name).

family-name

str

r/w

The person’s family name.

full-name

str

r/w

An unstructured representation of the person’s full name.

given-name

str

r/w

The person’s given name.

prefix

str

r/w

An honorific prefix.

suffix

str

r/w

An honorific suffix.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GData.Parsable

r

Class Details

class GData.GDName(**kwargs)
Bases:

GData.Parsable, GData.Comparable

Abstract:

No

Structure:

GData.GDNameClass

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

New in version 0.5.0.

classmethod new(given_name, family_name)
Parameters:
  • given_name (str or None) – the person’s given name, or None

  • family_name (str or None) – the person’s family name, or None

Returns:

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

Return type:

GData.GDName

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

New in version 0.5.0.

get_additional_name()
Returns:

the person’s additional name, or None

Return type:

str

Gets the GData.GDName :additional-name property.

New in version 0.5.0.

get_family_name()
Returns:

the person’s family name, or None

Return type:

str

Gets the GData.GDName :family-name property.

New in version 0.5.0.

get_full_name()
Returns:

the person’s full name, or None

Return type:

str

Gets the GData.GDName :full-name property.

New in version 0.5.0.

get_given_name()
Returns:

the person’s given name, or None

Return type:

str

Gets the GData.GDName :given-name property.

New in version 0.5.0.

get_prefix()
Returns:

the person’s name prefix, or None

Return type:

str

Gets the GData.GDName :prefix property.

New in version 0.5.0.

get_suffix()
Returns:

the person’s name suffix, or None

Return type:

str

Gets the GData.GDName :suffix property.

New in version 0.5.0.

set_additional_name(additional_name)
Parameters:

additional_name (str or None) – the new additional name, or None

Sets the GData.GDName :additional-name property to additional_name.

New in version 0.5.0.

set_family_name(family_name)
Parameters:

family_name (str or None) – the new family name, or None

Sets the GData.GDName :family-name property to family_name.

New in version 0.5.0.

set_full_name(full_name)
Parameters:

full_name (str or None) – the new full name, or None

Sets the GData.GDName :full-name property to full_name.

New in version 0.5.0.

set_given_name(given_name)
Parameters:

given_name (str or None) – the new given name, or None

Sets the GData.GDName :given-name property to given_name.

New in version 0.5.0.

set_prefix(prefix)
Parameters:

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

Sets the GData.GDName :prefix property to prefix.

New in version 0.5.0.

set_suffix(suffix)
Parameters:

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

Sets the GData.GDName :suffix property to suffix.

New in version 0.5.0.

Property Details

GData.GDName.props.additional_name
Name:

additional-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

An additional name for the person (e.g. a middle name).

For more information, see the

GData specification.

New in version 0.5.0.

GData.GDName.props.family_name
Name:

family-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The person’s family name.

For more information, see the

GData specification.

New in version 0.5.0.

GData.GDName.props.full_name
Name:

full-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

An unstructured representation of the person’s full name. It’s generally advised to use the other individual properties in preference to this one, which can fall out of synchronisation with the other properties.

For more information, see the

GData specification.

New in version 0.5.0.

GData.GDName.props.given_name
Name:

given-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The person’s given name.

For more information, see the

GData specification.

New in version 0.5.0.

GData.GDName.props.prefix
Name:

prefix

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

An honorific prefix (e.g. Mr or Mrs).

For more information, see the

GData specification.

New in version 0.5.0.

GData.GDName.props.suffix
Name:

suffix

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

An honorific suffix (e.g. san or III).

For more information, see the

GData specification.

New in version 0.5.0.