0
|
1 # $Id: TechReport.pm,v 1.6 2002/10/22 07:45:11 lapp Exp $
|
|
2 #
|
|
3 # BioPerl module for Bio::Biblio::TechReport
|
|
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::TechReport - Representation of a technical report
|
|
13
|
|
14 =head1 SYNOPSIS
|
|
15
|
|
16 $obj = new Bio::Biblio::TechReport
|
|
17 (-authors => [
|
|
18 new Bio::Biblio::Person (-lastname => 'Hasek'),
|
|
19 new Bio::Biblio::Person (-lastname => 'Jagr'),
|
|
20 new Bio::Biblio::Organisation (-name => 'NHL'),
|
|
21 ]
|
|
22 -title => 'Pinned in the corner');
|
|
23
|
|
24 =head1 DESCRIPTION
|
|
25
|
|
26 A storage object for a technical report.
|
|
27 See its place in the class hierarchy in
|
|
28 http://industry.ebi.ac.uk/openBQS/images/bibobjects_perl.gif
|
|
29
|
|
30 =head2 Attributes
|
|
31
|
|
32 There are no specific attributes in this class
|
|
33 (however, you can set and get all attributes defined in the parent classes).
|
|
34
|
|
35 =head1 SEE ALSO
|
|
36
|
|
37 =over
|
|
38
|
|
39 =item *
|
|
40
|
|
41 OpenBQS home page: http://industry.ebi.ac.uk/openBQS
|
|
42
|
|
43 =item *
|
|
44
|
|
45 Comments to the Perl client: http://industry.ebi.ac.uk/openBQS/Client_perl.html
|
|
46
|
|
47 =back
|
|
48
|
|
49 =head1 FEEDBACK
|
|
50
|
|
51 =head2 Mailing Lists
|
|
52
|
|
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.
|
|
56
|
|
57 bioperl-l@bioperl.org - General discussion
|
|
58 http://bioperl.org/MailList.shtml - About the mailing lists
|
|
59
|
|
60 =head2 Reporting Bugs
|
|
61
|
|
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
|
|
64 email or the web:
|
|
65
|
|
66 bioperl-bugs@bioperl.org
|
|
67 http://bugzilla.bioperl.org/
|
|
68
|
|
69 =head1 AUTHORS
|
|
70
|
|
71 Heikki Lehvaslaiho (heikki@ebi.ac.uk),
|
|
72 Martin Senger (senger@ebi.ac.uk)
|
|
73
|
|
74 =head1 COPYRIGHT
|
|
75
|
|
76 Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
|
|
77
|
|
78 This module is free software; you can redistribute it and/or modify
|
|
79 it under the same terms as Perl itself.
|
|
80
|
|
81 =head1 DISCLAIMER
|
|
82
|
|
83 This software is provided "as is" without warranty of any kind.
|
|
84
|
|
85 =cut
|
|
86
|
|
87
|
|
88 # Let the code begin...
|
|
89
|
|
90
|
|
91 package Bio::Biblio::TechReport;
|
|
92 use strict;
|
|
93 use vars qw(@ISA);
|
|
94
|
|
95 use Bio::Biblio::Ref;
|
|
96
|
|
97 @ISA = qw( Bio::Biblio::Ref);
|
|
98
|
|
99 #
|
|
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)
|
|
104 #
|
|
105 {
|
|
106 my %_allowed = (
|
|
107 );
|
|
108
|
|
109 # return 1 if $attr is allowed to be set/get in this class
|
|
110 sub _accessible {
|
|
111 my ($self, $attr) = @_;
|
|
112 exists $_allowed{$attr} or $self->SUPER::_accessible ($attr);
|
|
113 }
|
|
114
|
|
115 # return an expected type of given $attr
|
|
116 sub _attr_type {
|
|
117 my ($self, $attr) = @_;
|
|
118 if (exists $_allowed{$attr}) {
|
|
119 return $_allowed{$attr};
|
|
120 } else {
|
|
121 return $self->SUPER::_attr_type ($attr);
|
|
122 }
|
|
123 }
|
|
124 }
|
|
125
|
|
126
|
|
127 1;
|
|
128 __END__
|