Class QuestionValidator

java.lang.Object
ch.tocco.nice2.persist.core.api.validation.AbstractEntityValidator
ch.tocco.nice2.optional.evaluation.impl.validators.QuestionValidator
All Implemented Interfaces:
EntitiesValidator, EntityValidator

public class QuestionValidator extends AbstractEntityValidator
- Ensures, that only questions with a question type that allows answer options actually has answer options attached. - Check newly added relQuestion_parallel relations: Must not be to itself and connected Questions must be related to the same Questionnaire