Interface ListPostConversionAdjuster<A extends Annotation,T>
- All Superinterfaces:
Policy<A>
- All Known Implementing Classes:
AbstractCustomListPostConversionAdjusterSupport,AbstractListPostConversionAdjusterSupport,RemoveEmptyStringEntriesListPostConversionAdjuster,RemoveNullIntegerEntriesListPostConversionAdjuster,SortIntegerEntriesListPostConversionAdjuster,SortStringEntriesListPostConversionAdjuster
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 TypeMethodDescriptionReturns adjusted form field values.booleanReturns 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
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
Returns adjusted form field values.- Throws:
Exception
-