0
|
1 # $Id: Journal.pm,v 1.6 2002/10/22 07:45:11 lapp Exp $
|
|
2 #
|
|
3 # BioPerl module for Bio::Biblio::Journal
|
|
4 #
|
|
5 # Cared for by Martin Senger <senger@ebi.ac.uk>
|
|
6 # For copyright and disclaimer see below.
|
|
7
|
|
8 # POD documentation - main docs before the code
|
|
9
|
|
10 =head1 NAME
|
|
11
|
|
12 Bio::Biblio::Journal - Representation of a journal
|
|
13
|
|
14 =head1 SYNOPSIS
|
|
15
|
|
16 $obj = new Bio::Biblio::Journal (-name => 'The Perl Journal',
|
|
17 -issn => '1087-903X');
|
|
18 --- OR ---
|
|
19
|
|
20 $obj = new Bio::Biblio::Journal;
|
|
21 $obj->issn ('1087-903X');
|
|
22
|
|
23 =head1 DESCRIPTION
|
|
24
|
|
25 A storage object for a journal.
|
|
26 See its place in the class hierarchy in
|
|
27 http://industry.ebi.ac.uk/openBQS/images/bibobjects_perl.gif
|
|
28
|
|
29 =head2 Attributes
|
|
30
|
|
31 The following attributes are specific to this class
|
|
32 (however, you can also set and get all attributes defined in the parent classes):
|
|
33
|
|
34 abbreviation
|
|
35 issn
|
|
36 name
|
|
37 provider type: Bio::Biblio::Provider
|
|
38
|
|
39 =head1 SEE ALSO
|
|
40
|
|
41 =over
|
|
42
|
|
43 =item *
|
|
44
|
|
45 OpenBQS home page: http://industry.ebi.ac.uk/openBQS
|
|
46
|
|
47 =item *
|
|
48
|
|
49 Comments to the Perl client: http://industry.ebi.ac.uk/openBQS/Client_perl.html
|
|
50
|
|
51 =back
|
|
52
|
|
53 =head1 FEEDBACK
|
|
54
|
|
55 =head2 Mailing Lists
|
|
56
|
|
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.
|
|
60
|
|
61 bioperl-l@bioperl.org - General discussion
|
|
62 http://bioperl.org/MailList.shtml - About the mailing lists
|
|
63
|
|
64 =head2 Reporting Bugs
|
|
65
|
|
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
|
|
68 email or the web:
|
|
69
|
|
70 bioperl-bugs@bioperl.org
|
|
71 http://bugzilla.bioperl.org/
|
|
72
|
|
73 =head1 AUTHORS
|
|
74
|
|
75 Heikki Lehvaslaiho (heikki@ebi.ac.uk),
|
|
76 Martin Senger (senger@ebi.ac.uk)
|
|
77
|
|
78 =head1 COPYRIGHT
|
|
79
|
|
80 Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
|
|
81
|
|
82 This module is free software; you can redistribute it and/or modify
|
|
83 it under the same terms as Perl itself.
|
|
84
|
|
85 =head1 DISCLAIMER
|
|
86
|
|
87 This software is provided "as is" without warranty of any kind.
|
|
88
|
|
89 =cut
|
|
90
|
|
91
|
|
92 # Let the code begin...
|
|
93
|
|
94 package Bio::Biblio::Journal;
|
|
95 use strict;
|
|
96 use vars qw(@ISA);
|
|
97
|
|
98 use Bio::Biblio::BiblioBase;
|
|
99
|
|
100 @ISA = qw(Bio::Biblio::BiblioBase);
|
|
101
|
|
102 #
|
|
103 # a closure with a list of allowed attribute names (these names
|
|
104 # correspond with the allowed 'get' and 'set' methods); each name also
|
|
105 # keep what type the attribute should be (use 'undef' if it is a
|
|
106 # simple scalar)
|
|
107 #
|
|
108 {
|
|
109 my %_allowed =
|
|
110 (
|
|
111 _abbreviation => undef,
|
|
112 _issn => undef,
|
|
113 _name => undef,
|
|
114 _provider => 'Bio::Biblio::Provider',
|
|
115 );
|
|
116
|
|
117 # return 1 if $attr is allowed to be set/get in this class
|
|
118 sub _accessible {
|
|
119 my ($self, $attr) = @_;
|
|
120 exists $_allowed{$attr};
|
|
121 }
|
|
122
|
|
123 # return an expected type of given $attr
|
|
124 sub _attr_type {
|
|
125 my ($self, $attr) = @_;
|
|
126 $_allowed{$attr};
|
|
127 }
|
|
128 }
|
|
129
|
|
130 1;
|
|
131 __END__
|