2 # BioPerl module for Bio::Biblio::Journal
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::Journal - Representation of a journal
17 $obj = Bio::Biblio::Journal->new(-name => 'The Perl Journal',
18 -issn => '1087-903X');
21 $obj = Bio::Biblio::Journal->new();
22 $obj->issn ('1087-903X');
26 A storage object for a journal.
27 See its place in the class hierarchy in
28 http://www.ebi.ac.uk/~senger/openbqs/images/bibobjects_perl.gif
32 The following attributes are specific to this class
33 (however, you can also set and get all attributes defined in the parent classes):
38 provider type: Bio::Biblio::Provider
46 OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
50 Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
58 User feedback is an integral part of the evolution of this and other
59 Bioperl modules. Send your comments and suggestions preferably to
60 the Bioperl mailing list. Your participation is much appreciated.
62 bioperl-l@bioperl.org - General discussion
63 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
67 Please direct usage questions or support issues to the mailing list:
69 I<bioperl-l@bioperl.org>
71 rather than to the module maintainer directly. Many experienced and
72 reponsive experts will be able look at the problem and quickly
73 address it. Please include a thorough description of the problem
74 with code and data examples if at all possible.
78 Report bugs to the Bioperl bug tracking system to help us keep track
79 of the bugs and their resolution. Bug reports can be submitted via the
82 http://bugzilla.open-bio.org/
86 Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
87 Martin Senger (senger@ebi.ac.uk)
91 Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
93 This module is free software; you can redistribute it and/or modify
94 it under the same terms as Perl itself.
98 This software is provided "as is" without warranty of any kind.
103 # Let the code begin...
105 package Bio
::Biblio
::Journal
;
109 use base
qw(Bio::Biblio::BiblioBase);
112 # a closure with a list of allowed attribute names (these names
113 # correspond with the allowed 'get' and 'set' methods); each name also
114 # keep what type the attribute should be (use 'undef' if it is a
120 _abbreviation
=> undef,
123 _provider
=> 'Bio::Biblio::Provider',
126 # return 1 if $attr is allowed to be set/get in this class
128 my ($self, $attr) = @_;
129 exists $_allowed{$attr};
132 # return an expected type of given $attr
134 my ($self, $attr) = @_;