org.camunda.bpm.engine.impl.form.validator
Class AbstractNumericValidator

java.lang.Object
  extended by 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
AbstractNumericValidator()
           
 
Method Summary
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)
           
 
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(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.

isNullValid

protected boolean isNullValid()

validate

protected abstract boolean validate(Integer submittedValue,
                                    Integer configuration)

validate

protected abstract boolean validate(Long submittedValue,
                                    Long configuration)

validate

protected abstract boolean validate(Double submittedValue,
                                    Double configuration)

validate

protected abstract boolean validate(Float submittedValue,
                                    Float configuration)

validate

protected abstract boolean validate(Short submittedValue,
                                    Short configuration)


Copyright © 2015 camunda services GmbH. All rights reserved.