Sync'ed RichSeqI with the implementation. RichSeq provides backward
[bioperl-live.git] / Bio / Biblio / MedlineBook.pm
blob9b612347782c2834778dc44f1a626f03e5a5db53
1 # $Id$
3 # BioPerl module for Bio::Biblio::MedlineBook
5 # Cared for by Martin Senger <senger@ebi.ac.uk>
6 # For copyright and disclaimer see below.
8 # POD documentation - main docs before the code
10 =head1 NAME
12 Bio::Biblio::MedlineBook - Representation of a MEDLINE book
14 =head1 SYNOPSIS
16 $obj = new Bio::Biblio::MedlineBook
17 (-editor => new Bio::Biblio::Person
18 (-lastname => 'Loukides'),
19 -isbn => '0-596-00068-5');
20 --- OR ---
22 $obj = new Bio::Biblio::MedlineBook;
23 $obj->isbn ('0-596-00068-5');
25 =head1 DESCRIPTION
27 A storage object for a MEDLINE book.
28 See its place in the class hierarchy in
29 http://industry.ebi.ac.uk/openBQS/images/bibobjects_perl.gif
31 =head2 Attributes
33 There are no specific attributes in this class
34 (however, you can set and get all attributes defined in the parent classes).
35 The main raison d'etre of this class is to be associated with MEDLINE book articles.
37 =head1 SEE ALSO
39 =over
41 =item *
43 OpenBQS home page: http://industry.ebi.ac.uk/openBQS
45 =item *
47 Comments to the Perl client: http://industry.ebi.ac.uk/openBQS/Client_perl.html
49 =back
51 =head1 FEEDBACK
53 =head2 Mailing Lists
55 User feedback is an integral part of the evolution of this and other
56 Bioperl modules. Send your comments and suggestions preferably to
57 the Bioperl mailing list. Your participation is much appreciated.
59 bioperl-l@bioperl.org - General discussion
60 http://bioperl.org/MailList.shtml - About the mailing lists
62 =head2 Reporting Bugs
64 Report bugs to the Bioperl bug tracking system to help us keep track
65 of the bugs and their resolution. Bug reports can be submitted via
66 email or the web:
68 bioperl-bugs@bioperl.org
69 http://bugzilla.bioperl.org/
71 =head1 AUTHORS
73 Heikki Lehvaslaiho (heikki@ebi.ac.uk),
74 Martin Senger (senger@ebi.ac.uk)
76 =head1 COPYRIGHT
78 Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
80 This module is free software; you can redistribute it and/or modify
81 it under the same terms as Perl itself.
83 =head1 DISCLAIMER
85 This software is provided "as is" without warranty of any kind.
87 =cut
90 # Let the code begin...
93 package Bio::Biblio::MedlineBook;
94 use strict;
95 use vars qw(@ISA);
97 use Bio::Biblio::Book;
99 @ISA = qw(Bio::Biblio::Book);
102 # a closure with a list of allowed attribute names (these names
103 # correspond with the allowed 'get' and 'set' methods); each name also
104 # keep what type the attribute should be (use 'undef' if it is a
105 # simple scalar)
108 my %_allowed =
112 # return 1 if $attr is allowed to be set/get in this class
113 sub _accessible {
114 my ($self, $attr) = @_;
115 exists $_allowed{$attr} or $self->SUPER::_accessible ($attr);
118 # return an expected type of given $attr
119 sub _attr_type {
120 my ($self, $attr) = @_;
121 if (exists $_allowed{$attr}) {
122 return $_allowed{$attr};
123 } else {
124 return $self->SUPER::_attr_type ($attr);
131 __END__