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, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ids
getName, getSequence
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public AbstractSequenceDB()
public SequenceIterator sequenceIterator()
SequenceDB
sequenceIterator
in interface SequenceDB
public FeatureHolder filter(FeatureFilter ff)
SequenceDB
filter
to all
sequences then merging the results.filter
in interface SequenceDB
ff
- a FeatureFilter
.public void addSequence(Sequence seq) throws BioException, ChangeVetoException
SequenceDBLite
addSequence
in interface SequenceDBLite
seq
- 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
SequenceDBLite
removeSequence
in interface SequenceDBLite
id
- 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.