Package org.biojava.bio.program.gff
Class GFFErrorHandler.AbortErrorHandler
- java.lang.Object
-
- org.biojava.bio.program.gff.GFFErrorHandler.AbortErrorHandler
-
- All Implemented Interfaces:
GFFErrorHandler
- Enclosing interface:
- GFFErrorHandler
public static class GFFErrorHandler.AbortErrorHandler extends Object implements GFFErrorHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.biojava.bio.program.gff.GFFErrorHandler
GFFErrorHandler.AbortErrorHandler, GFFErrorHandler.SkipRecordErrorHandler
-
-
Field Summary
-
Fields inherited from interface org.biojava.bio.program.gff.GFFErrorHandler
ABORT_PARSING, SKIP_RECORD
-
-
Constructor Summary
Constructors Constructor Description AbortErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intinvalidEnd(String token)The `end' field of the GFF entry was not a valid value.intinvalidFrame(String token)The `frame' field of the GFF entry was not a valid value.doubleinvalidScore(String token)The `score' field of the GFF entry was not a valid value.intinvalidStart(String token)The `start' field of the GFF entry was not a valid value.StrandedFeature.StrandinvalidStrand(String token)The `strand' field of the GFF entry was not a valid value.
-
-
-
Constructor Detail
-
AbortErrorHandler
public AbortErrorHandler()
-
-
Method Detail
-
invalidStart
public int invalidStart(String token) throws ParserException
Description copied from interface:GFFErrorHandlerThe `start' field of the GFF entry was not a valid value.- Specified by:
invalidStartin interfaceGFFErrorHandler- Parameters:
token- The start token found.- Returns:
- A parsed value, if this is possible
- Throws:
ParserException- If parsing should be aborted
-
invalidEnd
public int invalidEnd(String token) throws ParserException
Description copied from interface:GFFErrorHandlerThe `end' field of the GFF entry was not a valid value.- Specified by:
invalidEndin interfaceGFFErrorHandler- Parameters:
token- The end token found.- Returns:
- A parsed value, if this is possible
- Throws:
ParserException- If parsing should be aborted
-
invalidScore
public double invalidScore(String token) throws ParserException
Description copied from interface:GFFErrorHandlerThe `score' field of the GFF entry was not a valid value.- Specified by:
invalidScorein interfaceGFFErrorHandler- Parameters:
token- The score token found.- Returns:
- A parsed value, if this is possible
- Throws:
ParserException- If parsing should be aborted
-
invalidFrame
public int invalidFrame(String token) throws ParserException
Description copied from interface:GFFErrorHandlerThe `frame' field of the GFF entry was not a valid value.- Specified by:
invalidFramein interfaceGFFErrorHandler- Parameters:
token- The frame token found.- Returns:
- A parsed value, if this is possible
- Throws:
ParserException- If parsing should be aborted
-
invalidStrand
public StrandedFeature.Strand invalidStrand(String token) throws ParserException
Description copied from interface:GFFErrorHandlerThe `strand' field of the GFF entry was not a valid value.- Specified by:
invalidStrandin interfaceGFFErrorHandler- Parameters:
token- The strand token found.- Returns:
- A parsed value, if this is possible
- Throws:
ParserException- If parsing should be aborted
-
-