tag fourth (and hopefully last) alpha
[bioperl-live.git] / branch-1-6 / Bio / Biblio / Journal.pm
blobb98e450b0b2510f979410371af8e8201cd7813ed
1 # $Id$
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
12 =head1 NAME
14 Bio::Biblio::Journal - Representation of a journal
16 =head1 SYNOPSIS
18 $obj = Bio::Biblio::Journal->new(-name => 'The Perl Journal',
19 -issn => '1087-903X');
20 #--- OR ---
22 $obj = Bio::Biblio::Journal->new();
23 $obj->issn ('1087-903X');
25 =head1 DESCRIPTION
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
31 =head2 Attributes
33 The following attributes are specific to this class
34 (however, you can also set and get all attributes defined in the parent classes):
36 abbreviation
37 issn
38 name
39 provider type: Bio::Biblio::Provider
41 =head1 SEE ALSO
43 =over 4
45 =item *
47 OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
49 =item *
51 Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
53 =back
55 =head1 FEEDBACK
57 =head2 Mailing Lists
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
66 =head2 Support
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.
77 =head2 Reporting Bugs
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
81 web:
83 http://bugzilla.open-bio.org/
85 =head1 AUTHORS
87 Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
88 Martin Senger (senger@ebi.ac.uk)
90 =head1 COPYRIGHT
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.
97 =head1 DISCLAIMER
99 This software is provided "as is" without warranty of any kind.
101 =cut
104 # Let the code begin...
106 package Bio::Biblio::Journal;
107 use strict;
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
116 # simple scalar)
119 my %_allowed =
121 _abbreviation => undef,
122 _issn => undef,
123 _name => undef,
124 _provider => 'Bio::Biblio::Provider',
127 # return 1 if $attr is allowed to be set/get in this class
128 sub _accessible {
129 my ($self, $attr) = @_;
130 exists $_allowed{$attr};
133 # return an expected type of given $attr
134 sub _attr_type {
135 my ($self, $attr) = @_;
136 $_allowed{$attr};
141 __END__