Class AbstractCustomListConverterSupport<T>
java.lang.Object
name.matthewgreet.strutscommons.policy.AbstractPolicySupport<CustomListConversion>
name.matthewgreet.strutscommons.policy.AbstractListConverterSupport<CustomListConversion,T>
name.matthewgreet.strutscommons.policy.AbstractCustomListConverterSupport<T>
- All Implemented Interfaces:
ListConverter<CustomListConversion,,T> Policy<CustomListConversion>
- Direct Known Subclasses:
AbstractCustomListFormatterSupport
public abstract class AbstractCustomListConverterSupport<T>
extends AbstractListConverterSupport<CustomListConversion,T>
Template class for custom list converters. Subclasses must implement
ListConverter.getRecipientClass(),
#format and #convert.-
Constructor Summary
Constructors -
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.booleanReturns name of field to receive converted form value, which can be empty string to use default.Methods inherited from class name.matthewgreet.strutscommons.policy.AbstractPolicySupport
getAnnotation, setAnnotationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface name.matthewgreet.strutscommons.policy.ListConverter
convert, format, getRecipientClassMethods inherited from interface name.matthewgreet.strutscommons.policy.Policy
getAnnotation, setAnnotation
-
Constructor Details
-
AbstractCustomListConverterSupport
public AbstractCustomListConverterSupport()
-
-
Method Details
-
getRecipientFieldName
Description copied from interface:ListConverterReturns name of field to receive converted form value, which can be empty string to use default. -
getMessageType
Description copied from interface:ListConverterReturns whether to write any error message to action errors, field errors, or action messages. -
getMessage
Description copied from interface:ListConverterReturns message set by annotation. Used ifListConverter.getMessageKey()is empty string or it fails to find a message. -
getMessageKey
Description copied from interface:ListConverterReturns 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:ListConverter
-