Interface Converter<A extends Annotation,T>
- All Known Implementing Classes:
AbstractConverterSupport
,AbstractCustomConverterSupport
,BigDecimalConverter
,BooleanConverter
,DateConverter
,EnumConverter
,IntegerConverter
Interface for form field validators used by
AnnotationValidationInterceptor
that convert from string values
to single values and vice versa.-
Method Summary
Modifier and TypeMethodDescriptionReturns result of conversion of form field.Returns single field value formatted for display in a form field.Returns types of recipient fields that can receive converted form value or, if recipient should be a list, types of entries.Returns name of field to receive converted form value, which can be empty string to use default.Methods inherited from interface name.matthewgreet.strutscommons.validators.Policy
getAnnotation, setAnnotation
Methods inherited from interface name.matthewgreet.strutscommons.validators.Validator
getMessage, getMessageKey, getMessageType
-
Method Details
-
getRecipientClass
Returns types of recipient fields that can receive converted form value or, if recipient should be a list, types of entries. -
format
Returns single field value formatted for display in a form field. Only applies single value recipients. Not called if the unformatted value is null. -
getRecipientFieldName
String getRecipientFieldName()Returns name of field to receive converted form value, which can be empty string to use default. -
convert
Returns result of conversion of form field. This is not called if the form value is empty string or null.
-