public abstract class SequenceBuilderBase extends Object implements SequenceBuilder
SimpleRichSequenceBuilder.| Modifier and Type | Field and Description |
|---|---|
protected Annotation |
annotation |
static Object |
ERROR_FEATURES_PROPERTY |
protected String |
name |
protected Sequence |
seq |
protected String |
uri |
| Constructor and Description |
|---|
SequenceBuilderBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeatureProperty(Object key,
Object value)
Add an annotation-bundle entry to the feature.
|
protected void |
addProperty(Annotation ann,
Object key,
Object value) |
void |
addSequenceProperty(Object key,
Object value)
Add an annotation-bundle entry to the sequence.
|
abstract void |
addSymbols(Alphabet alpha,
Symbol[] syms,
int pos,
int len)
Notify the listener of symbol data.
|
void |
endFeature()
Mark the end of data associated with one specific feature.
|
void |
endSequence()
Notify the listener that processing of the sequence is complete.
|
Sequence |
makeSequence()
Return the Sequence object which has been constructed
by this builder.
|
void |
setName(String name)
Notify the listener that the current sequence is generally known
by a particular name.
|
void |
setURI(String uri)
Notify the listener of a URI identifying the current sequence.
|
void |
startFeature(Feature.Template templ)
Notify the listener that a new feature object is starting.
|
void |
startSequence()
Start the processing of a sequence.
|
public static Object ERROR_FEATURES_PROPERTY
protected Annotation annotation
public SequenceBuilderBase()
public void startSequence()
SeqIOListenerstartSequence in interface SeqIOListenerpublic void endSequence()
SeqIOListenerendSequence in interface SeqIOListenerpublic void setName(String name)
SeqIOListenersetName in interface SeqIOListenername - the String that should be returned by getName for the sequence
being parsedpublic void setURI(String uri)
SeqIOListenersetURI in interface SeqIOListenerpublic abstract void addSymbols(Alphabet alpha, Symbol[] syms, int pos, int len) throws IllegalAlphabetException
SeqIOListeneraddSymbols in interface SeqIOListeneralpha - The alphabet of the symbol datasyms - An array containing symbolspos - The start offset of valid data within the arraylen - The number of valid symbols in the arrayIllegalAlphabetException - if we can't cope with this
alphabet.public void addSequenceProperty(Object key, Object value)
addSequenceProperty in interface SeqIOListenerpublic void startFeature(Feature.Template templ)
SeqIOListenerstartFeature in interface SeqIOListenerpublic void addFeatureProperty(Object key, Object value) throws ParseException
addFeatureProperty in interface SeqIOListenerParseExceptionpublic void endFeature()
SeqIOListenerendFeature in interface SeqIOListenerpublic Sequence makeSequence() throws BioException
SequenceBuildermakeSequence in interface SequenceBuilderBioExceptionprotected void addProperty(Annotation ann, Object key, Object value)
Copyright © 2020 BioJava. All rights reserved.