* sync with trunk
[bioperl-live.git] / Bio / Biblio / Journal.pm
blob24afaa5004b2ed6e6e68d2b6165fc6cfed29db2c
1 # $Id$
3 # BioPerl module for Bio::Biblio::Journal
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::Journal - Representation of a journal
14 =head1 SYNOPSIS
16 $obj = Bio::Biblio::Journal->new(-name => 'The Perl Journal',
17 -issn => '1087-903X');
18 #--- OR ---
20 $obj = Bio::Biblio::Journal->new();
21 $obj->issn ('1087-903X');
23 =head1 DESCRIPTION
25 A storage object for a journal.
26 See its place in the class hierarchy in
27 http://www.ebi.ac.uk/~senger/openbqs/images/bibobjects_perl.gif
29 =head2 Attributes
31 The following attributes are specific to this class
32 (however, you can also set and get all attributes defined in the parent classes):
34 abbreviation
35 issn
36 name
37 provider type: Bio::Biblio::Provider
39 =head1 SEE ALSO
41 =over 4
43 =item *
45 OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
47 =item *
49 Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
51 =back
53 =head1 FEEDBACK
55 =head2 Mailing Lists
57 User feedback is an integral part of the evolution of this and other
58 Bioperl modules. Send your comments and suggestions preferably to
59 the Bioperl mailing list. Your participation is much appreciated.
61 bioperl-l@bioperl.org - General discussion
62 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
64 =head2 Reporting Bugs
66 Report bugs to the Bioperl bug tracking system to help us keep track
67 of the bugs and their resolution. Bug reports can be submitted via the
68 web:
70 http://bugzilla.open-bio.org/
72 =head1 AUTHORS
74 Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
75 Martin Senger (senger@ebi.ac.uk)
77 =head1 COPYRIGHT
79 Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
81 This module is free software; you can redistribute it and/or modify
82 it under the same terms as Perl itself.
84 =head1 DISCLAIMER
86 This software is provided "as is" without warranty of any kind.
88 =cut
91 # Let the code begin...
93 package Bio::Biblio::Journal;
94 use strict;
97 use base qw(Bio::Biblio::BiblioBase);
100 # a closure with a list of allowed attribute names (these names
101 # correspond with the allowed 'get' and 'set' methods); each name also
102 # keep what type the attribute should be (use 'undef' if it is a
103 # simple scalar)
106 my %_allowed =
108 _abbreviation => undef,
109 _issn => undef,
110 _name => undef,
111 _provider => 'Bio::Biblio::Provider',
114 # return 1 if $attr is allowed to be set/get in this class
115 sub _accessible {
116 my ($self, $attr) = @_;
117 exists $_allowed{$attr};
120 # return an expected type of given $attr
121 sub _attr_type {
122 my ($self, $attr) = @_;
123 $_allowed{$attr};
128 __END__