Class NumericValidator

java.lang.Object
org.javalite.validation.ValidatorAdapter
org.javalite.validation.NumericValidator
All Implemented Interfaces:
Validator

public class NumericValidator extends ValidatorAdapter
  • Constructor Details

    • NumericValidator

      public NumericValidator​(String attribute)
  • Method Details

    • validate

      public void validate​(Validatable validatable)
      Description copied from interface: Validator
      Called by framework when validation is required
      Parameters:
      validatable - map being validated.
    • setMin

      public void setMin​(Double min)
    • setMax

      public void setMax​(Double max)
    • setAllowNull

      public void setAllowNull​(Boolean allowNull)
    • setOnlyInteger

      public void setOnlyInteger​(boolean onlyInteger)