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
12 Bio::Biblio::TechReport - Representation of a technical report
16 $obj = Bio::Biblio::TechReport->new
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');
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
32 There are no specific attributes in this class
33 (however, you can set and get all attributes defined in the parent classes).
41 OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
45 Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
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
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
66 http://bugzilla.open-bio.org/
70 Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
71 Martin Senger (senger@ebi.ac.uk)
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.
82 This software is provided "as is" without warranty of any kind.
87 # Let the code begin...
90 package Bio
::Biblio
::TechReport
;
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
106 # return 1 if $attr is allowed to be set/get in this class
108 my ($self, $attr) = @_;
109 exists $_allowed{$attr} or $self->SUPER::_accessible
($attr);
112 # return an expected type of given $attr
114 my ($self, $attr) = @_;
115 if (exists $_allowed{$attr}) {
116 return $_allowed{$attr};
118 return $self->SUPER::_attr_type
($attr);