Tim Brody > HTTP-OAI-3.28 > HTTP::OAI::GetRecord

Download:
HTTP-OAI-3.28.tar.gz

Dependencies

Annotate this POD (2)

CPAN RT

New  7
Open  1
View/Report Bugs
Source   Latest Release: HTTP-OAI-4.03

NAME ^

HTTP::OAI::GetRecord - An OAI GetRecord response

DESCRIPTION ^

HTTP::OAI::GetRecord is derived from HTTP::OAI::Response and provides access to the data contained in an OAI GetRecord response in addition to the header information provided by OAI::Response.

SYNOPSIS ^

        use HTTP::OAI::GetRecord();

        $res = new HTTP::OAI::GetRecord();
        $res->record($rec);

METHODS ^

$gr = new HTTP::OAI::GetRecord

This constructor method returns a new HTTP::OAI::GetRecord object.

$rec = $gr->next

Returns the next record stored in the response, or undef if no more record are available. The record is returned as an OAI::Record.

@recs = $gr->record([$rec])

Returns the record list, and optionally adds a record to the end of the queue. GetRecord will only store one record at a time, so this method will replace any existing record if called with argument(s).

$dom = $gr->toDOM()

Returns an XML::DOM object representing the GetRecord response.

syntax highlighting: