Class GenericGenbankHeaderParser<S extends AbstractSequence<C>,C extends Compound>
java.lang.Object
org.biojava.nbio.core.sequence.io.GenericGenbankHeaderParser<S,C>
- All Implemented Interfaces:
SequenceHeaderParserInterface<S,
C>
public class GenericGenbankHeaderParser<S extends AbstractSequence<C>,C extends Compound>
extends Object
implements SequenceHeaderParserInterface<S,C>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
parseHeader
(String header, S sequence) Parse the header and set the values in the sequencevoid
setAccession
(String accession) The last accession passed to this routine will always be the one used.void
setComment
(String comment) void
setDescription
(String description) void
setIdentifier
(String identifier) void
void
setVersion
(int version)
-
Constructor Details
-
GenericGenbankHeaderParser
public GenericGenbankHeaderParser()
-
-
Method Details
-
parseHeader
Parse the header and set the values in the sequence- Specified by:
parseHeader
in interfaceSequenceHeaderParserInterface<S extends AbstractSequence<C>,
C extends Compound> - Parameters:
header
-sequence
-
-
setVersion
- Throws:
ParserException
-
setAccession
The last accession passed to this routine will always be the one used.- Throws:
ParserException
-
setDescription
- Throws:
ParserException
-
setIdentifier
- Throws:
ParserException
-
setName
- Throws:
ParserException
-
setComment
- Throws:
ParserException
-