[bug 2714]
[bioperl-live.git] / Bio / Biblio / TechReport.pm
blobefd6a2898958f6f5e89f103a2988797893c3eb2d
1 # $Id$
3 # BioPerl module for Bio::Biblio::TechReport
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::TechReport - Representation of a technical report
14 =head1 SYNOPSIS
16 $obj = Bio::Biblio::TechReport->new
17 (-authors => [
18 Bio::Biblio::Person->new(-lastname => 'Hasek'),
19 Bio::Biblio::Person->new(-lastname => 'Jagr'),
20 Bio::Biblio::Organisation->new(-name => 'NHL'),
22 -title => 'Pinned in the corner');
24 =head1 DESCRIPTION
26 A storage object for a technical report.
27 See its place in the class hierarchy in
28 http://www.ebi.ac.uk/~senger/openbqs/images/bibobjects_perl.gif
30 =head2 Attributes
32 There are no specific attributes in this class
33 (however, you can set and get all attributes defined in the parent classes).
35 =head1 SEE ALSO
37 =over 4
39 =item *
41 OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
43 =item *
45 Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
47 =back
49 =head1 FEEDBACK
51 =head2 Mailing Lists
53 User feedback is an integral part of the evolution of this and other
54 Bioperl modules. Send your comments and suggestions preferably to
55 the Bioperl mailing list. Your participation is much appreciated.
57 bioperl-l@bioperl.org - General discussion
58 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
60 =head2 Reporting Bugs
62 Report bugs to the Bioperl bug tracking system to help us keep track
63 of the bugs and their resolution. Bug reports can be submitted via the
64 web:
66 http://bugzilla.open-bio.org/
68 =head1 AUTHORS
70 Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
71 Martin Senger (senger@ebi.ac.uk)
73 =head1 COPYRIGHT
75 Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
77 This module is free software; you can redistribute it and/or modify
78 it under the same terms as Perl itself.
80 =head1 DISCLAIMER
82 This software is provided "as is" without warranty of any kind.
84 =cut
87 # Let the code begin...
90 package Bio::Biblio::TechReport;
91 use strict;
94 use base qw(Bio::Biblio::Ref);
97 # a closure with a list of allowed attribute names (these names
98 # correspond with the allowed 'get' and 'set' methods); each name also
99 # keep what type the attribute should be (use 'undef' if it is a
100 # simple scalar)
103 my %_allowed = (
106 # return 1 if $attr is allowed to be set/get in this class
107 sub _accessible {
108 my ($self, $attr) = @_;
109 exists $_allowed{$attr} or $self->SUPER::_accessible ($attr);
112 # return an expected type of given $attr
113 sub _attr_type {
114 my ($self, $attr) = @_;
115 if (exists $_allowed{$attr}) {
116 return $_allowed{$attr};
117 } else {
118 return $self->SUPER::_attr_type ($attr);
125 __END__