3 # BioPerl module for Bio::Biblio::Journal
5 # Please direct questions and support issues to <bioperl-l@bioperl.org>
7 # Cared for by Martin Senger <senger@ebi.ac.uk>
8 # For copyright and disclaimer see below.
10 # POD documentation - main docs before the code
14 Bio::Biblio::Journal - Representation of a journal
18 $obj = Bio::Biblio::Journal->new(-name => 'The Perl Journal',
19 -issn => '1087-903X');
22 $obj = Bio::Biblio::Journal->new();
23 $obj->issn ('1087-903X');
27 A storage object for a journal.
28 See its place in the class hierarchy in
29 http://www.ebi.ac.uk/~senger/openbqs/images/bibobjects_perl.gif
33 The following attributes are specific to this class
34 (however, you can also set and get all attributes defined in the parent classes):
39 provider type: Bio::Biblio::Provider
47 OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
51 Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
59 User feedback is an integral part of the evolution of this and other
60 Bioperl modules. Send your comments and suggestions preferably to
61 the Bioperl mailing list. Your participation is much appreciated.
63 bioperl-l@bioperl.org - General discussion
64 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
68 Please direct usage questions or support issues to the mailing list:
70 I<bioperl-l@bioperl.org>
72 rather than to the module maintainer directly. Many experienced and
73 reponsive experts will be able look at the problem and quickly
74 address it. Please include a thorough description of the problem
75 with code and data examples if at all possible.
79 Report bugs to the Bioperl bug tracking system to help us keep track
80 of the bugs and their resolution. Bug reports can be submitted via the
83 http://bugzilla.open-bio.org/
87 Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
88 Martin Senger (senger@ebi.ac.uk)
92 Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
94 This module is free software; you can redistribute it and/or modify
95 it under the same terms as Perl itself.
99 This software is provided "as is" without warranty of any kind.
104 # Let the code begin...
106 package Bio
::Biblio
::Journal
;
110 use base
qw(Bio::Biblio::BiblioBase);
113 # a closure with a list of allowed attribute names (these names
114 # correspond with the allowed 'get' and 'set' methods); each name also
115 # keep what type the attribute should be (use 'undef' if it is a
121 _abbreviation
=> undef,
124 _provider
=> 'Bio::Biblio::Provider',
127 # return 1 if $attr is allowed to be set/get in this class
129 my ($self, $attr) = @_;
130 exists $_allowed{$attr};
133 # return an expected type of given $attr
135 my ($self, $attr) = @_;