Package org.incenp.obofoundry.sssom
Enum TSVReader.SeparatorMode
- java.lang.Object
-
- java.lang.Enum<TSVReader.SeparatorMode>
-
- org.incenp.obofoundry.sssom.TSVReader.SeparatorMode
-
- All Implemented Interfaces:
Serializable,Comparable<TSVReader.SeparatorMode>
- Enclosing class:
- TSVReader
public static enum TSVReader.SeparatorMode extends Enum<TSVReader.SeparatorMode>
Defines what separator character the reader should expect when parsing the TSV section.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMAColumns are expected to be separated by commas.GUESSThe reader should try to infer the separator used (with fallback to expecting tabs if the separator cannot be positively determined).TABColumns are expected to be separated by tabs.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TSVReader.SeparatorModevalueOf(String name)Returns the enum constant of this type with the specified name.static TSVReader.SeparatorMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TAB
public static final TSVReader.SeparatorMode TAB
Columns are expected to be separated by tabs.
-
COMMA
public static final TSVReader.SeparatorMode COMMA
Columns are expected to be separated by commas.
-
GUESS
public static final TSVReader.SeparatorMode GUESS
The reader should try to infer the separator used (with fallback to expecting tabs if the separator cannot be positively determined).
-
-
Method Detail
-
values
public static TSVReader.SeparatorMode[] 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 (TSVReader.SeparatorMode c : TSVReader.SeparatorMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TSVReader.SeparatorMode 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
-
-