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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.form.validator.RequiredValidator
All Implemented Interfaces:
FormFieldValidator

public class RequiredValidator
extends Object
implements FormFieldValidator

Author:
Daniel Meyer

Constructor Summary
RequiredValidator()
           
 
Method Summary
 boolean validate(Object submittedValue, FormFieldValidatorContext validatorContext)
          return true if the submitted value is valid for the given form field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequiredValidator

public RequiredValidator()
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.


Copyright © 2017 camunda services GmbH. All rights reserved.