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 java.lang.Object implements SequenceHeaderParserInterface<S,C>
-
-
Constructor Summary
Constructors Constructor Description GenericGenbankHeaderParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparseHeader(java.lang.String header, S sequence)Parse the header and set the values in the sequencevoidsetAccession(java.lang.String accession)The last accession passed to this routine will always be the one used.voidsetComment(java.lang.String comment)voidsetDescription(java.lang.String description)voidsetIdentifier(java.lang.String identifier)voidsetName(java.lang.String name)voidsetVersion(int version)
-
-
-
Method Detail
-
parseHeader
public void parseHeader(java.lang.String header, S sequence)Parse the header and set the values in the sequence- Specified by:
parseHeaderin interfaceSequenceHeaderParserInterface<S extends AbstractSequence<C>,C extends Compound>- Parameters:
header-sequence-
-
setVersion
public void setVersion(int version) throws ParserException- Throws:
ParserException
-
setAccession
public void setAccession(java.lang.String accession) throws ParserExceptionThe last accession passed to this routine will always be the one used.- Throws:
ParserException
-
setDescription
public void setDescription(java.lang.String description) throws ParserException- Throws:
ParserException
-
setIdentifier
public void setIdentifier(java.lang.String identifier) throws ParserException- Throws:
ParserException
-
setName
public void setName(java.lang.String name) throws ParserException- Throws:
ParserException
-
setComment
public void setComment(java.lang.String comment) throws ParserException- Throws:
ParserException
-
-