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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReference(AbstractReference abstractReference) getName()intvoidparseHeader(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) voidvoidsetVersion(int version) The last accession passed to this routine will always be the one used.
-
Constructor Details
-
GenericGenbankHeaderParser
public GenericGenbankHeaderParser()
-
-
Method Details
-
parseHeader
Parse the header and set the values in the sequence- Specified by:
parseHeaderin interfaceSequenceHeaderParserInterface<S extends AbstractSequence<C>,C extends Compound> - Parameters:
header-sequence-
-
getAccession
-
getIdentifier
-
getName
-
getVersion
-
getComments
-
getReferences
-
getDescription
-
setVersion
The last accession passed to this routine will always be the one used. -
setAccession
The last accession passed to this routine will always be the one used. -
setDescription
-
setIdentifier
-
setName
-
setComment
-
addReference
-