Interface IValidator

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