Package cdc.impex
Enum ImpExFormat
- java.lang.Object
-
- java.lang.Enum<ImpExFormat>
-
- cdc.impex.ImpExFormat
-
- All Implemented Interfaces:
Serializable,Comparable<ImpExFormat>
public enum ImpExFormat extends Enum<ImpExFormat>
Enumeration of supported import formats.- Author:
- Damien Carbonne
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImpExFormatfrom(File file)intgetMaxRows()cdc.office.ss.WorkbookKindgetWorkbookKind()booleanisExportFormat()booleanisImportFormat()static ImpExFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static ImpExFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CSV
public static final ImpExFormat CSV
-
ODS
public static final ImpExFormat ODS
-
XLS
public static final ImpExFormat XLS
-
XLSM
public static final ImpExFormat XLSM
-
XLSX
public static final ImpExFormat XLSX
-
JSON
public static final ImpExFormat JSON
-
XML
public static final ImpExFormat XML
-
-
Method Detail
-
values
public static ImpExFormat[] 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 (ImpExFormat c : ImpExFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImpExFormat 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
-
getMaxRows
public int getMaxRows()
-
isExportFormat
public boolean isExportFormat()
-
isImportFormat
public boolean isImportFormat()
-
from
public static ImpExFormat from(File file)
-
getWorkbookKind
public cdc.office.ss.WorkbookKind getWorkbookKind()
-
-