Package org.biojava.bio.seq.io
Class EmblProcessor
- java.lang.Object
-
- org.biojava.bio.seq.io.SequenceBuilderFilter
-
- org.biojava.bio.seq.io.EmblProcessor
-
- All Implemented Interfaces:
SeqIOListener,SequenceBuilder,ParseErrorSource
public class EmblProcessor extends SequenceBuilderFilter implements ParseErrorSource
Deprecated.Use org.biojavax.bio.seq.io framework insteadSimple filter which handles attribute lines from an EMBL file. This class delegates creation ofFeatures to aFeatureTableParser, which in turn delegates creation ofLocationsto anEmblLikeLocationParserwhich is shared with theGenbankProcessor. AnEmblLikeLocationParserparses EMBL/Genbank style locations. Supported location forms:123 <123 or >123 (123.567) (123.567)..789 123..(567.789) (123.345)..(567.789) 123..456 <123..567 or 123..>567 or <123..>567 123^567 AL123465:(123..567)
The only EMBL header information retained over a read/write cycle is the accession number (all numbers).- Since:
- 1.1
- Author:
- Thomas Down, Greg Cox, Keith James
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmblProcessor.FactoryDeprecated.Factory which wraps SequenceBuilders in an EmblProcessor
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_EMBL_ACCESSIONSDeprecated.
-
Constructor Summary
Constructors Constructor Description EmblProcessor(SequenceBuilder delegate)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddParseErrorListener(ParseErrorListener theListener)Deprecated.Adds a parse error listener to the list of listeners if it isn't already included.voidaddSequenceProperty(Object key, Object value)Deprecated.Notify the listener of a sequence-wide property.voidendSequence()Deprecated.Notify the listener that processing of the sequence is complete.protected voidnotifyParseErrorEvent(ParseErrorEvent theEvent)Deprecated.Passes the event on to all the listeners registered for ParseErrorEvents.voidremoveParseErrorListener(ParseErrorListener theListener)Deprecated.Removes a parse error listener from the list of listeners if it is included.-
Methods inherited from class org.biojava.bio.seq.io.SequenceBuilderFilter
addFeatureProperty, addSymbols, endFeature, getDelegate, makeSequence, setName, setURI, startFeature, startSequence
-
-
-
-
Field Detail
-
PROPERTY_EMBL_ACCESSIONS
public static final String PROPERTY_EMBL_ACCESSIONS
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EmblProcessor
public EmblProcessor(SequenceBuilder delegate)
Deprecated.
-
-
Method Detail
-
endSequence
public void endSequence() throws ParseException
Deprecated.Description copied from interface:SeqIOListenerNotify the listener that processing of the sequence is complete.- Specified by:
endSequencein interfaceSeqIOListener- Overrides:
endSequencein classSequenceBuilderFilter- Throws:
ParseException
-
addSequenceProperty
public void addSequenceProperty(Object key, Object value) throws ParseException
Deprecated.Description copied from interface:SeqIOListenerNotify the listener of a sequence-wide property. This might be stored as an entry in the sequence's annotation bundle.- Specified by:
addSequencePropertyin interfaceSeqIOListener- Overrides:
addSequencePropertyin classSequenceBuilderFilter- Throws:
ParseException
-
addParseErrorListener
public void addParseErrorListener(ParseErrorListener theListener)
Deprecated.Adds a parse error listener to the list of listeners if it isn't already included.- Specified by:
addParseErrorListenerin interfaceParseErrorSource- Parameters:
theListener- Listener to be added.
-
removeParseErrorListener
public void removeParseErrorListener(ParseErrorListener theListener)
Deprecated.Removes a parse error listener from the list of listeners if it is included.- Specified by:
removeParseErrorListenerin interfaceParseErrorSource- Parameters:
theListener- Listener to be removed.
-
notifyParseErrorEvent
protected void notifyParseErrorEvent(ParseErrorEvent theEvent)
Deprecated.Passes the event on to all the listeners registered for ParseErrorEvents.- Parameters:
theEvent- The event to be handed to the listeners.
-
-