Package musicbrainz2 :: Module wsxml :: Class LabelResult
[frames] | no frames]

Class LabelResult

source code

    object --+    
             |    
AbstractResult --+
                 |
                LabelResult

Represents a label result.

An LabelResult consists of a score and a label. The score is a number between 0 and 100, where a higher number indicates a better match.

Instance Methods
 
__init__(self, label, score)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getLabel(self)
Returns a Label object.
source code
 
setLabel(self, label) source code

Inherited from AbstractResult: getScore, setScore

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  label
A Label object.

Inherited from AbstractResult: score

Inherited from object: __class__

Method Details

__init__(self, label, score)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

getLabel(self)

source code 

Returns a Label object.

Returns:
a musicbrainz2.model.Label object

Property Details

label

A Label object.

Get Method:
getLabel(self) - Returns a Label object.
Set Method:
setLabel(self, label)