public interface Format
Format should be implemented to provide pre-canned access to common formats such as Embl, genbank, swissprot, enzyme etc. so that people do not need to work out which events should be produced by a given file format. It is expcected that implementations of Format will publish meta-data about what tags are associated with which values.
Modifier and Type | Method and Description |
---|---|
LifeScienceIdentifier |
getLSID()
Retrieve the LSID associated with this format.
|
ParserListener |
getParserListener(TagValueListener listener)
Retrieve a ParserListener pair for the format that will pass all events
on to a listener.
|
AnnotationType |
getType()
Get the AnnotationType that constrains the events that will be fired.
|
ParserListener getParserListener(TagValueListener listener)
listener
- a TagValueListener that all events should be passed ontoAnnotationType getType()
LifeScienceIdentifier getLSID()
The OBDA recomends taht file formats have identifiers assopciated with them. This allows the format to be specified unambiguously across different projects and groups. Idealy, a format LSID should conform to the odda formats specification.
Copyright © 2014 BioJava. All rights reserved.