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, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNameaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic WebSequenceDB()
protected abstract SequenceFormat getSequenceFormat()
protected abstract URL getAddress(String id) throws MalformedURLException
MalformedURLExceptionprotected abstract Alphabet getAlphabet()
public Sequence getSequence(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(String id) throws ChangeVetoException
removeSequence in interface SequenceDBLiteid - the sequence you tried to change.ChangeVetoException - always!Copyright © 2014 BioJava. All rights reserved.