Class AbstractCustomCollectionConverterSupport<T>
java.lang.Object
name.matthewgreet.strutscommons.policy.AbstractPolicySupport<CustomCollectionConversion>
name.matthewgreet.strutscommons.policy.AbstractCollectionConverterSupport<CustomCollectionConversion,T>
name.matthewgreet.strutscommons.policy.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(), CollectionConverter.format(java.util.Collection<T>) and CollectionConverter.convert(java.lang.String, java.lang.Class<?>, java.lang.Class<? extends T>).-
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 whetherCollectionConverter.convert(java.lang.String, java.lang.Class<?>, java.lang.Class<? extends T>)converts empty string value, andCollectionConverter.format(java.util.Collection<T>)formats null value or empty collection.Returns name of field to receive converted form value, which can be empty string to use default.Methods inherited from class name.matthewgreet.strutscommons.policy.AbstractCollectionConverterSupport
makeCollectionForRecipientMethods 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.CollectionConverter
convert, format, getRecipientClassMethods inherited from interface name.matthewgreet.strutscommons.policy.Policy
getAnnotation, setAnnotation
-
Constructor Details
-
AbstractCustomCollectionConverterSupport
public AbstractCustomCollectionConverterSupport()
-
-
Method Details
-
getRecipientFieldName
Description copied from interface:CollectionConverterReturns name of field to receive converted form value, which can be empty string to use default. -
getMessageType
Description copied from interface:CollectionConverterReturns whether to write any error message to action errors, field errors, or action messages. -
getMessage
Description copied from interface:CollectionConverterReturns message set by annotation. Used ifCollectionConverter.getMessageKey()is empty string or it fails to find a message. -
getMessageKey
Description copied from interface:CollectionConverterReturns 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:CollectionConverterReturns whetherCollectionConverter.convert(java.lang.String, java.lang.Class<?>, java.lang.Class<? extends T>)converts empty string value, andCollectionConverter.format(java.util.Collection<T>)formats null value or empty collection.
-