~ubuntu-branches/ubuntu/trusty/bioperl/trusty

« back to all changes in this revision

Viewing changes to Bio/Biblio/MedlineBook.pm

  • Committer: Package Import Robot
  • Author(s): Charles Plessy
  • Date: 2013-09-22 13:39:48 UTC
  • mfrom: (3.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20130922133948-c6z62zegjyp7ztou
Tags: 1.6.922-1
* New upstream release.
* Replaces and Breaks grinder (<< 0.5.3-3~) because of overlaping contents.
  Closes: #722910
* Stop Replacing and Breaking bioperl ( << 1.6.9 ): not needed anymore. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# BioPerl module for Bio::Biblio::MedlineBook
3
 
#
4
 
# Please direct questions and support issues to <bioperl-l@bioperl.org> 
5
 
#
6
 
# Cared for by Martin Senger <senger@ebi.ac.uk>
7
 
# For copyright and disclaimer see below.
8
 
 
9
 
# POD documentation - main docs before the code
10
 
 
11
 
=head1 NAME
12
 
 
13
 
Bio::Biblio::MedlineBook - Representation of a MEDLINE book
14
 
 
15
 
=head1 SYNOPSIS
16
 
 
17
 
    $obj = Bio::Biblio::MedlineBook->new
18
 
                  (-editor => Bio::Biblio::Person->new
19
 
                             (-lastname => 'Loukides'),
20
 
                   -isbn  => '0-596-00068-5');
21
 
  #--- OR ---
22
 
 
23
 
    $obj = Bio::Biblio::MedlineBook->new();
24
 
    $obj->isbn ('0-596-00068-5');
25
 
 
26
 
=head1 DESCRIPTION
27
 
 
28
 
A storage object for a MEDLINE book.
29
 
See its place in the class hierarchy in
30
 
http://www.ebi.ac.uk/~senger/openbqs/images/bibobjects_perl.gif
31
 
 
32
 
=head2 Attributes
33
 
 
34
 
There are no specific attributes in this class
35
 
(however, you can set and get all attributes defined in the parent classes).
36
 
The main raison d'etre of this class is to be associated with MEDLINE book articles.
37
 
 
38
 
=head1 SEE ALSO
39
 
 
40
 
=over 4
41
 
 
42
 
=item *
43
 
 
44
 
OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
45
 
 
46
 
=item *
47
 
 
48
 
Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
49
 
 
50
 
=back
51
 
 
52
 
=head1 FEEDBACK
53
 
 
54
 
=head2 Mailing Lists
55
 
 
56
 
User feedback is an integral part of the evolution of this and other
57
 
Bioperl modules. Send your comments and suggestions preferably to
58
 
the Bioperl mailing list.  Your participation is much appreciated.
59
 
 
60
 
  bioperl-l@bioperl.org                  - General discussion
61
 
  http://bioperl.org/wiki/Mailing_lists  - About the mailing lists
62
 
 
63
 
=head2 Support 
64
 
 
65
 
Please direct usage questions or support issues to the mailing list:
66
 
 
67
 
I<bioperl-l@bioperl.org>
68
 
 
69
 
rather than to the module maintainer directly. Many experienced and 
70
 
reponsive experts will be able look at the problem and quickly 
71
 
address it. Please include a thorough description of the problem 
72
 
with code and data examples if at all possible.
73
 
 
74
 
=head2 Reporting Bugs
75
 
 
76
 
Report bugs to the Bioperl bug tracking system to help us keep track
77
 
of the bugs and their resolution. Bug reports can be submitted via the
78
 
web:
79
 
 
80
 
  https://redmine.open-bio.org/projects/bioperl/
81
 
 
82
 
=head1 AUTHORS
83
 
 
84
 
Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
85
 
Martin Senger (senger@ebi.ac.uk)
86
 
 
87
 
=head1 COPYRIGHT
88
 
 
89
 
Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
90
 
 
91
 
This module is free software; you can redistribute it and/or modify
92
 
it under the same terms as Perl itself.
93
 
 
94
 
=head1 DISCLAIMER
95
 
 
96
 
This software is provided "as is" without warranty of any kind.
97
 
 
98
 
=cut
99
 
 
100
 
 
101
 
# Let the code begin...
102
 
 
103
 
 
104
 
package Bio::Biblio::MedlineBook;
105
 
use strict;
106
 
 
107
 
 
108
 
use base qw(Bio::Biblio::Book);
109
 
 
110
 
#
111
 
# a closure with a list of allowed attribute names (these names
112
 
# correspond with the allowed 'get' and 'set' methods); each name also
113
 
# keep what type the attribute should be (use 'undef' if it is a
114
 
# simple scalar)
115
 
#
116
 
{
117
 
    my %_allowed =
118
 
        (
119
 
         );
120
 
 
121
 
    # return 1 if $attr is allowed to be set/get in this class
122
 
    sub _accessible {
123
 
        my ($self, $attr) = @_;
124
 
        exists $_allowed{$attr} or $self->SUPER::_accessible ($attr);
125
 
    }
126
 
 
127
 
    # return an expected type of given $attr
128
 
    sub _attr_type {
129
 
        my ($self, $attr) = @_;
130
 
        if (exists $_allowed{$attr}) {
131
 
            return $_allowed{$attr};
132
 
        } else {
133
 
            return $self->SUPER::_attr_type ($attr);
134
 
        }
135
 
    }
136
 
}
137
 
 
138
 
 
139
 
1;
140
 
__END__