public class FlatSequenceDB extends Unchangeable implements SequenceDBLite
FlatSequenceDB is an OBDA flatfile sequence databank
implementation. It is backed by an index created using the
org.biojava.bio.program.indexdb package.SEQUENCES| Constructor and Description |
|---|
FlatSequenceDB(java.lang.String location,
java.lang.String dbName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSequence(Sequence sequence)
addSequence always throws a
ChangeVetoException as this implementation is
immutable. |
java.lang.String |
getName()
Get the name of this sequence database.
|
Sequence |
getSequence(java.lang.String id)
Retrieve a single sequence by its id.
|
void |
removeSequence(java.lang.String id)
removeSequence always throws a
ChangeVetoException as this implementation is
immutable. |
addChangeListener, addChangeListener, addForwarder, getForwarders, getListeners, isUnchanging, removeChangeListener, removeChangeListener, removeForwarderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic FlatSequenceDB(java.lang.String location,
java.lang.String dbName)
throws java.io.IOException,
BioException
java.io.IOExceptionBioExceptionpublic java.lang.String getName()
SequenceDBLitegetName in interface SequenceDBLitepublic Sequence getSequence(java.lang.String id) throws IllegalIDException, BioException
SequenceDBLitegetSequence in interface SequenceDBLiteid - the id to retrieve byIllegalIDException - if the database doesn't know about the idBioException - if there was a failure in retrieving the sequencepublic void addSequence(Sequence sequence) throws ChangeVetoException
addSequence always throws a
ChangeVetoException as this implementation is
immutable.addSequence in interface SequenceDBLitesequence - a Sequence.ChangeVetoExceptionpublic void removeSequence(java.lang.String id)
throws ChangeVetoException
removeSequence always throws a
ChangeVetoException as this implementation is
immutable.removeSequence in interface SequenceDBLiteid - a String.ChangeVetoException