Package cdc.issues.io
Enum IssuesFormat
- java.lang.Object
-
- java.lang.Enum<IssuesFormat>
-
- cdc.issues.io.IssuesFormat
-
- All Implemented Interfaces:
Serializable,Comparable<IssuesFormat>
public enum IssuesFormat extends Enum<IssuesFormat>
Enumeration of possible format for export.import of issues.A format may be unsupported.
- Author:
- Damien Carbonne
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IssuesFormatfrom(File file)booleanisExportFormat()booleanisImportFormat()static IssuesFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static IssuesFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CSV
public static final IssuesFormat CSV
-
ODS
public static final IssuesFormat ODS
-
XLS
public static final IssuesFormat XLS
-
XLSM
public static final IssuesFormat XLSM
-
XLSX
public static final IssuesFormat XLSX
-
JSON
public static final IssuesFormat JSON
-
XML
public static final IssuesFormat XML
-
-
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 nameNullPointerException- if the argument is null
-
isExportFormat
public boolean isExportFormat()
-
isImportFormat
public boolean isImportFormat()
-
from
public static IssuesFormat from(File file)
-
-