public abstract class AbstractNumericValidator extends Object implements FormFieldValidator
Constructor and Description |
---|
AbstractNumericValidator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isNullValid() |
protected abstract boolean |
validate(Double submittedValue,
Double configuration) |
protected abstract boolean |
validate(Float submittedValue,
Float configuration) |
protected abstract boolean |
validate(Integer submittedValue,
Integer configuration) |
protected abstract boolean |
validate(Long submittedValue,
Long configuration) |
boolean |
validate(Object submittedValue,
FormFieldValidatorContext validatorContext)
return true if the submitted value is valid for the given form field.
|
protected abstract boolean |
validate(Short submittedValue,
Short configuration) |
public boolean validate(Object submittedValue, FormFieldValidatorContext validatorContext)
FormFieldValidator
validate
in interface FormFieldValidator
submittedValue
- the value submitted to the form fieldvalidatorContext
- object providing access to additional information useful wile
validating the formprotected boolean isNullValid()
Copyright © 2017. All rights reserved.