Interface Adjuster<A extends Annotation>

All Superinterfaces:
Policy<A>
All Known Implementing Classes:
AbstractAdjusterSupport, AbstractCustomAdjusterSupport, ToLowerCaseAdjuster, ToUpperCaseAdjuster, TrimAdjuster

public interface Adjuster<A extends Annotation> extends Policy<A>
Interface for adjusters, which alter form field values and used by AnnotationValidationInterceptor and AnnotationValidationInterceptor2. Adjusters are run before any validators or converters.
  • Method Summary

    Modifier and Type
    Method
    Description
    adjust(String fieldValue)
    Returns adjusted form field value.
    boolean
    Returns whether adjuster should not be skipped if the form field value is empty string.

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

    getAnnotation, setAnnotation
  • Method Details

    • adjust

      String adjust(String fieldValue) throws Exception
      Returns adjusted form field value.
      Throws:
      Exception
    • getProcessNoValue

      boolean getProcessNoValue()
      Returns whether adjuster should not be skipped if the form field value is empty string.