3 # BioPerl module for Bio::Biblio::Person
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::Person - Representation of a person
16 $obj = new Bio::Biblio::Person (-lastname => 'Capek',
17 -firstname => 'Karel');
20 $obj = new Bio::Biblio::Person;
21 $obj->firstname ('Karel');
22 $obj->lastname ('Capek');
26 A storage object for a person related to a bibliographic resource.
30 The following attributes are specific to this class
31 (however, you can also set and get all attributes defined in the parent classes):
49 OpenBQS home page: http://industry.ebi.ac.uk/openBQS
53 Comments to the Perl client: http://industry.ebi.ac.uk/openBQS/Client_perl.html
61 User feedback is an integral part of the evolution of this and other
62 Bioperl modules. Send your comments and suggestions preferably to
63 the Bioperl mailing list. Your participation is much appreciated.
65 bioperl-l@bioperl.org - General discussion
66 http://bioperl.org/MailList.shtml - About the mailing lists
70 Report bugs to the Bioperl bug tracking system to help us keep track
71 of the bugs and their resolution. Bug reports can be submitted via
74 bioperl-bugs@bioperl.org
75 http://bugzilla.bioperl.org/
79 Heikki Lehvaslaiho (heikki@ebi.ac.uk)
80 Martin Senger (senger@ebi.ac.uk)
84 Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
86 This module is free software; you can redistribute it and/or modify
87 it under the same terms as Perl itself.
91 This software is provided "as is" without warranty of any kind.
96 # Let the code begin...
99 package Bio
::Biblio
::Person
;
103 use Bio::Biblio::Provider;
105 @ISA = qw( Bio::Biblio::Provider);
108 # a closure with a list of allowed attribute names (these names
109 # correspond with the allowed 'get' and 'set' methods); each name also
110 # keep what type the attribute should be (use 'undef' if it is a
116 _affiliation
=> undef,
122 _middlename
=> undef,
123 _postal_address
=> undef,
127 # return 1 if $attr is allowed to be set/get in this class
129 my ($self, $attr) = @_;
130 exists $_allowed{$attr} or $self->SUPER::_accessible
($attr);
133 # return an expected type of given $attr
135 my ($self, $attr) = @_;
136 if (exists $_allowed{$attr}) {
137 return $_allowed{$attr};
139 return $self->SUPER::_attr_type
($attr);