public class BHiveAllowExtensionsForListOfMultipartFile extends BHiveConstraintValidator<BHiveAllowExtensions,ArrayList<org.springframework.web.multipart.MultipartFile>>
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<String> |
allowExtensions |
protected String |
allowExtensionsString |
logger| Constructor and Description |
|---|
BHiveAllowExtensionsForListOfMultipartFile() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(BHiveAllowExtensions constraintAnnotation)
Initialize the validator in preparation for isValid calls.
|
boolean |
isValid(ArrayList<org.springframework.web.multipart.MultipartFile> listValue,
javax.validation.ConstraintValidatorContext context)
Implement the validation logic.
|
protected String allowExtensionsString
public BHiveAllowExtensionsForListOfMultipartFile()
public void initialize(BHiveAllowExtensions constraintAnnotation)
BHiveConstraintValidatorinitialize in interface javax.validation.ConstraintValidator<BHiveAllowExtensions,ArrayList<org.springframework.web.multipart.MultipartFile>>initialize in class BHiveConstraintValidator<BHiveAllowExtensions,ArrayList<org.springframework.web.multipart.MultipartFile>>constraintAnnotation - annotation instance for a given constraint declarationpublic boolean isValid(ArrayList<org.springframework.web.multipart.MultipartFile> listValue, javax.validation.ConstraintValidatorContext context)
BHiveConstraintValidatorvalue must not be altered.
This method can be accessed concurrently, thread-safety must be ensured
by the implementation.isValid in interface javax.validation.ConstraintValidator<BHiveAllowExtensions,ArrayList<org.springframework.web.multipart.MultipartFile>>isValid in class BHiveConstraintValidator<BHiveAllowExtensions,ArrayList<org.springframework.web.multipart.MultipartFile>>listValue - object to validatecontext - context in which the constraint is evaluatedvalue does not pass the constraintCopyright © 2018. All rights reserved.