|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface ImageValidation
Validates a FileParameter
that is expected to contain only images
Required Element Summary | |
---|---|
java.lang.String |
parameterName
name of the expected parameter |
Optional Element Summary | |
---|---|
java.lang.String[] |
formats
if provided, only allows the specified image formats (gif, jpg, jpeg, bmp, png, tiff) |
int |
maxFileSize
the maximum file size in bytes, defaults to -1 |
int |
maxHeight
the maximum height of the image, defaults to -1 |
int |
maxWidth
the maximum width of the image, defaults to -1 |
int |
minHeight
the minimum height of the image, defaults to -1 |
int |
minWidth
the minimum width of the image, defaults to -1 |
Element Detail |
---|
public abstract java.lang.String parameterName
public abstract java.lang.String[] formats
public abstract int minWidth
public abstract int maxWidth
public abstract int minHeight
public abstract int maxHeight
public abstract int maxFileSize
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |