Enum InclusionListExport.ExportFormat

java.lang.Object
java.lang.Enum<InclusionListExport.ExportFormat>
eu.isas.peptideshaker.followup.InclusionListExport.ExportFormat
All Implemented Interfaces:
Serializable, Comparable<InclusionListExport.ExportFormat>, java.lang.constant.Constable
Enclosing class:
InclusionListExport

public static enum InclusionListExport.ExportFormat extends Enum<InclusionListExport.ExportFormat>
Enum of the different types of export implemented.
  • Enum Constant Details

  • Field Details

    • index

      public int index
      Index for the export type.
    • description

      public String description
      Description of the export.
    • extension

      public String extension
      The extension of the file.
  • Method Details

    • values

      public static InclusionListExport.ExportFormat[] 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

      public static InclusionListExport.ExportFormat 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 name
      NullPointerException - if the argument is null
    • getTypeFromIndex

      public static InclusionListExport.ExportFormat getTypeFromIndex(int index)
      Returns the export type corresponding to a given index.
      Parameters:
      index - the index of interest
      Returns:
      the export type corresponding to a given index
    • getPossibilities

      public static String[] getPossibilities()
      Returns all possibilities descriptions in an array of string. Tip: the position in the array corresponds to the type index.
      Returns:
      all possibilities descriptions in an array of string
    • getCommandLineOptions

      public static String getCommandLineOptions()
      Returns a description of the command line arguments.
      Returns:
      a description of the command line arguments
    • verifyFileExtension

      public static File verifyFileExtension(File destinationFile, InclusionListExport.ExportFormat exportFormat)
      Verifies that the file extension is chosen according to the manufacturers specification and adds the extension if missing.
      Parameters:
      destinationFile - the destination file
      exportFormat - the export format
      Returns:
      returns a file with updated extension