@Retention(value=SOURCE)
@Target(value={FIELD,PARAMETER})
public @interface FileExtension
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.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |