Package htsjdk.tribble.gff
Enum Gff3Codec.Gff3Directive
- java.lang.Object
-
- java.lang.Enum<Gff3Codec.Gff3Directive>
-
- htsjdk.tribble.gff.Gff3Codec.Gff3Directive
-
- All Implemented Interfaces:
Serializable,Comparable<Gff3Codec.Gff3Directive>
- Enclosing class:
- Gff3Codec
public static enum Gff3Codec.Gff3Directive extends Enum<Gff3Codec.Gff3Directive>
Enum for parsing directive lines. If information in directive line needs to be parsed beyond specifying directive type, decode method should be overriden
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FASTA_DIRECTIVEFLUSH_DIRECTIVESEQUENCE_REGION_DIRECTIVEVERSION3_DIRECTIVE
-
Field Summary
Fields Modifier and Type Field Description protected PatternregexPattern
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Objectdecode(String line)static Gff3Codec.Gff3DirectivetoDirective(String line)static Gff3Codec.Gff3DirectivevalueOf(String name)Returns the enum constant of this type with the specified name.static Gff3Codec.Gff3Directive[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERSION3_DIRECTIVE
public static final Gff3Codec.Gff3Directive VERSION3_DIRECTIVE
-
SEQUENCE_REGION_DIRECTIVE
public static final Gff3Codec.Gff3Directive SEQUENCE_REGION_DIRECTIVE
-
FLUSH_DIRECTIVE
public static final Gff3Codec.Gff3Directive FLUSH_DIRECTIVE
-
FASTA_DIRECTIVE
public static final Gff3Codec.Gff3Directive FASTA_DIRECTIVE
-
-
Field Detail
-
regexPattern
protected final Pattern regexPattern
-
-
Method Detail
-
values
public static Gff3Codec.Gff3Directive[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Gff3Codec.Gff3Directive c : Gff3Codec.Gff3Directive.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Gff3Codec.Gff3Directive valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toDirective
public static Gff3Codec.Gff3Directive toDirective(String line)
-
decode
protected Object decode(String line) throws IOException
- Throws:
IOException
-
-