Interface IValidator

    • 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 control
        control - 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 control
        control - 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
      • getJavascriptControlValue

        String getJavascriptControlValue​(Control control)
        Parameters:
        control - The control
        Returns:
        the control value needed for javascript