Interface Validator<A extends Annotation>

All Superinterfaces:
Policy<A>
All Known Subinterfaces:
CollectionConverter<A,T>, CollectionPostConversionValidator<A,T>, Converter<A,T>, NonConversionValidator<A>, PostConversionValidator<A,T>
All Known Implementing Classes:
AbstractCollectionConverterSupport, AbstractCollectionPostConversionValidatorSupport, AbstractConverterSupport, AbstractCustomCollectionConverterSupport, AbstractCustomCollectionFormatterSupport, AbstractCustomCollectionPostConversionValidatorSupport, AbstractCustomConverterSupport, AbstractCustomFormatterSupport, AbstractCustomNonConversionValidatorSupport, AbstractCustomPostConversionValidatorSupport, AbstractNonConversionValidatorSupport, AbstractPostConversionValidatorSupport, AbstractValidatorSupport, BigDecimalConverter, BooleanConverter, ByteConverter, CharacterConverter, DateConverter, DoubleConverter, EnumConverter, FloatConverter, IntegerConverter, IntegerCSVConverter, IntegerRangeValidator, LongConverter, MaxLengthValidator, MinIntegerValidator, RegexValidator, RequiredValidator, ShortConverter, StringCSVConverter

public interface Validator<A extends Annotation> extends Policy<A>
Base interface for form field converters and validators used by AnnotationValidationInterceptor and AnnotationValidationInterceptor2.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns message set by annotation.
    Returns message key set by annotation, which is used to retrieve message from Action's TextProvider if it's not empty string.
    Returns whether to write any error message to action errors, field errors, or action messages.

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

    getAnnotation, setAnnotation
  • Method Details

    • getMessageType

      Required.MessageType getMessageType()
      Returns whether to write any error message to action errors, field errors, or action messages.
    • getMessage

      String getMessage()
      Returns message set by annotation. Used if getMessageKey() is empty string or it fails to find a message.
    • getMessageKey

      String getMessageKey()
      Returns message key set by annotation, which is used to retrieve message from Action's TextProvider if it's not empty string.