|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojavax.bio.db.AbstractBioEntryDB
org.biojavax.bio.db.AbstractRichSequenceDB
public abstract class AbstractRichSequenceDB
An abstract implementation of RichSequenceDB that provides the getRichSequenceIterator method.
| Field Summary |
|---|
| Fields inherited from interface org.biojava.bio.seq.db.SequenceDBLite |
|---|
SEQUENCES |
| Fields inherited from interface org.biojavax.bio.db.BioEntryDBLite |
|---|
BIOENTRYS |
| Fields inherited from interface org.biojavax.bio.db.BioEntryDBLite |
|---|
BIOENTRYS |
| Fields inherited from interface org.biojava.bio.seq.db.SequenceDBLite |
|---|
SEQUENCES |
| Constructor Summary | |
|---|---|
AbstractRichSequenceDB()
|
|
| Method Summary | |
|---|---|
void |
addBioEntry(BioEntry seq)
Adds a sequence to the database. |
void |
addRichSequence(RichSequence seq)
Adds a sequence to the database. |
void |
addSequence(Sequence seq)
Adds a sequence to the database. |
FeatureHolder |
filter(FeatureFilter ff)
Query features attached to all sequences in this database. |
BioEntry |
getBioEntry(String id)
Retrieve a single BioEntry by its id. |
BioEntryIterator |
getBioEntryIterator()
Returns a BioEntryIterator over all BioEntrys in the database. |
BioEntryDB |
getBioEntrys(Set ids)
Retrieve multiple BioEntry by their ids. |
BioEntryDB |
getBioEntrys(Set ids,
BioEntryDB db)
Retrieve multiple BioEntry into a specific sequence database. |
RichSequenceIterator |
getRichSequenceIterator()
Returns a RichSequenceIterator over all sequences in the database. |
Sequence |
getSequence(String id)
Retrieve a single sequence by its id. |
void |
removeBioEntry(String id)
Remove the BioEntry associated with an ID from the database. |
void |
removeRichSequence(String id)
Remove the RichSequence associated with an ID from the database. |
void |
removeSequence(String id)
Remove the sequence associated with an ID from the database. |
SequenceIterator |
sequenceIterator()
Returns a SequenceIterator over all sequences in the database. |
| Methods inherited from class org.biojava.utils.AbstractChangeable |
|---|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.biojava.bio.seq.db.SequenceDB |
|---|
ids |
| Methods inherited from interface org.biojava.bio.seq.db.SequenceDBLite |
|---|
getName |
| Methods inherited from interface org.biojava.utils.Changeable |
|---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from interface org.biojavax.bio.db.BioEntryDB |
|---|
ids |
| Methods inherited from interface org.biojavax.bio.db.BioEntryDBLite |
|---|
getName |
| Methods inherited from interface org.biojavax.bio.db.RichSequenceDBLite |
|---|
getRichSequence, getRichSequences, getRichSequences |
| Methods inherited from interface org.biojavax.bio.db.BioEntryDBLite |
|---|
getName |
| Methods inherited from interface org.biojava.bio.seq.db.SequenceDBLite |
|---|
getName |
| Methods inherited from interface org.biojava.utils.Changeable |
|---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Constructor Detail |
|---|
public AbstractRichSequenceDB()
| Method Detail |
|---|
public Sequence getSequence(String id)
throws BioException,
IllegalIDException
SequenceDBLite
getSequence in interface SequenceDBLiteid - the id to retrieve by
IllegalIDException - if the database doesn't know about the id
BioException - if there was a failure in retrieving the sequence
public BioEntry getBioEntry(String id)
throws BioException,
IllegalIDException
BioEntryDBLite
getBioEntry in interface BioEntryDBLiteid - the id to retrieve by
IllegalIDException - if the database doesn't know about the id
BioException - if there was a failure in retrieving the BioEntry
public BioEntryDB getBioEntrys(Set ids)
throws BioException,
IllegalIDException
BioEntryDBLite
getBioEntrys in interface BioEntryDBLiteids - a set of ids to retrieve by
IllegalIDException - if the database doesn't know about the id
BioException
public BioEntryDB getBioEntrys(Set ids,
BioEntryDB db)
throws BioException,
IllegalIDException
BioEntryDBLite
getBioEntrys in interface BioEntryDBLiteids - a set of ids to retrieve bydb - a database to load the seqs into
IllegalIDException - if the database doesn't know about the id
BioException
public void addSequence(Sequence seq)
throws IllegalIDException,
BioException,
ChangeVetoException
SequenceDBLite
addSequence in interface SequenceDBLiteseq - the Sequence to add
IllegalIDException - if a uniqe ID could not be generated for seq
BioException - if something goes wrong with adding the sequence
ChangeVetoException - if either the database does not allow
sequences to be added or the modification was vetoed
public void removeSequence(String id)
throws IllegalIDException,
BioException,
ChangeVetoException
SequenceDBLite
removeSequence in interface SequenceDBLiteid - the ID of the sequence to remove
IllegalIDException - if there is no sequence for the ID
BioException - if something failed while removing the sequence for
that ID
ChangeVetoException - if either the database does not allow
sequences to be removed or the modification was vetoed
public void addBioEntry(BioEntry seq)
throws IllegalIDException,
BioException,
ChangeVetoException
BioEntryDBLite
addBioEntry in interface BioEntryDBLiteaddBioEntry in class AbstractBioEntryDBseq - the BioEntry to add
IllegalIDException - if a uniqe ID could not be generated for BioEntry
BioException - if something goes wrong with adding the BioEntry
ChangeVetoException - if either the database does not allow
BioEntrys to be added or the modification was vetoed
public void removeBioEntry(String id)
throws IllegalIDException,
BioException,
ChangeVetoException
BioEntryDBLite
removeBioEntry in interface BioEntryDBLiteremoveBioEntry in class AbstractBioEntryDBid - the ID of the BioEntry to remove
IllegalIDException - if there is no BioEntry for the ID
BioException - if something failed while removing the BioEntry for
that ID
ChangeVetoException - if either the database does not allow
BioEntrys to be removed or the modification was vetoed
public void addRichSequence(RichSequence seq)
throws IllegalIDException,
BioException,
ChangeVetoException
RichSequenceDBLite
addRichSequence in interface RichSequenceDBLiteseq - the RichSequence to add
IllegalIDException - if a uniqe ID could not be generated for RichSequence
BioException - if something goes wrong with adding the RichSequence
ChangeVetoException - if either the database does not allow
RichSequences to be added or the modification was vetoed
public void removeRichSequence(String id)
throws IllegalIDException,
BioException,
ChangeVetoException
RichSequenceDBLite
removeRichSequence in interface RichSequenceDBLiteid - the ID of the RichSequence to remove
IllegalIDException - if there is no RichSequence for the ID
BioException - if something failed while removing the RichSequence for
that ID
ChangeVetoException - if either the database does not allow
RichSequences to be removed or the modification was vetoedpublic SequenceIterator sequenceIterator()
SequenceDB
sequenceIterator in interface SequenceDBsequenceIterator in interface RichSequenceDBpublic BioEntryIterator getBioEntryIterator()
BioEntryDB
getBioEntryIterator in interface BioEntryDBgetBioEntryIterator in class AbstractBioEntryDBpublic RichSequenceIterator getRichSequenceIterator()
RichSequenceDB
getRichSequenceIterator in interface RichSequenceDBpublic FeatureHolder filter(FeatureFilter ff)
SequenceDBfilter to all
sequences then merging the results.
filter in interface SequenceDBff - a FeatureFilter.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||