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, removeForwarder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public FlatSequenceDB(String location, String dbName) throws IOException, BioException
IOException
BioException
public String getName()
SequenceDBLite
getName
in interface SequenceDBLite
public Sequence getSequence(String id) throws IllegalIDException, BioException
SequenceDBLite
getSequence
in interface SequenceDBLite
id
- 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 SequenceDBLite
sequence
- a Sequence
.ChangeVetoException
public void removeSequence(String id) throws ChangeVetoException
removeSequence
always throws a
ChangeVetoException
as this implementation is
immutable.removeSequence
in interface SequenceDBLite
id
- a String
.ChangeVetoException
Copyright © 2014 BioJava. All rights reserved.