Package com.compomics.util.io.export
Enum ExportFormat
- All Implemented Interfaces:
Serializable,Comparable<ExportFormat>,java.lang.constant.Constable
Enum of the different formats available for the exports.
- Author:
- Marc Vaudel
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExportFormatThe default export format to use for command line exports.final StringDescription of the format.final StringThe extension to use for this format.static final ExportFormatThe default export format to use for GUI exports.final intThe index of the format.final StringThe name of the format. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the command line description when the format is used as command line argument.static ExportFormatgetFormatFromCommandLineOption(String commandLineOption) Returns the export format designed by the given command line option.static ExportFormatReturns the enum constant of this type with the specified name.static ExportFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
text
Text. -
excel
Excel file.
-
-
Field Details
-
index
public final int indexThe index of the format. -
name
The name of the format. -
extension
The extension to use for this format. -
description
Description of the format. -
commandLineDefaultOption
The default export format to use for command line exports. -
guiDefaultOption
The default export format to use for GUI exports.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getCommandLineOption
Returns the command line description when the format is used as command line argument.- Returns:
- the command line description when the format is used as command line argument
-
getFormatFromCommandLineOption
Returns the export format designed by the given command line option. Null if not found.- Parameters:
commandLineOption- the command line option- Returns:
- the export format designed by the given command line option
-