Interface CollectionPostConversionValidator<A extends Annotation,T>
- All Known Implementing Classes:
AbstractCollectionPostConversionValidatorSupport
,AbstractCustomCollectionPostConversionValidatorSupport
Interface for form field validators used by
AnnotationValidationInterceptor
and
AnnotationValidationInterceptor2
that check a converted value.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether validator should not be skipped if conversion failed or was skipped.Returns item types of recipient collection fields that can receive converted form value.boolean
Returns whether rejection by this validator should stop further validation.validate
(Collection<T> formValue) Returns result of checking converted form field value and message to use if failed.Methods inherited from interface name.matthewgreet.strutscommons.policy.Policy
getAnnotation, setAnnotation
Methods inherited from interface name.matthewgreet.strutscommons.policy.Validator
getMessage, getMessageKey, getMessageType
-
Method Details
-
getRecipientClass
Returns item types of recipient collection fields that can receive converted form value. Not to be confused with collection type. -
getShortCircuit
boolean getShortCircuit()Returns whether rejection by this validator should stop further validation. -
getProcessNoValue
boolean getProcessNoValue()Returns whether validator should not be skipped if conversion failed or was skipped. -
validate
Returns result of checking converted form field value and message to use if failed. This is not called if the form value is empty string or null or the conversion failed.- Throws:
Exception
-