Interface CollectionPostConversionAdjuster<A extends Annotation, T>

All Superinterfaces:
Policy<A>
All Known Implementing Classes:
AbstractCollectionPostConversionAdjusterSupport, AbstractCustomCollectionPostConversionAdjusterSupport

public interface CollectionPostConversionAdjuster<A extends Annotation, T> extends Policy<A>
Interface for post conversion adjusters, which alter form field values that are collections and used by AnnotationValidationInterceptor2 (not AnnotationValidationInterceptor). This is useful for adding implied values, such as midnight time for a date. Post conversion adjusters are run after conversion but before post conversion validators.
  • Method Details

    • getRecipientClass

      Class<T> getRecipientClass()
      Returns item types of recipient collection fields that can receive converted form value. Not to be confused with collection type.
    • getProcessNoValue

      boolean getProcessNoValue()
      Returns whether validator should not be skipped if conversion failed or was skipped.
    • adjust

      Collection<T> adjust(Collection<T> formValue) throws Exception
      Returns adjusted form field value.
      Throws:
      Exception