public abstract class AbstractValidator extends Object implements IValidator
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
_listAvailableEntryType |
protected String |
_strDisplayName |
protected String |
_strValidatorName |
| 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) |
protected final String _strValidatorName
protected final String _strDisplayName
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.