public enum EExchangeFileType extends Enum<EExchangeFileType> implements com.helger.commons.id.IHasID<String>, com.helger.commons.text.display.IHasDisplayText
| Enum Constant and Description |
|---|
CSV |
JSON |
JSON_SIMPLE |
TXT |
XLS |
XLSX |
XML |
| Modifier and Type | Method and Description |
|---|---|
abstract IExporter |
createExporter() |
String |
getDisplayText(Locale aContentLocale) |
String |
getExportAsText(Locale aContentLocale) |
String |
getFileExtension() |
static EExchangeFileType |
getFromIDOrDefault(String sID,
EExchangeFileType eDefault) |
static EExchangeFileType |
getFromIDOrNull(String sID) |
String |
getID() |
com.helger.commons.mime.IMimeType |
getMimeType() |
String |
getSaveAsText(Locale aContentLocale) |
boolean |
isExporterAvailable() |
boolean |
isLineBased() |
static EExchangeFileType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EExchangeFileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EExchangeFileType CSV
public static final EExchangeFileType XLS
public static final EExchangeFileType XLSX
public static final EExchangeFileType XML
public static final EExchangeFileType TXT
public static final EExchangeFileType JSON
public static final EExchangeFileType JSON_SIMPLE
public static EExchangeFileType[] values()
for (EExchangeFileType c : EExchangeFileType.values()) System.out.println(c);
public static EExchangeFileType 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 null@Nonnull @Nonempty public String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nonnull @Nonempty public String getFileExtension()
@Nonnull public com.helger.commons.mime.IMimeType getMimeType()
public boolean isLineBased()
true if this file type is line based. This is e.g. the
case for CSV or Excel files.@Nullable public String getDisplayText(@Nonnull Locale aContentLocale)
getDisplayText in interface com.helger.commons.text.display.IHasDisplayTextpublic boolean isExporterAvailable()
@Nullable public static EExchangeFileType getFromIDOrNull(@Nullable String sID)
@Nullable public static EExchangeFileType getFromIDOrDefault(@Nullable String sID, @Nullable EExchangeFileType eDefault)
Copyright © 2014–2023 Philip Helger. All rights reserved.