|
/home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/AudioFile-Identify-MusicBrainz/blib/lib/AudioFile/Identify/MusicBrainz/Object.pm |
AudioFile::Identify::MusicBrainz::Object
Base class for the AudioFile::Identify::MusicBrainz manpage objects.
'new' method. Don't override this; override init instead.
blank init method, used in some base classes to do setup
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.
get/set the 'id' property - I use the url of the rdf resource.
|
/home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/AudioFile-Identify-MusicBrainz/blib/lib/AudioFile/Identify/MusicBrainz/Object.pm |