Class AbstractPatternValidator

    • Constructor Detail

      • AbstractPatternValidator

        public AbstractPatternValidator​(java.lang.String strValidatorName,
                                        java.lang.String strValidatorDisplayName,
                                        java.util.List<java.lang.String> listAvailableEntryType)
    • Method Detail

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