Search in sources :

Example 1 with CollectValidator

use of org.openforis.collect.model.validation.CollectValidator in project collect by openforis.

the class UIOptionsTest method initSurvey.

protected void initSurvey() {
    SurveyContext ctx = new CollectSurveyContext(new ExpressionFactory(), new CollectValidator());
    survey = (CollectSurvey) ctx.createSurvey();
    schema = survey.getSchema();
    populateSchema();
    initUIOptions();
}
Also used : ExpressionFactory(org.openforis.idm.model.expression.ExpressionFactory) CollectSurveyContext(org.openforis.collect.model.CollectSurveyContext) CollectValidator(org.openforis.collect.model.validation.CollectValidator) CollectSurveyContext(org.openforis.collect.model.CollectSurveyContext) SurveyContext(org.openforis.idm.metamodel.SurveyContext)

Aggregations

CollectSurveyContext (org.openforis.collect.model.CollectSurveyContext)1 CollectValidator (org.openforis.collect.model.validation.CollectValidator)1 SurveyContext (org.openforis.idm.metamodel.SurveyContext)1 ExpressionFactory (org.openforis.idm.model.expression.ExpressionFactory)1