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(String location,
String dbName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSequence(Sequence sequence)
addSequence always throws a
ChangeVetoException as this implementation is
immutable. |
String |
getName()
Get the name of this sequence database.
|
Sequence |
getSequence(String id)
Retrieve a single sequence by its id.
|
void |
removeSequence(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(String location, String dbName) throws IOException, BioException
IOExceptionBioExceptionpublic String getName()
SequenceDBLitegetName in interface SequenceDBLitepublic Sequence getSequence(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(String id) throws ChangeVetoException
removeSequence always throws a
ChangeVetoException as this implementation is
immutable.removeSequence in interface SequenceDBLiteid - a String.ChangeVetoExceptionCopyright © 2014 BioJava. All rights reserved.