public enum ExportOutput extends Enum<ExportOutput>
Enum Constant and Description |
---|
EXCEL_2003 |
EXCEL_2007 |
PDF |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
String |
getExtension()
Returns the extension of this
ExportOutput instance. |
String |
getType()
Returns the type of this
ExportOutput instance. |
boolean |
isExcel()
Checks if this
ExportOutput instance is a valid Excel output. |
boolean |
isExcelXls()
Checks if this
ExportOutput instance is Excel 2003. |
boolean |
isExcelXlsx()
Checks if this
ExportOutput instance is Excel 2007. |
boolean |
isPDF()
Checks if this
ExportOutput instance is Excel 2007. |
static ExportOutput |
parse(String extension)
Returns
ExportOutput from the extension. |
static ExportOutput |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExportOutput[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExportOutput EXCEL_2003
public static final ExportOutput EXCEL_2007
public static final ExportOutput PDF
public static final ExportOutput UNKNOWN
public static ExportOutput[] values()
for (ExportOutput c : ExportOutput.values()) System.out.println(c);
public static ExportOutput valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ExportOutput parse(String extension)
ExportOutput
from the extension.public boolean isExcel()
ExportOutput
instance is a valid Excel output.public boolean isExcelXls()
ExportOutput
instance is Excel 2003.public boolean isExcelXlsx()
ExportOutput
instance is Excel 2007.public boolean isPDF()
ExportOutput
instance is Excel 2007.public String getType()
ExportOutput
instance.public String getExtension()
ExportOutput
instance.