Class AbstractNumericValidator

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isNullValid()  
      protected abstract boolean validate​(java.lang.Double submittedValue, java.lang.Double configuration)  
      protected abstract boolean validate​(java.lang.Float submittedValue, java.lang.Float configuration)  
      protected abstract boolean validate​(java.lang.Integer submittedValue, java.lang.Integer configuration)  
      protected abstract boolean validate​(java.lang.Long submittedValue, java.lang.Long configuration)  
      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.Short submittedValue, java.lang.Short configuration)  
      • Methods inherited from class java.lang.Object

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

      • AbstractNumericValidator

        public AbstractNumericValidator()
    • 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
        submittedValue - the value submitted to the form field
        validatorContext - object providing access to additional information useful wile validating the form
        true if the value is valid, false otherwise.
      • isNullValid

        protected boolean isNullValid()
      • validate

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

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

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

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

        protected abstract boolean validate​(java.lang.Short submittedValue,
                                            java.lang.Short configuration)