Package org.biojava.bio.seq.impl
Class SimpleSequenceFactory
java.lang.Object
org.biojava.bio.seq.impl.SimpleSequenceFactory
- All Implemented Interfaces:
Serializable
,SequenceFactory
A no-frills implementation of SequenceFactory that produces SimpleSequence
objects.
- Author:
- Matthew Pocock, Thomas Down
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSequence
(SymbolList symList, String uri, String name, Annotation annotation) Creates a sequence using these parameters.Returns the FeatureRealizer set by "setFeatureRealizer".void
Set the FeatureRealizer used by new sequences created by this factory.
-
Constructor Details
-
SimpleSequenceFactory
public SimpleSequenceFactory()
-
-
Method Details
-
getFeatureRealizer
Returns the FeatureRealizer set by "setFeatureRealizer". -
setFeatureRealizer
Set the FeatureRealizer used by new sequences created by this factory. -
createSequence
Description copied from interface:SequenceFactory
Creates a sequence using these parameters.- Specified by:
createSequence
in interfaceSequenceFactory
- Parameters:
symList
- the SymbolList defining the 'sequence'uri
- the uri of the sequence. This will be returned by the getURN() method on Sequence.name
- the nameannotation
- a hint for the annotation of the resulting sequence- Returns:
- a new Sequence object
-