Package cdc.issues.io

Enum Class ProfileFormat

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

public enum ProfileFormat extends Enum<ProfileFormat>
Enumeration of possible formats for export and import of profiles.

A format may be unsupported.

Author:
Damien Carbonne
  • Enum Constant Details

  • Method Details

    • values

      public static ProfileFormat[] 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 ProfileFormat 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 ProfileFormat from(File file)
      Parameters:
      file - The file.
      Returns:
      The format associated to file or null.