Class UniqueValidator

java.lang.Object
fr.paris.lutece.plugins.forms.validation.AbstractValidator
fr.paris.lutece.plugins.forms.validation.UniqueValidator
All Implemented Interfaces:
IValidator

public class UniqueValidator extends AbstractValidator
Validator to verify the pattern of a response
  • Constructor Details

    • UniqueValidator

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

    • getDisplayHtml

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

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