Class AbstractCustomPostConversionValidatorSupport<T>
java.lang.Object
name.matthewgreet.strutscommons.policy.AbstractPolicySupport<CustomPostConversionValidation>
name.matthewgreet.strutscommons.policy.AbstractPostConversionValidatorSupport<CustomPostConversionValidation,T>
name.matthewgreet.strutscommons.policy.AbstractCustomPostConversionValidatorSupport<T>
- All Implemented Interfaces:
Policy<CustomPostConversionValidation>,PostConversionValidator<CustomPostConversionValidation,T>
public abstract class AbstractCustomPostConversionValidatorSupport<T>
extends AbstractPostConversionValidatorSupport<CustomPostConversionValidation,T>
Template class for client supplied validators that validates a converted form field value that are single values.
Subclasses must implement
PostConversionValidator.getRecipientClass() and PostConversionValidator.validate(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 whether validator should not be skipped if conversion failed or was skipped.booleanReturns whether rejection by this validator should stop further validation.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.Policy
getAnnotation, setAnnotationMethods inherited from interface name.matthewgreet.strutscommons.policy.PostConversionValidator
getRecipientClass, validate
-
Constructor Details
-
AbstractCustomPostConversionValidatorSupport
public AbstractCustomPostConversionValidatorSupport()
-
-
Method Details
-
getMessageType
Description copied from interface:PostConversionValidatorReturns whether to write any error message to action errors, field errors, or action messages. -
getMessage
Description copied from interface:PostConversionValidatorReturns message set by annotation. Used ifPostConversionValidator.getMessageKey()is empty string or it fails to find a message. -
getMessageKey
Description copied from interface:PostConversionValidatorReturns 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:PostConversionValidatorReturns whether rejection by this validator should stop further validation. -
getProcessNoValue
public boolean getProcessNoValue()Description copied from interface:PostConversionValidatorReturns whether validator should not be skipped if conversion failed or was skipped.
-