Home | Trees | Indices | Help |
---|
|
object --+ | Entity
A first-level MusicBrainz class.
All entities in MusicBrainz have unique IDs (which are absolute URIs) as well as any number of relations to other entities and free text tags. This class is abstract and should not be instantiated.
Relations are differentiated by their target type, that means, where they link to. MusicBrainz currently supports four target types (artists, releases, tracks, and URLs) each identified using a URI. To get all relations with a specific target type, you can use getRelations and pass one of the following constants as the parameter:
See Also: Relation
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
id The MusicBrainz ID. |
|
tags The tags for this entity. |
|
rating The rating for this entity. |
|
Inherited from |
Method Details |
Constructor. This should only used by derived classes.
|
Returns a MusicBrainz ID.
|
Sets a MusicBrainz ID.
|
Returns a list of relations. If If You may use the If
See Also: Entity |
Returns a list of relation targets. The arguments work exactly like in getRelations, but instead of Relation objects, the matching relation targets are returned. This can be Artist, Release, or Track objects, depending on the relations. As a special case, URL strings are returned if the target is an URL.
See Also: getRelations |
Adds a relation. This method adds
See Also: Entity |
Returns a list of target types available for this entity. Use this to find out to which types of targets this entity has relations. If the entity only has relations to tracks and artists, for example, then a list containg the strings Relation.TO_TRACK and Relation.TO_ARTIST is returned.
See Also: getRelations |
Return the tag with the given value (aka the tag's name).
|
Return all tags attached to this Entity.
|
Add a new tag. This merges an existing tag with the same name.
See Also: getTags |
Return the rating of this Entity. 0 = Unrated 1 - 5 = Rating
|
Property Details |
idThe MusicBrainz ID. |
tagsThe tags for this entity.
|
ratingThe rating for this entity.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Dec 5 13:37:51 2011 | http://epydoc.sourceforge.net |