2
# BioPerl module for Bio::Biblio::WebResource
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::WebResource - Representation of a web resource
17
$obj = Bio::Biblio::WebResource->new
18
(-url => 'http://resources/best.html',
19
-estimated_size => 45000);
22
$obj = Bio::Biblio::WebResource->new();
23
$obj->cost ('0.3 EURO');
27
A storage object for a citation quoting a web resource.
28
See its place in the class hierarchy in
29
http://www.ebi.ac.uk/~senger/openbqs/images/bibobjects_perl.gif
33
The following attributes are specific to this class
34
(however, you can also set and get all attributes defined in the parent classes):
46
OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
50
Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
58
User feedback is an integral part of the evolution of this and other
59
Bioperl modules. Send your comments and suggestions preferably to
60
the Bioperl mailing list. Your participation is much appreciated.
62
bioperl-l@bioperl.org - General discussion
63
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
67
Please direct usage questions or support issues to the mailing list:
69
I<bioperl-l@bioperl.org>
71
rather than to the module maintainer directly. Many experienced and
72
reponsive experts will be able look at the problem and quickly
73
address it. Please include a thorough description of the problem
74
with code and data examples if at all possible.
78
Report bugs to the Bioperl bug tracking system to help us keep track
79
of the bugs and their resolution. Bug reports can be submitted or the
82
https://redmine.open-bio.org/projects/bioperl/
86
Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
87
Martin Senger (senger@ebi.ac.uk)
91
Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
93
This module is free software; you can redistribute it and/or modify
94
it under the same terms as Perl itself.
98
This software is provided "as is" without warranty of any kind.
103
# Let the code begin...
106
package Bio::Biblio::WebResource;
110
use base qw(Bio::Biblio::Ref);
113
# a closure with a list of allowed attribute names (these names
114
# correspond with the allowed 'get' and 'set' methods); each name also
115
# keep what type the attribute should be (use 'undef' if it is a
121
_estimated_size => undef,
125
# return 1 if $attr is allowed to be set/get in this class
127
my ($self, $attr) = @_;
128
exists $_allowed{$attr} or $self->SUPER::_accessible ($attr);
131
# return an expected type of given $attr
133
my ($self, $attr) = @_;
134
if (exists $_allowed{$attr}) {
135
return $_allowed{$attr};
137
return $self->SUPER::_attr_type ($attr);