Package com.helger.photon.exchange
Enum EExchangeFileTypeName
- java.lang.Object
-
- java.lang.Enum<EExchangeFileTypeName>
-
- com.helger.photon.exchange.EExchangeFileTypeName
-
- All Implemented Interfaces:
com.helger.commons.text.display.IHasDisplayText,Serializable,Comparable<EExchangeFileTypeName>
@Translatable public enum EExchangeFileTypeName extends Enum<EExchangeFileTypeName> implements com.helger.commons.text.display.IHasDisplayText
Exchange file type names.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayText(Locale aContentLocale)static EExchangeFileTypeNamevalueOf(String name)Returns the enum constant of this type with the specified name.static EExchangeFileTypeName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CSV
public static final EExchangeFileTypeName CSV
CSV - comma separated values
-
XLS
public static final EExchangeFileTypeName XLS
Old Excel
-
XLSX
public static final EExchangeFileTypeName XLSX
New Excel
-
XML
public static final EExchangeFileTypeName XML
XML structured text
-
TXT
public static final EExchangeFileTypeName TXT
Pure text file
-
JSON
public static final EExchangeFileTypeName JSON
JSON file
-
JSON_SIMPLE
public static final EExchangeFileTypeName JSON_SIMPLE
JSON file without types
-
-
Method Detail
-
values
public static EExchangeFileTypeName[] 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 (EExchangeFileTypeName c : EExchangeFileTypeName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EExchangeFileTypeName 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
-
-