2
# BioPerl module for Bio::Biblio::Provider
4
# Please direct questions and support issues to <bioperl-l@bioperl.org>
6
# Cared for by Martin Senger <senger@ebi.ac.uk>
7
# For copyright and disclaimer see below.
9
# POD documentation - main docs before the code
13
Bio::Biblio::Provider - Representation of a general provider
17
# usually this class is not instantiated but can be...
18
$obj = Bio::Biblio::Provider->new(-type => 'Department');
22
$obj = Bio::Biblio::Provider->new();
23
$obj->type ('Department');
27
A storage object for a general bibliographic resource provider
28
(a rpovider can be a person, a organisation, or even a program).
32
The following attributes are specific to this class,
33
and they are inherited by all provider types.
43
OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
47
Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
55
User feedback is an integral part of the evolution of this and other
56
Bioperl modules. Send your comments and suggestions preferably to
57
the Bioperl mailing list. Your participation is much appreciated.
59
bioperl-l@bioperl.org - General discussion
60
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
64
Please direct usage questions or support issues to the mailing list:
66
I<bioperl-l@bioperl.org>
68
rather than to the module maintainer directly. Many experienced and
69
reponsive experts will be able look at the problem and quickly
70
address it. Please include a thorough description of the problem
71
with code and data examples if at all possible.
75
Report bugs to the Bioperl bug tracking system to help us keep track
76
of the bugs and their resolution. Bug reports can be submitted via the
79
https://redmine.open-bio.org/projects/bioperl/
83
Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
84
Martin Senger (senger@ebi.ac.uk)
88
Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
90
This module is free software; you can redistribute it and/or modify
91
it under the same terms as Perl itself.
95
This software is provided "as is" without warranty of any kind.
100
# Let the code begin...
103
package Bio::Biblio::Provider;
105
use vars qw($AUTOLOAD);
108
use base qw(Bio::Biblio::BiblioBase);
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
122
# return 1 if $attr is allowed to be set/get in this class
124
my ($self, $attr) = @_;
125
exists $_allowed{$attr};
128
# return an expected type of given $attr
130
my ($self, $attr) = @_;