Annotation Type FileExtension
-
@Retention(SOURCE) @Target({FIELD,PARAMETER}) public @interface FileExtension
When provided only supported file extensions will be allowed.This annotation accepts multiple supported extensions separated with ",". For e.g. "txt,csv,log". Do not provide any regular expression in the value.
The string after "." in the file name is considered to an extension. If the file name does not contain any "." then the file is without extension.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
value
-