S
- the type of the sequence objects (e.g. a BioJava sequence type or String
)T
- the type of sequence elements (tokens) the implementing provider object works withpublic interface SequenceAccessAlignmentModel<S,T> extends AlignmentModel<T>, SequenceAccess<S>
AlignmentModel
by using sequence objects. Methods to
replace a whole sequence are specified for the case that the sequence objects (e.g. Strings or
BioJava sequences) do not allow to be modified after creation.Modifier and Type | Method and Description |
---|---|
java.lang.String |
addSequence(java.lang.String sequenceName,
S content)
Adds a the specified sequence to the underlying data source and generates an ID for it.
|
S |
replaceSequence(java.lang.String sequenceID,
S content)
Replaces the sequence object with the specified ID.
|
addSequence, addSequence, appendToken, appendTokens, containsSequence, getChangeListeners, getID, getLabel, getMaxSequenceLength, getSequenceCount, getSequenceLength, getTokenAt, getTokenSet, getWriteType, insertTokenAt, insertTokensAt, isSequencesReadOnly, isTokensReadOnly, removeSequence, removeTokenAt, removeTokensAt, renameSequence, sequenceIDIterator, sequenceIDsByName, sequenceNameByID, setID, setLabel, setTokenAt, setTokensAt, setTokenSet
getSequence
java.lang.String addSequence(java.lang.String sequenceName, S content) throws AlignmentSourceNotWritableException
sequenceName
- the name of the new sequencecontent
- the sequence object to be added.AlignmentSourceNotWritableException
- if the underlying data source is not writable for sequencesS replaceSequence(java.lang.String sequenceID, S content) throws AlignmentSourceNotWritableException
sequenceID
- the ID of the sequence to be replacedcontent
- the new sequence objectnull
if there was no sequence
with the IDAlignmentSourceNotWritableException
- if the underlying data source is not writable for tokens