public class SimpleRichSequence extends ThinRichSequence
RichSequence.IOTools, RichSequence.Terms, RichSequence.Tools
Annotatable.AnnotationForwarder
FeatureHolder.EmptyFeatureHolder
CIRCULAR, SYMLISTVERSION
COMMENT, DESCRIPTION, DIVISION, IDENTIFIER, RANKEDCROSSREF, RANKEDDOCREF, RELATIONS, SEQVERSION, TAXON
ANNOTATION
EDIT, EMPTY_LIST
EMPTY_FEATURE_HOLDER, FEATURES, SCHEMA
Modifier | Constructor and Description |
---|---|
protected |
SimpleRichSequence() |
|
SimpleRichSequence(Namespace ns,
String name,
String accession,
int version,
SymbolList symList,
Double seqversion)
Creates a new instance of SimpleRichSequence.
|
Modifier and Type | Method and Description |
---|---|
SymbolList |
getInternalSymbolList()
A special function that returns the SymbolList that this RichSequence is
based around.
|
protected int |
getSequenceLength() |
protected String |
getStringSequence() |
int |
length()
The number of symbols in this SymbolList.
|
protected void |
setAlphabetName(String alphaname) |
protected void |
setSequenceLength(int length) |
protected void |
setStringSequence(String seq) |
containsFeature, countFeatures, createFeature, edit, features, filter, filter, getAlphabet, getAlphabetName, getCircular, getFeatureSet, getSchema, getSeqVersion, getURN, iterator, removeFeature, seqString, setCircular, setFeatureSet, setSeqVersion, subList, subStr, symbolAt, toList
addComment, addRankedCrossRef, addRankedDocRef, addRelationship, compareTo, equals, getAccession, getAnnotation, getComments, getDescription, getDivision, getId, getIdentifier, getName, getNamespace, getNoteSet, getRankedCrossRefs, getRankedDocRefs, getRelationships, getRichAnnotation, getTaxon, getVersion, hashCode, removeComment, removeRankedCrossRef, removeRankedDocRef, removeRelationship, setDescription, setDivision, setId, setIdentifier, setNoteSet, setRankedCrossRefs, setTaxon, toString
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addComment, addRankedDocRef, addRelationship, getAccession, getComments, getDescription, getDivision, getIdentifier, getName, getNamespace, getRankedDocRefs, getRelationships, getTaxon, getVersion, removeComment, removeRankedDocRef, removeRelationship, setDescription, setDivision, setIdentifier, setTaxon
getNoteSet, getRichAnnotation, setNoteSet
getAnnotation
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
addRankedCrossRef, getRankedCrossRefs, removeRankedCrossRef, setRankedCrossRefs
compareTo
public SimpleRichSequence(Namespace ns, String name, String accession, int version, SymbolList symList, Double seqversion)
ns
- the namespace for this sequence.name
- the name of the sequence.accession
- the accession of the sequence.version
- the version of the sequence.symList
- the symbols for the sequence.seqversion
- the version of the symbols for the sequence.protected SimpleRichSequence()
protected void setAlphabetName(String alphaname) throws IllegalSymbolException, BioException
setAlphabetName
in class ThinRichSequence
IllegalSymbolException
BioException
protected void setStringSequence(String seq) throws IllegalSymbolException, BioException
IllegalSymbolException
BioException
protected String getStringSequence()
public int length()
length
in interface SymbolList
length
in class ThinRichSequence
protected void setSequenceLength(int length)
setSequenceLength
in class ThinRichSequence
protected int getSequenceLength()
getSequenceLength
in class ThinRichSequence
public SymbolList getInternalSymbolList()
getInternalSymbolList
in interface RichSequence
getInternalSymbolList
in class ThinRichSequence
Copyright © 2014 BioJava. All rights reserved.