Package cdc.issues.io

Enum IssuesFormat

    • Method Detail

      • values

        public static IssuesFormat[] 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 (IssuesFormat c : IssuesFormat.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IssuesFormat 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
      • 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.