Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

webservice::musicbrainz::response(3pm) [debian man page]

WebService::MusicBrainz::Response(3pm)			User Contributed Perl Documentation		    WebService::MusicBrainz::Response(3pm)

NAME
WebService::MusicBrainz::Response SYNOPSIS
DESCRIPTION
This module will hide the details of the XML web service response and provide an API to query the XML data which has been returned. This module is responsible for parsing the XML web service response and instantiating objects to provide access to the details of the response. METHODS
new() This method is the constructor and it will call for initialization. xpc() as_xml() This method returns the raw XML from the MusicBrainz web service response. generator() This method will return an optional value of the generator. created() This method will return an optional value of the created date. score() This method will return an optional value of the relevance score. metadata() This method will return an Response::Metadata object. artist() This method will return an Response::Artist object. release() This method will return an Reponse::Release object;. track() This method will return an Response::Track object. label() This method will return an Response::Label object. artist_list() This method will return a reference to the Response::ArtistList object in a scalar context. If in a array context, an array of Response::Artist objects will be returned. release_list() This method will return a reference to the Response::ReleaseList object in a scalar context. If in a array context, an array of Response::Release objects will be returned. track_list() This method will return a reference to the Response::TrackList object in a scalar context. If in a array context, an array of Response::Track objects will be returned. label_list() This method will return a reference to the Response::LabelList object in a scalar context. If in a array context, an array of Response::Label objects will be returned. AUTHOR
Bob Faist <bob.faist@gmail.com> COPYRIGHT AND LICENSE
Copyright 2006-2007 by Bob Faist This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
http://wiki.musicbrainz.org/XMLWebService perl v5.10.1 2009-12-06 WebService::MusicBrainz::Response(3pm)

Check Out this Related Man Page

SRU::Response::Record(3pm)				User Contributed Perl Documentation				SRU::Response::Record(3pm)

NAME
SRU::Response::Record - A class for representing a result record in a searchRetrieve response. SYNOPSIS
my $record = SRU::Response::Record->new(); $record->recordData( '<title>Huck Finn</title>' ); $response->addRecord( $record ); DESCRIPTION
SRU::Response::Record is used to bundle up the information about a particular metadata record in a SRU::Response::SearchRetrieve object. Typically you'll construct a record object and add it to the SearchRetrieve response. METHODS
new() You must supply the recordSchema and recordData parameters. recordPacking, recordPosition, and extraRecordData may also be supplied. my $record = SRU::Response::Record->new( recordSchema => 'info:srw/schema/1/dc-v1.1', recordData => '<title>Huckleberry Finn</title>' ); recordSchema() The URI identifier of the XML schema in which the record is encoded. Although the request may use the server's assigned short name, the response must always be the full URI. recordData() The record itself, either as a string or embedded XML. If would like to pass an object in here you may do so as long as it imlements the asXML() method. recordPacking() The packing used in recordData, as requested by the client or the default: "XML". recordPosition() The position of the record within the result set. If you don't pass this in recordPosition will be automaticlly calculated for you when add or retrieve a record from a SRU::Response::SearchRetrieve object. extraRecordData() Any extra data associated with the record. See the section on extensions for more information. asXML() perl v5.12.4 2009-11-20 SRU::Response::Record(3pm)
Man Page