public class SequenceDBDataSource extends Object implements DistDataSource
| Constructor and Description | 
|---|
| SequenceDBDataSource(SequenceDB seqDB) | 
| Modifier and Type | Method and Description | 
|---|---|
| FeatureHolder | getFeatures(FeatureFilter ff)Get all features matching a FeatureFilter provided by this DistDataSource. | 
| FeatureHolder | getFeatures(String id,
                      FeatureFilter ff,
                      boolean recurse)Get all features matching a FeatureFilter on a Sequence with an ID and recurse flats. | 
| Sequence | getSequence(String id)Get a Sequence object for an ID. | 
| boolean | hasFeatures(String id)Find out if this DistDataSource can provide features on a sequence with a particular ID. | 
| boolean | hasSequence(String id)Find out if this DistDataSource provides the sequence information for a sequence ID. | 
| Set | ids(boolean topLevel)Get the complete set of sequence IDs provided by this DistDataSource. | 
public SequenceDBDataSource(SequenceDB seqDB)
public boolean hasSequence(String id) throws BioException
DistDataSourcehasSequence in interface DistDataSourceid - the String id of a sequenceBioExceptionpublic boolean hasFeatures(String id) throws BioException
DistDataSourcehasFeatures in interface DistDataSourceid - the String id of a sequenceBioExceptionpublic FeatureHolder getFeatures(FeatureFilter ff) throws BioException
DistDataSourcegetFeatures in interface DistDataSourceff - the FeatureFilter to search withBioExceptionpublic FeatureHolder getFeatures(String id, FeatureFilter ff, boolean recurse) throws BioException
DistDataSourcegetFeatures in interface DistDataSourceid - the ID of the Sequenceff - the FeatureFilter to search withrecurse - true if we are to recurse the feature hierachy, false otherwiseBioException - if the features could not be fetchedpublic Sequence getSequence(String id) throws BioException
DistDataSourcegetSequence in interface DistDataSourceid - the ID of the Sequence to fetchBioException - if either the ID could not be resolved or if the
         sequence could not be fetchedpublic Set ids(boolean topLevel) throws BioException
DistDataSourceGet the complete set of sequence IDs provided by this DistDataSource.
If the recurse flat is true, the IDs associated with the top level will be returned. However, if it is false, then IDs should be returned for all levels of an assembly hierachy including the top level IDs.
ids in interface DistDataSourcetopLevel - if true, return top level IDs, otherwise all IDsBioException - if the IDs could not be fetchedCopyright © 2014 BioJava. All rights reserved.