Enum BuiltInExportFormat
- java.lang.Object
-
- java.lang.Enum<BuiltInExportFormat>
-
- org.cyclos.model.system.exportformats.BuiltInExportFormat
-
- All Implemented Interfaces:
Serializable,Comparable<BuiltInExportFormat>,HasMessageKey
public enum BuiltInExportFormat extends Enum<BuiltInExportFormat> implements HasMessageKey
Built-in export format in Cyclos
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BuiltInExportFormatgetByInternalName(String internalName)Returns the export format with the given internal name, or null if not found (or not a built-in format)StringgetContentType()Set<ExportFormatContext>getContexts()StringgetDisplayName()StringgetFileExtension()StringgetInternalName()MessageKeygetMessageKey()booleanisBinary()static BuiltInExportFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static BuiltInExportFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CSV
public static final BuiltInExportFormat CSV
-
XLSX
public static final BuiltInExportFormat XLSX
-
PDF
public static final BuiltInExportFormat PDF
-
-
Method Detail
-
values
public static BuiltInExportFormat[] 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 (BuiltInExportFormat c : BuiltInExportFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuiltInExportFormat 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
-
getByInternalName
public static BuiltInExportFormat getByInternalName(String internalName)
Returns the export format with the given internal name, or null if not found (or not a built-in format)
-
getContentType
public String getContentType()
-
getContexts
public Set<ExportFormatContext> getContexts()
-
getDisplayName
public String getDisplayName()
-
getFileExtension
public String getFileExtension()
-
getInternalName
public String getInternalName()
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
isBinary
public boolean isBinary()
-
-