Package cdc.issues.io

Enum Class IssuesFormat

java.lang.Object
java.lang.Enum<IssuesFormat>
cdc.issues.io.IssuesFormat
All Implemented Interfaces:
Serializable, Comparable<IssuesFormat>, Constable

public enum IssuesFormat extends Enum<IssuesFormat>
Enumeration of possible formats for export and import of issues.

A format may be unsupported.

Author:
Damien Carbonne
  • Enum Constant Details

  • Method Details

    • values

      public static IssuesFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IssuesFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getWorkbookKind

      public cdc.office.ss.WorkbookKind getWorkbookKind()
      Returns:
      The corresponding WorkbookKind.
      Throws:
      cdc.util.lang.UnexpectedValueException - when no corresponding format can be provided.
    • isExportFormat

      public boolean isExportFormat()
      Returns:
      true if this format is supported for export.
    • isImportFormat

      public boolean isImportFormat()
      Returns:
      true if this format is supported for import.
    • from

      public static IssuesFormat from(File file)
      Parameters:
      file - The file.
      Returns:
      The format associated to file or null.