Interface PostConversionValidator<A extends Annotation,T>

All Superinterfaces:
Policy<A>, Validator<A>
All Known Implementing Classes:
AbstractCustomPostConversionValidatorSupport, AbstractPostConversionValidatorSupport, IntegerRangeValidator, MinIntegerValidator

public interface PostConversionValidator<A extends Annotation,T> extends Validator<A>
Interface for form field validators used by AnnotationValidationInterceptor and AnnotationValidationInterceptor2 that check a converted value.
  • Method Details

    • getRecipientClass

      Class<T> getRecipientClass()
      Returns type of recipient fields that can receive converted form value.
    • 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

      ValidationResult validate(T formValue) throws Exception
      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