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 java.lang.StringgetDisplayHtml(Control control)java.lang.StringgetJavascriptControlValue(Control control)java.lang.StringgetJavascriptValidation()Only the content of the function should be returned.java.util.List<java.lang.String>getListAvailableEntryType()java.lang.StringgetValidatorBeanName()java.lang.StringgetValidatorDisplayName()booleanvalidate(FormQuestionResponse questionResponse, Control control)booleanvalidate(java.util.List<FormQuestionResponse> questionResponse, Control control)
-
-
-
Method Detail
-
getValidatorBeanName
java.lang.String getValidatorBeanName()
- Returns:
- the validator bean name
-
getValidatorDisplayName
java.lang.String getValidatorDisplayName()
- Returns:
- the validator display name
-
getDisplayHtml
java.lang.String getDisplayHtml(Control control)
- Parameters:
control- The control to build model- Returns:
- the HTML to display
-
getListAvailableEntryType
java.util.List<java.lang.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(java.util.List<FormQuestionResponse> questionResponse, Control control)
- Parameters:
questionResponse- The List response to controlcontrol- The control to verify- Returns:
- boolean that indicate the validation result
-
getJavascriptValidation
java.lang.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
-
getJavascriptControlValue
java.lang.String getJavascriptControlValue(Control control)
- Parameters:
control- The control- Returns:
- the control value needed for javascript
-
-