4 # This module is licensed under the same terms as Perl itself. You use,
5 # modify, and redistribute it under the terms of the Perl Artistic License.
10 Bio::IdCollectionI - interface for objects with multiple identifiers
15 # to test this is an identifiable collection object
17 $obj->isa("Bio::IdCollectionI") ||
18 $obj->throw("$obj does not implement the Bio::IdCollectionI interface");
21 @authorities = $obj->id_authorities();
23 $id = $obj->ids($authority);
27 This interface describes methods expected on objects that have
28 multiple identifiers, each of which is controlled by a different
35 User feedback is an integral part of the evolution of this and other
36 Bioperl modules. Send your comments and suggestions preferably to one
37 of the Bioperl mailing lists. Your participation is much appreciated.
39 bioperl-l@bioperl.org - General discussion
40 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
44 Report bugs to the Bioperl bug tracking system to help us keep track
45 the bugs and their resolution. Bug reports can be submitted via the
48 http://bugzilla.open-bio.org/
50 =head1 AUTHOR - Lincoln Stein
56 package Bio
::IdCollectionI
;
60 use base
qw(Bio::Root::RootI);
62 =head1 Implementation Specific Functions
64 These functions are the ones that a specific implementation must
69 Title : id_authorities
70 Usage : @array = $obj->id_authorities()
71 Function: Return the authorities which have names for this object.
72 The authorities can then be used to select ids.
81 $self->throw_not_implemented();
87 Usage : @ids = $obj->ids([$authority1,$authority2...])
88 Function: return a list of Bio::IdentifiableI objects, optionally
89 filtered by the list of authorities.
91 Returns : A list of Bio::IdentifiableI objects.
99 $self->throw_not_implemented();