Enum FileRejectionReason
- java.lang.Object
-
- java.lang.Enum<FileRejectionReason>
-
- com.aquima.web.components.fileupload.service.validation.FileRejectionReason
-
- All Implemented Interfaces:
Serializable
,Comparable<FileRejectionReason>
public enum FileRejectionReason extends Enum<FileRejectionReason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_CONTENT_TYPE
INVALID_EXTENSION
INVALID_FILE_SIZE
INVALID_FILENAME
INVALID_FILENAME_LENGTH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileRejectionReason
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileRejectionReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_FILENAME
public static final FileRejectionReason INVALID_FILENAME
-
INVALID_EXTENSION
public static final FileRejectionReason INVALID_EXTENSION
-
INVALID_CONTENT_TYPE
public static final FileRejectionReason INVALID_CONTENT_TYPE
-
INVALID_FILE_SIZE
public static final FileRejectionReason INVALID_FILE_SIZE
-
INVALID_FILENAME_LENGTH
public static final FileRejectionReason INVALID_FILENAME_LENGTH
-
-
Method Detail
-
values
public static FileRejectionReason[] 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 (FileRejectionReason c : FileRejectionReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileRejectionReason 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
-
-