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 java.net.URL |
getAddress(java.lang.String id) |
protected abstract Alphabet |
getAlphabet() |
Sequence |
getSequence(java.lang.String id)
Gets a sequence using its unique ID (eg for GenBank this would be the GI number)
|
protected abstract SequenceFormat |
getSequenceFormat() |
void |
removeSequence(java.lang.String id)
Not supported, you can't remove a sequence from a WebDB!
|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNameaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerprotected abstract SequenceFormat getSequenceFormat()
protected abstract java.net.URL getAddress(java.lang.String id)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionprotected abstract Alphabet getAlphabet()
public Sequence getSequence(java.lang.String id) throws BioException
getSequence in interface SequenceDBLiteid - 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 SequenceDBLiteseq - the sequence you tried to addChangeVetoException - always!public void removeSequence(java.lang.String id)
throws ChangeVetoException
removeSequence in interface SequenceDBLiteid - the sequence you tried to change.ChangeVetoException - always!