public abstract class AbstractSequenceDB extends AbstractChangeable implements SequenceDB
SEQUENCES| Constructor and Description |
|---|
AbstractSequenceDB() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSequence(Sequence seq)
Adds a sequence to the database.
|
FeatureHolder |
filter(FeatureFilter ff)
Query features attached to all sequences in this 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.
|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitidsgetName, getSequenceaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic AbstractSequenceDB()
public SequenceIterator sequenceIterator()
SequenceDBsequenceIterator in interface SequenceDBpublic FeatureHolder filter(FeatureFilter ff)
SequenceDBfilter to all
sequences then merging the results.filter in interface SequenceDBff - a FeatureFilter.public void addSequence(Sequence seq) throws BioException, ChangeVetoException
SequenceDBLiteaddSequence in interface SequenceDBLiteseq - the Sequence to addIllegalIDException - if a uniqe ID could not be generated for seqBioException - if something goes wrong with adding the sequenceChangeVetoException - if either the database does not allow
sequences to be added or the modification was vetoedpublic void removeSequence(String id) throws BioException, ChangeVetoException
SequenceDBLiteremoveSequence in interface SequenceDBLiteid - the ID of the sequence to removeIllegalIDException - if there is no sequence for the IDBioException - if something failed while removing the sequence for
that IDChangeVetoException - if either the database does not allow
sequences to be removed or the modification was vetoedCopyright © 2014 BioJava. All rights reserved.