Class IntegerCSVConverter

All Implemented Interfaces:
CollectionConverter<IntegerCSVConversion,Integer>, Policy<IntegerCSVConversion>, Validator<IntegerCSVConversion>

public class IntegerCSVConverter extends AbstractCollectionConverterSupport<IntegerCSVConversion,Integer>
  • Constructor Details

    • IntegerCSVConverter

      public IntegerCSVConverter()
  • Method Details

    • format

      public String format(Collection<Integer> unformattedValues)
      Description copied from interface: CollectionConverter
      Returns collection-based field value formatted for display in a form field. Not called if the unformatted value is null.
    • getRecipientClass

      public Class<Integer> getRecipientClass()
      Description copied from interface: CollectionConverter
      Returns types of recipient fields that can receive converted form value or, if recipient should be a list, types of entries.
    • getMessageType

      public Required.MessageType getMessageType()
      Description copied from interface: Validator
      Returns whether to write any error message to action errors, field errors, or action messages.
    • getMessage

      public String getMessage()
      Description copied from interface: Validator
      Returns message set by annotation. Used if Validator.getMessageKey() is empty string or it fails to find a message.
    • getMessageKey

      public String getMessageKey()
      Description copied from interface: Validator
      Returns message key set by annotation, which is used to retrieve message from Action's TextProvider if it's not empty string.
    • getRecipientFieldName

      public String getRecipientFieldName()
      Description copied from interface: CollectionConverter
      Returns name of field to receive converted form value, which can be empty string to use default.
    • convert

      public ConversionResult<Integer> convert(String formValue, Class<?> recipientFieldClass, Class<Integer> recipientClass)
      Description copied from interface: CollectionConverter
      Returns result of conversion of form field. This is not called if the form value is empty string or null.