public abstract class WebSequenceDB extends AbstractChangeable implements SequenceDBLite
SEQUENCES
Constructor and Description |
---|
WebSequenceDB() |
Modifier and Type | Method and Description |
---|---|
void |
addSequence(Sequence seq)
Not supported, You can't add sequences to a WebDB!
|
protected abstract URL |
getAddress(String id) |
protected abstract Alphabet |
getAlphabet() |
Sequence |
getSequence(String id)
Gets a sequence using its unique ID (eg for GenBank this would be the GI number)
|
protected abstract SequenceFormat |
getSequenceFormat() |
void |
removeSequence(String id)
Not supported, you can't remove a sequence from a WebDB!
|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public WebSequenceDB()
protected abstract SequenceFormat getSequenceFormat()
protected abstract URL getAddress(String id) throws MalformedURLException
MalformedURLException
protected abstract Alphabet getAlphabet()
public Sequence getSequence(String id) throws BioException
getSequence
in interface SequenceDBLite
id
- the unique IDBioException
- if the ID is invalidBioException
- if the io operation times out or has problems
connecting. Can also indicate an invalid URL has been constructed.public void addSequence(Sequence seq) throws ChangeVetoException
addSequence
in interface SequenceDBLite
seq
- the sequence you tried to addChangeVetoException
- always!public void removeSequence(String id) throws ChangeVetoException
removeSequence
in interface SequenceDBLite
id
- the sequence you tried to change.ChangeVetoException
- always!Copyright © 2014 BioJava. All rights reserved.