Interface IValidator
-
- All Known Implementing Classes:
AbstractDateValidator,AbstractDayDistanceValidator,AbstractListQuestionValidator,AbstractNumberValidator,AbstractPatternValidator,AbstractValidator,DateInferiorValidator,DateSuperiorValidator,DayDelayMinimumValidator,GeolocationAddressPatternValidator,ListExactResponseValidator,ListMaxResponseValidator,ListMinResponseValidator,ListValueValidator,NumberInferiorValidator,NumberSuperiorValidator,PatternFileTypeValidator,PatternValidator,UniqueValidator
public interface IValidatorInterface which describe the validation process
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDisplayHtml(Control control)StringgetJavascriptControlValue(Control control)StringgetJavascriptValidation()Only the content of the function should be returned.List<String>getListAvailableEntryType()StringgetValidatorBeanName()StringgetValidatorDisplayName()booleanvalidate(FormQuestionResponse questionResponse, Control control)booleanvalidate(List<FormQuestionResponse> questionResponse, Control control)
-
-
-
Method Detail
-
getValidatorBeanName
String getValidatorBeanName()
- Returns:
- the validator bean name
-
getValidatorDisplayName
String getValidatorDisplayName()
- Returns:
- the validator display name
-
getDisplayHtml
String getDisplayHtml(Control control)
- Parameters:
control- The control to build model- Returns:
- the HTML to display
-
getListAvailableEntryType
List<String> getListAvailableEntryType()
- Returns:
- the list of available entrytype for this validator
-
validate
boolean validate(FormQuestionResponse questionResponse, Control control)
- Parameters:
questionResponse- The response to controlcontrol- The control to verify- Returns:
- boolean that indicate the validation result
-
validate
boolean validate(List<FormQuestionResponse> questionResponse, Control control)
- Parameters:
questionResponse- The List response to controlcontrol- The control to verify- Returns:
- boolean that indicate the validation result
-
getJavascriptValidation
String getJavascriptValidation()
Only the content of the function should be returned. The parameter names are in FormsConstants, JS_PARAMETER_INPUT_VALUE and JS_PARAMETER_CONTROL_VALUE- Returns:
- the javascript validation code for Conditional display control
-
-