Class AbstractCustomNonConversionValidatorSupport

All Implemented Interfaces:
NonConversionValidator<CustomValidation>, Policy<CustomValidation>, Validator<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 Details

    • AbstractCustomNonConversionValidatorSupport

      public AbstractCustomNonConversionValidatorSupport()
  • Method Details

    • getMessageType

      public Required.MessageType getMessageType()
      Description copied from interface: Validator
      Returns whether to write any error message to action errors, field errors, or action messages.
    • getMessage

      public String getMessage()
      Description copied from interface: Validator
      Returns message set by annotation. Used if Validator.getMessageKey() is empty string or it fails to find a message.
    • getMessageKey

      public String 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: NonConversionValidator
      Returns whether rejection by this validator should stop further validation.