Class ListExactResponseValidator

  • All Implemented Interfaces:
    IValidator

    public class ListExactResponseValidator
    extends AbstractValidator
    Validator to check on the minimum number of selected answers
    • Constructor Detail

      • ListExactResponseValidator

        public ListExactResponseValidator​(java.lang.String strValidatorName,
                                          java.lang.String strValidatorDisplayName,
                                          java.util.List<java.lang.String> listAvailableEntryType)
        Constructor of the ListExactResponseValidator
        Parameters:
        strValidatorName - The validator bean name
        strValidatorDisplayName - The validator display name
        listAvailableEntryType - The list of available entrytype
    • Method Detail

      • validate

        public boolean validate​(FormQuestionResponse questionResponse,
                                Control control)
        Parameters:
        questionResponse - The response to control
        control - The control to verify
        Returns:
        boolean that indicate the validation result
      • getJavascriptValidation

        public java.lang.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
        Overrides:
        getJavascriptValidation in class AbstractValidator
        Returns:
        the javascript validation code for Conditional display control