public abstract class AbstractValidator extends Object implements IValidator
| Constructor and Description |
|---|
AbstractValidator(String strValidatorName,
String strValidatorDisplayName,
List<String> listAvailableEntryType)
Constructor of the AbstractValidator
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayHtml(Control control) |
String |
getJavascriptControlValue(Control control) |
String |
getJavascriptValidation()
Only the content of the function should be returned.
|
List<String> |
getListAvailableEntryType() |
String |
getValidatorBeanName() |
String |
getValidatorDisplayName() |
abstract boolean |
validate(FormQuestionResponse formQuestionResponse,
Control control) |
boolean |
validate(List<FormQuestionResponse> formQuestionResponse,
Control control) |
public AbstractValidator(String strValidatorName, String strValidatorDisplayName, List<String> listAvailableEntryType)
strValidatorName - The validator bean namestrValidatorDisplayName - The validator display namelistAvailableEntryType - The list of available entrytypepublic abstract boolean validate(FormQuestionResponse formQuestionResponse, Control control)
validate in interface IValidatorformQuestionResponse - The response to controlcontrol - The control to verifypublic boolean validate(List<FormQuestionResponse> formQuestionResponse, Control control)
validate in interface IValidatorformQuestionResponse - The List response to controlcontrol - The control to verifypublic String getValidatorBeanName()
getValidatorBeanName in interface IValidatorpublic String getValidatorDisplayName()
getValidatorDisplayName in interface IValidatorpublic String getDisplayHtml(Control control)
getDisplayHtml in interface IValidatorcontrol - The control to build modelpublic List<String> getListAvailableEntryType()
getListAvailableEntryType in interface IValidatorpublic String getJavascriptValidation()
IValidatorgetJavascriptValidation in interface IValidatorpublic String getJavascriptControlValue(Control control)
getJavascriptControlValue in interface IValidatorcontrol - The controlCopyright © 2020 City of Paris. All rights reserved.