Interface ListPostConversionAdjuster<A extends Annotation,T>

All Superinterfaces:
Policy<A>
All Known Implementing Classes:
AbstractCustomListPostConversionAdjusterSupport, AbstractListPostConversionAdjusterSupport, RemoveEmptyStringEntriesListPostConversionAdjuster, RemoveNullIntegerEntriesListPostConversionAdjuster, SortIntegerEntriesListPostConversionAdjuster, SortStringEntriesListPostConversionAdjuster

public interface ListPostConversionAdjuster<A extends Annotation,T> extends Policy<A>
Interface for list post conversion adjusters, which alter a list of converted values and used by AnnotationValidationInterceptor2 (not AnnotationValidationInterceptor). Despite the name, recipient form fields can be non-list collections and arrays. This is useful for adjusting the list as a whole, such as sorting or removing null entries, and are run after individual entry post-conversion adjusters and before post conversion validators.
  • Method Summary

    Modifier and Type
    Method
    Description
    adjust(List<T> formValue)
    Returns adjusted form field values.
    boolean
    Returns whether validator should not be skipped if conversion was skipped.
    Returns item types of recipient collection fields that can receive converted form value.

    Methods inherited from interface name.matthewgreet.strutscommons.policy.Policy

    getAnnotation, setAnnotation
  • 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 was skipped.
    • adjust

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