[bug 3148] switch default to "expasy" until we can work out REST service interface
[bioperl-live.git] / Bio / Biblio / Service.pm
blobe93008ca8994b1cd34915454117e08e92630ef4a
2 # BioPerl module for Bio::Biblio::Service
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
11 =head1 NAME
13 Bio::Biblio::Service - Representation of a provider of type service
15 =head1 SYNOPSIS
17 $obj = Bio::Biblio::Service->new(-name => 'Report generator');
19 #--- OR ---
21 $obj = Bio::Biblio::Service->new();
22 $obj->name ('Report generator');
24 =head1 DESCRIPTION
26 A storage object for a service (such a computer service) related to a bibliographic resource.
28 =head2 Attributes
30 The following attributes are specific to this class
31 (however, you can also set and get all attributes defined in the parent classes):
33 name
35 =head1 SEE ALSO
37 =over 4
39 =item *
41 OpenBQS home page: http://www.ebi.ac.uk/~senger/openbqs/
43 =item *
45 Comments to the Perl client: http://www.ebi.ac.uk/~senger/openbqs/Client_perl.html
47 =back
49 =head1 FEEDBACK
51 =head2 Mailing Lists
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
60 =head2 Support
62 Please direct usage questions or support issues to the mailing list:
64 I<bioperl-l@bioperl.org>
66 rather than to the module maintainer directly. Many experienced and
67 reponsive experts will be able look at the problem and quickly
68 address it. Please include a thorough description of the problem
69 with code and data examples if at all possible.
71 =head2 Reporting Bugs
73 Report bugs to the Bioperl bug tracking system to help us keep track
74 of the bugs and their resolution. Bug reports can be submitted via the
75 web:
77 http://bugzilla.open-bio.org/
79 =head1 AUTHORS
81 Heikki Lehvaslaiho (heikki-at-bioperl-dot-org),
82 Martin Senger (senger@ebi.ac.uk)
84 =head1 COPYRIGHT
86 Copyright (c) 2002 European Bioinformatics Institute. All Rights Reserved.
88 This module is free software; you can redistribute it and/or modify
89 it under the same terms as Perl itself.
91 =head1 DISCLAIMER
93 This software is provided "as is" without warranty of any kind.
95 =cut
98 # Let the code begin...
101 package Bio::Biblio::Service;
102 use strict;
105 use base 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
111 # simple scalar)
114 my %_allowed = (
115 _name => undef,
118 # return 1 if $attr is allowed to be set/get in this class
119 sub _accessible {
120 my ($self, $attr) = @_;
121 exists $_allowed{$attr} or $self->SUPER::_accessible ($attr);
124 # return an expected type of given $attr
125 sub _attr_type {
126 my ($self, $attr) = @_;
127 if (exists $_allowed{$attr}) {
128 return $_allowed{$attr};
129 } else {
130 return $self->SUPER::_attr_type ($attr);
137 __END__