Class AbstractNumericValidator
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.validator.AbstractNumericValidator
-
- All Implemented Interfaces:
FormFieldValidator
- Direct Known Subclasses:
MaxValidator,MinValidator
public abstract class AbstractNumericValidator extends Object implements FormFieldValidator
- Author:
- Daniel Meyer
-
-
Constructor Summary
Constructors Constructor Description AbstractNumericValidator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanisNullValid()protected abstract booleanvalidate(Double submittedValue, Double configuration)protected abstract booleanvalidate(Float submittedValue, Float configuration)protected abstract booleanvalidate(Integer submittedValue, Integer configuration)protected abstract booleanvalidate(Long submittedValue, Long configuration)booleanvalidate(Object submittedValue, FormFieldValidatorContext validatorContext)return true if the submitted value is valid for the given form field.protected abstract booleanvalidate(Short submittedValue, Short configuration)
-
-
-
Method Detail
-
validate
public boolean validate(Object submittedValue, FormFieldValidatorContext validatorContext)
Description copied from interface:FormFieldValidatorreturn true if the submitted value is valid for the given form field.- Specified by:
validatein interfaceFormFieldValidator- Parameters:
submittedValue- the value submitted to the form fieldvalidatorContext- object providing access to additional information useful wile validating the form- Returns:
- true if the value is valid, false otherwise.
-
isNullValid
protected boolean isNullValid()
-
-