SimpleAssemblyBuilder (biojava-legacy 1.9.5 API)
- java.lang.Object
-
- org.biojava.bio.seq.io.SequenceBuilderBase
-
- org.biojava.bio.seq.io.SimpleAssemblyBuilder
-
- All Implemented Interfaces:
SeqIOListener,SequenceBuilder
public class SimpleAssemblyBuilder extends SequenceBuilderBase
Basic SequenceBuilder implementation which accumulates all notified information and creates a SimpleAssembly.
- Version:
- 1.2
- Author:
- David Huen
-
-
Field Summary
Fields Modifier and Type Field Description static SequenceBuilderFactoryFACTORY-
Fields inherited from class org.biojava.bio.seq.io.SequenceBuilderBase
annotation, ERROR_FEATURES_PROPERTY, name, seq, uri
-
-
Constructor Summary
Constructors Constructor Description SimpleAssemblyBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentFeatureaddComponentSequence(ComponentFeature.Template cft)voidaddSymbols(Alphabet alpha, Symbol[] syms, int pos, int len)Notify the listener of symbol data.
SequencemakeSequence()Return the Sequence object which has been constructed by this builder.
-
Methods inherited from class org.biojava.bio.seq.io.SequenceBuilderBase
addFeatureProperty, addProperty, addSequenceProperty, endFeature, endSequence, setName, setURI, startFeature, startSequence
-
-
-
-
Field Detail
-
FACTORY
public static final SequenceBuilderFactory FACTORY
-
-
Constructor Detail
-
SimpleAssemblyBuilder
public SimpleAssemblyBuilder()
-
-
Method Detail
-
addSymbols
public void addSymbols(Alphabet alpha, Symbol[] syms, int pos, int len) throws IllegalAlphabetException
Notify the listener of symbol data. All symbols passed to this method are guarenteed to be contained within the specified alphabet. Generally all calls to a given Listener should have the same alphabet -- if not, the listener implementation is likely to throw an exception
- Specified by:
addSymbolsin interfaceSeqIOListener- Specified by:
addSymbolsin classSequenceBuilderBase- Parameters:
alpha- 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 array- Throws:
IllegalAlphabetException- if we can't cope with this alphabet.
-
addComponentSequence
public ComponentFeature addComponentSequence(ComponentFeature.Template cft) throws BioException, ChangeVetoException
- Throws:
BioExceptionChangeVetoException
-
makeSequence
public Sequence makeSequence() throws BioException
Return the Sequence object which has been constructed by this builder. This method is only expected to succeed after the endSequence() notifier has been called.
- Specified by:
makeSequencein interfaceSequenceBuilder- Overrides:
makeSequencein classSequenceBuilderBase- Throws:
BioException
-
-