Package com.ubs.backend.classes.enums
Enum Class ResponseFileType
- All Implemented Interfaces:
Serializable,Comparable<ResponseFileType>,Constable
Enum to specify which file types should be allowed on a File Upload
- Since:
- 17.07.2021
- Author:
- Marc Andri Fuchs
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription.PDF Files.XLS Files (Excel 1997).XLSX Files (Excel 2007).GIF Files.JPG/.JPEG Files.PNG Files.PPT Files (PowerPoint 2004).PPTX Files (PowerPoint 2007).TXT Files.DOC Files (Word 2003).DOCX Files (Word 2007) -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateResponseFileType(String mimeType, String extension)Default Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseFileTypegetByMimeType(String mimeType)static ResponseFileTypeReturns the enum constant of this class with the specified name.static ResponseFileType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMAGE_PNG
.PNG Files- Since:
- 17.07.2021
-
IMAGE_JPEG
.JPG/.JPEG Files- Since:
- 17.07.2021
-
IMAGE_GIF
.GIF Files- Since:
- 17.07.2021
-
APPLICATION_PDF
.PDF Files- Since:
- 17.07.2021
-
TEXT_PLAIN
.TXT Files- Since:
- 17.07.2021
-
EXCEL_2007
.XLSX Files (Excel 2007)- Since:
- 17.07.2021
-
EXCEL_1997
.XLS Files (Excel 1997)- Since:
- 17.07.2021
-
WORD_2007
.DOCX Files (Word 2007)- Since:
- 17.07.2021
-
WORD_2003
.DOC Files (Word 2003)- Since:
- 17.07.2021
-
POWERPOINT_2007
.PPTX Files (PowerPoint 2007)- Since:
- 17.07.2021
-
POWERPOINT_2004
.PPT Files (PowerPoint 2004)- Since:
- 17.07.2021
-
-
Field Details
-
mimeType
The MimeType of the FileType- Since:
- 17.07.2021
-
extension
The FileExtension of the File- Since:
- 17.07.2021
-
-
Constructor Details
-
ResponseFileType
Default Constructor- Parameters:
mimeType- The MimeType for the FileTypeextension- The FileExtension of the File- Since:
- 17.07.2021
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getByMimeType
- Parameters:
mimeType-- Returns:
- Since:
- 17.07.2021
-
getMimeType
- Returns:
- The MimeType of the FileType
- Since:
- 17.07.2021
-
getExtension
- Returns:
- The FileExtension of the File
- Since:
- 17.07.2021
-