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
Constructors Constructor Description GenericGenbankHeaderParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReference(AbstractReference abstractReference)voidparseHeader(String header, S sequence)Parse the header and set the values in the sequencevoidsetAccession(String accession)The last accession passed to this routine will always be the one used.voidsetComment(String comment)voidsetDescription(String description)voidsetIdentifier(String identifier)voidsetName(String name)voidsetVersion(int version)
-
-
-
Constructor Detail
-
GenericGenbankHeaderParser
public GenericGenbankHeaderParser()
-
-
Method Detail
-
parseHeader
public void parseHeader(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(String accession) throws ParserException
The last accession passed to this routine will always be the one used.- Throws:
ParserException
-
setDescription
public void setDescription(String description) throws ParserException
- Throws:
ParserException
-
setIdentifier
public void setIdentifier(String identifier) throws ParserException
- Throws:
ParserException
-
setName
public void setName(String name) throws ParserException
- Throws:
ParserException
-
setComment
public void setComment(String comment) throws ParserException
- Throws:
ParserException
-
addReference
public void addReference(AbstractReference abstractReference)
-
-