Class AbstractCustomCollectionPostConversionValidatorSupport<T>
java.lang.Object
name.matthewgreet.strutscommons.policy.AbstractPolicySupport<CustomCollectionPostConversion>
name.matthewgreet.strutscommons.policy.AbstractValidatorSupport<CustomCollectionPostConversion>
name.matthewgreet.strutscommons.policy.AbstractCollectionPostConversionValidatorSupport<CustomCollectionPostConversion,T>
name.matthewgreet.strutscommons.policy.AbstractCustomCollectionPostConversionValidatorSupport<T>
- All Implemented Interfaces:
CollectionPostConversionValidator<CustomCollectionPostConversion,
,T> Policy<CustomCollectionPostConversion>
,Validator<CustomCollectionPostConversion>
public abstract class AbstractCustomCollectionPostConversionValidatorSupport<T>
extends AbstractCollectionPostConversionValidatorSupport<CustomCollectionPostConversion,T>
Template class for client supplied validators that validates a converted form field value that are collections.
Subclasses must implement
CollectionPostConversionValidator.getRecipientClass()
and validate(java.util.Collection<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.boolean
Returns whether validator should not be skipped if conversion failed or was skipped.boolean
Returns whether rejection by this validator should stop further validation.abstract ValidationResult
validate
(Collection<T> formValue) Returns result of checking converted form field value and message to use if failed.Methods inherited from class name.matthewgreet.strutscommons.policy.AbstractPolicySupport
getAnnotation, setAnnotation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface name.matthewgreet.strutscommons.policy.CollectionPostConversionValidator
getRecipientClass
Methods inherited from interface name.matthewgreet.strutscommons.policy.Policy
getAnnotation, setAnnotation
-
Constructor Details
-
AbstractCustomCollectionPostConversionValidatorSupport
public AbstractCustomCollectionPostConversionValidatorSupport()
-
-
Method Details
-
getMessageType
Description copied from interface:Validator
Returns whether to write any error message to action errors, field errors, or action messages. -
getMessage
Description copied from interface:Validator
Returns message set by annotation. Used ifValidator.getMessageKey()
is empty string or it fails to find a message. -
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. -
getShortCircuit
public boolean getShortCircuit()Description copied from interface:CollectionPostConversionValidator
Returns whether rejection by this validator should stop further validation. -
getProcessNoValue
public boolean getProcessNoValue()Description copied from interface:CollectionPostConversionValidator
Returns whether validator should not be skipped if conversion failed or was skipped. -
validate
Description copied from interface:CollectionPostConversionValidator
Returns result of checking converted form field value and message to use if failed. This is not called if the form value is empty string or null or the conversion failed.
-