Class AbstractTextValueValidator

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isNullValid()  
      boolean validate​(java.lang.Object submittedValue, FormFieldValidatorContext validatorContext)
      return true if the submitted value is valid for the given form field.
      protected abstract boolean validate​(java.lang.String submittedValue, java.lang.String configuration)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractTextValueValidator

        public AbstractTextValueValidator()
    • Method Detail

      • validate

        public boolean validate​(java.lang.Object submittedValue,
                                FormFieldValidatorContext validatorContext)
        Description copied from interface: FormFieldValidator
        return true if the submitted value is valid for the given form field.
        Specified by:
        validate in interface FormFieldValidator
        Parameters:
        submittedValue - the value submitted to the form field
        validatorContext - object providing access to additional information useful wile validating the form
        Returns:
        true if the value is valid, false otherwise.
      • validate

        protected abstract boolean validate​(java.lang.String submittedValue,
                                            java.lang.String configuration)
      • isNullValid

        protected boolean isNullValid()