Package musicbrainz2 :: Module model :: Class ArtistAlias
[frames | no frames]

Type ArtistAlias

object --+
         |
        ArtistAlias


Represents an artist alias.

An alias (the alias value) is a different representation of an artist's name. This may be a common misspelling or a transliteration (the alias type).

The alias script is interesting mostly for transliterations and indicates which script is used for the alias value. To represent the script, ISO-15924 script codes like 'Latn', 'Cyrl', or 'Hebr' are used.
Method Summary
  __init__(self, value, type_, script)
Constructor.
  getScript(self)
Returns the alias script.
  getType(self)
Returns the alias type.
  getValue(self)
Returns the alias.
  setScript(self, script)
Sets the alias script.
  setType(self, type_)
Sets the alias type.
  setValue(self, value)
Sets the alias.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Property Summary
  script: The alias script.
  type: The alias type.
  value: The alias value.

Method Details

__init__(self, value=None, type_=None, script=None)
(Constructor)

Constructor.
Parameters:
value - a string containing the alias
type_ - a string containing an absolute URI
script - a string containing an ISO-15924 script code
Overrides:
__builtin__.object.__init__

getScript(self)

Returns the alias script.
Returns:
a string containing an ISO-15924 script code

getType(self)

Returns the alias type.
Returns:
a string containing an absolute URI, or None

getValue(self)

Returns the alias.
Returns:
a string containing the alias

setScript(self, script)

Sets the alias script.
Parameters:
script - a string containing an ISO-15924 script code

setType(self, type_)

Sets the alias type.
Parameters:
type_ - a string containing an absolute URI, or None

setValue(self, value)

Sets the alias.
Parameters:
value - a string containing the alias

Property Details

script

The alias script.
Get Method:
getScript(self)
Set Method:
setScript(self, script)

type

The alias type.
Get Method:
getType(self)
Set Method:
setType(self, type_)

value

The alias value.
Get Method:
getValue(self)
Set Method:
setValue(self, value)

Generated by Epydoc 2.1 on Wed Dec 20 18:19:28 2006 http://epydoc.sf.net