@Target(value=METHOD) @Retention(value=RUNTIME) @Documented @Constraint(validatedBy={FileUploadValidator.class,FileUploadListValidator.class}) public @interface FileUpload
Collection
) of) FormUpload
(s).Modifier and Type | Fields and Description |
---|---|
static int |
FACTOR |
Modifier and Type | Optional Element and Description |
---|---|
String |
fileTypes |
Class<?>[] |
groups |
int |
maxCount |
long |
maxSize |
String |
message |
int |
minCount |
long |
minSize |
Class<? extends Payload>[] |
payload |
FileUpload.Unit |
unit |
Class<? extends FormUploadValidator>[] |
uploadValidators |
public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends FormUploadValidator>[] uploadValidators
FormUploadValidator
s for additional validation of a FormUpload
.public abstract FileUpload.Unit unit
FileUpload.Unit
for minSize()
and maxSize()
(default: FileUpload.Unit.MB
)public abstract int minCount
public abstract int maxCount
public abstract String fileTypes
Copyright © 2011–2017 aiticon GmbH. All rights reserved.