Class AbstractCustomCollectionConverterSupport<T>

All Implemented Interfaces:
CollectionConverter<CustomCollectionConversion,T>, Policy<CustomCollectionConversion>
Direct Known Subclasses:
AbstractCustomCollectionFormatterSupport

public abstract class AbstractCustomCollectionConverterSupport<T> extends AbstractCollectionConverterSupport<CustomCollectionConversion,T>
Template class for client supplied converters to collection-based data types. Subclasses must implement CollectionConverter.getRecipientClass(), #format and #convert.
  • Constructor Details

    • AbstractCustomCollectionConverterSupport

      public AbstractCustomCollectionConverterSupport()
  • Method Details

    • 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.
    • getMessageType

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

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

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

      public boolean getProcessNoValue()
      Description copied from interface: CollectionConverter
      Returns whether #convert converts empty string value, and #format formats null value or empty collection.