Package de.xima.fc.gui.common.statics
Enum EContentType
- java.lang.Object
-
- java.lang.Enum<EContentType>
-
- de.xima.fc.gui.common.statics.EContentType
-
- All Implemented Interfaces:
Serializable
,Comparable<EContentType>
public enum EContentType extends Enum<EContentType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
EContentType.Constants
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getAllContentType()
String
getContentType()
static EContentType
parseFilename(String filename)
static EContentType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EContentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CSS
public static final EContentType CSS
-
SCSS
public static final EContentType SCSS
-
EXCEL
public static final EContentType EXCEL
-
CSV
public static final EContentType CSV
-
HTML
public static final EContentType HTML
-
IMAGE
public static final EContentType IMAGE
-
JAVASCRIPT
public static final EContentType JAVASCRIPT
-
JSON
public static final EContentType JSON
-
NONE
public static final EContentType NONE
-
PLAIN_TEXT
public static final EContentType PLAIN_TEXT
-
XML
public static final EContentType XML
-
PDF
public static final EContentType PDF
-
WORD
public static final EContentType WORD
-
SQL
public static final EContentType SQL
-
-
Method Detail
-
values
public static EContentType[] 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 (EContentType c : EContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EContentType 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
-
getContentType
public String getContentType()
- Returns:
- The primary (canonical) content type.
-
getAllContentType
public String[] getAllContentType()
- Returns:
- All known content types.
-
parseFilename
public static EContentType parseFilename(String filename)
-
-