Class AbstractValidator

    • Constructor Detail

      • AbstractValidator

        public AbstractValidator​(String strValidatorName,
                                 String strValidatorDisplayName,
                                 List<String> listAvailableEntryType)
        Constructor of the AbstractValidator
        Parameters:
        strValidatorName - The validator bean name
        strValidatorDisplayName - The validator display name
        listAvailableEntryType - The list of available entrytype
      • AbstractValidator

        public AbstractValidator​(String strValidatorName,
                                 String strValidatorDisplayName,
                                 List<String> listAvailableEntryType,
                                 Locale locale)
        Constructor of the AbstractValidator
        Parameters:
        strValidatorName - The validator bean name
        strValidatorDisplayName - The validator display name
        listAvailableEntryType - The list of available entrytype
        locale - The locale
    • Method Detail

      • validate

        public boolean validate​(List<FormQuestionResponse> formQuestionResponse,
                                Control control)
        Specified by:
        validate in interface IValidator
        Parameters:
        formQuestionResponse - The List response to control
        control - The control to verify
        Returns:
        boolean that indicate the validation result
      • getDisplayHtml

        public String getDisplayHtml​(Control control)
        Specified by:
        getDisplayHtml in interface IValidator
        Parameters:
        control - The control to build model
        Returns:
        the HTML to display
      • getJavascriptValidation

        public String getJavascriptValidation()
        Description copied from interface: IValidator
        Only the content of the function should be returned. The parameter names are in FormsConstants, JS_PARAMETER_INPUT_VALUE and JS_PARAMETER_CONTROL_VALUE
        Specified by:
        getJavascriptValidation in interface IValidator
        Returns:
        the javascript validation code for Conditional display control