org.appng.api.support.validation

## Class FileUploadListValidator

- java.lang.Object
- - org.appng.api.support.validation.FileUploadListValidator

- All Implemented Interfaces:
    javax.validation.ConstraintValidator<FileUpload,Collection<FormUpload>>

      public class FileUploadListValidator
      extends Object
      implements javax.validation.ConstraintValidator<FileUpload,Collection<FormUpload>>

  Checks that a `Collection` of `FormUpload`s matches the restrictions given by a `FileUpload`.
  Author:
    Matthias Müller

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FileUploadListValidator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `initialize(FileUpload constraintAnnotation)`
    `boolean` | `isValid(Collection<FormUpload> uploads, javax.validation.ConstraintValidatorContext context)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FileUploadListValidator

          public FileUploadListValidator()

  - ### Method Detail

    - #### initialize

          public void initialize(FileUpload constraintAnnotation)

      Specified by:
        `initialize` in interface `javax.validation.ConstraintValidator<FileUpload,Collection<FormUpload>>`

    - #### isValid

          public boolean isValid(Collection<FormUpload> uploads,
                                 javax.validation.ConstraintValidatorContext context)

      Specified by:
        `isValid` in interface `javax.validation.ConstraintValidator<FileUpload,Collection<FormUpload>>`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.