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
,AbstractCustomCollectionPostConversionValidatorSupport
,AbstractCustomConverterSupport
,AbstractCustomNonConversionValidatorSupport
,AbstractCustomPostConversionValidatorSupport
,AbstractNonConversionValidatorSupport
,AbstractPostConversionValidatorSupport
,AbstractValidatorSupport
,BigDecimalConverter
,BooleanConverter
,DateConverter
,EnumConverter
,IntegerConverter
,IntegerCSVConverter
,IntegerRangeValidator
,MaxLengthValidator
,MinIntegerValidator
,RegexValidator
,RequiredValidator
,StringCSVConverter
Base interface for form field converters and validators used by
AnnotationValidationInterceptor
.-
Method Summary
Modifier and TypeMethodDescriptionReturns 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.validators.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 ifgetMessageKey()
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.
-