2
# BioPerl module for Bio::Biblio::MedlineBook
4
# Please direct questions and support issues to <bioperl-l@bioperl.org>
6
# Cared for by Martin Senger <senger@ebi.ac.uk>
7
# For copyright and disclaimer see below.
9
# POD documentation - main docs before the code
13
Bio::Biblio::MedlineBook - Representation of a MEDLINE book
17
$obj = Bio::Biblio::MedlineBook->new
18
(-editor => Bio::Biblio::Person->new
19
(-lastname => 'Loukides'),
20
-isbn => '0-596-00068-5');
23
$obj = Bio::Biblio::MedlineBook->new();
24
$obj->isbn ('0-596-00068-5');
28
A storage object for a MEDLINE book.
29
See its place in the class hierarchy in
30
http://www.ebi.ac.uk/~senger/openbqs/images/bibobjects_perl.gif
34
There are no specific attributes in this class
35
(however, you can set and get all attributes defined in the parent classes).
36
The main raison d'etre of this class is to be associated with MEDLINE book articles.
44
OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
48
Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
56
User feedback is an integral part of the evolution of this and other
57
Bioperl modules. Send your comments and suggestions preferably to
58
the Bioperl mailing list. Your participation is much appreciated.
60
bioperl-l@bioperl.org - General discussion
61
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
65
Please direct usage questions or support issues to the mailing list:
67
I<bioperl-l@bioperl.org>
69
rather than to the module maintainer directly. Many experienced and
70
reponsive experts will be able look at the problem and quickly
71
address it. Please include a thorough description of the problem
72
with code and data examples if at all possible.
76
Report bugs to the Bioperl bug tracking system to help us keep track
77
of the bugs and their resolution. Bug reports can be submitted via the
80
https://redmine.open-bio.org/projects/bioperl/
84
Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
85
Martin Senger (senger@ebi.ac.uk)
89
Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
91
This module is free software; you can redistribute it and/or modify
92
it under the same terms as Perl itself.
96
This software is provided "as is" without warranty of any kind.
101
# Let the code begin...
104
package Bio::Biblio::MedlineBook;
108
use base qw(Bio::Biblio::Book);
111
# a closure with a list of allowed attribute names (these names
112
# correspond with the allowed 'get' and 'set' methods); each name also
113
# keep what type the attribute should be (use 'undef' if it is a
121
# return 1 if $attr is allowed to be set/get in this class
123
my ($self, $attr) = @_;
124
exists $_allowed{$attr} or $self->SUPER::_accessible ($attr);
127
# return an expected type of given $attr
129
my ($self, $attr) = @_;
130
if (exists $_allowed{$attr}) {
131
return $_allowed{$attr};
133
return $self->SUPER::_attr_type ($attr);