Class SurveyCategoryDefinitionValidator

java.lang.Object
ch.tocco.nice2.persist.core.api.validation.AbstractEntityValidator
ch.tocco.nice2.optional.survey.impl.validator.SurveyCategoryDefinitionValidator
All Implemented Interfaces:
EntitiesValidator, EntityValidator

public class SurveyCategoryDefinitionValidator extends AbstractEntityValidator
Checks if quantity_of_random_questions is set if use_random_questions on Survey_category_definition entities
  • Constructor Details

    • SurveyCategoryDefinitionValidator

      public SurveyCategoryDefinitionValidator()
  • Method Details

    • validate

      public void validate(Entity surveyCategoryDefinition, EntityValidationResult validationResult)
      Description copied from interface: EntityValidator
      Validate the entity at hand.
      Parameters:
      surveyCategoryDefinition - the entity to be validated
      validationResult - the EntityValidationResult to write the result of the validation to. EntityValidationResult for more details on how to construct the EntityValidationResult.