Class AbstractCustomNonConversionValidatorSupport
java.lang.Object
name.matthewgreet.strutscommons.policy.AbstractPolicySupport<CustomValidation>
name.matthewgreet.strutscommons.policy.AbstractNonConversionValidatorSupport<CustomValidation>
name.matthewgreet.strutscommons.policy.AbstractCustomNonConversionValidatorSupport
- All Implemented Interfaces:
NonConversionValidator<CustomValidation>,Policy<CustomValidation>
public abstract class AbstractCustomNonConversionValidatorSupport
extends AbstractNonConversionValidatorSupport<CustomValidation>
Template class for client supplied validators that convert a string-based form field to a single, other data type.
Subclasses must implement
NonConversionValidator.validate(java.lang.String).-
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 the form field value is empty string.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.NonConversionValidator
validateMethods inherited from interface name.matthewgreet.strutscommons.policy.Policy
getAnnotation, setAnnotation
-
Constructor Details
-
AbstractCustomNonConversionValidatorSupport
public AbstractCustomNonConversionValidatorSupport()
-
-
Method Details
-
getMessageType
Description copied from interface:NonConversionValidatorReturns whether to write any error message to action errors, field errors, or action messages. -
getMessage
Description copied from interface:NonConversionValidatorReturns message set by annotation. Used ifNonConversionValidator.getMessageKey()is empty string or it fails to find a message. -
getMessageKey
Description copied from interface:NonConversionValidatorReturns 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:NonConversionValidatorReturns whether rejection by this validator should stop further validation. -
getProcessNoValue
public boolean getProcessNoValue()Description copied from interface:NonConversionValidatorReturns whether validator should not be skipped if the form field value is empty string.
-