C:\cpanrun\depot\main\contrib-patched\perl\CPAN\src\AudioFile-Identify-MusicBrainz\blib/lib/AudioFile/Identify/MusicBrainz/Object.pm


NAME

AudioFile::Identify::MusicBrainz::Object


DESCRIPTION

Base class for the AudioFile::Identify::MusicBrainz manpage objects.


METHODS

new

'new' method. Don't override this; override init instead.

init

blank init method, used in some base classes to do setup

parse

passed an XML::DOM::Node object, parse assumes that it's a Musicbrainz object, a Track, Album, whatever. For each chils of the element, strip the namespace of the tag name, and call the method on $self with that name, passing the XML::DOM::Node that is that tag.

The base classes of Object will have methods like 'title', 'artist', etc, that parse the passed Node object and extract the right data. See the AudioFile::Identify::MusicBrainz::Artist manpage, for instance, for examples.

id

get/set the 'id' property - I use the url of the rdf resource.