use of org.openforis.idm.metamodel.SurveyContext in project collect by openforis.
the class CodeTableDataExtractor method getCodeListService.
private CodeListService getCodeListService(CodeList list) {
Survey survey = list.getSurvey();
SurveyContext context = survey.getContext();
CodeListService codeListService = context.getCodeListService();
return codeListService;
}
use of org.openforis.idm.metamodel.SurveyContext in project collect by openforis.
the class CodeTableDataExtractor method getCodeListService.
private CodeListService getCodeListService() {
CollectSurvey survey = (CollectSurvey) table.getCodeList().getSurvey();
SurveyContext context = survey.getContext();
CodeListService codeListService = context.getCodeListService();
return codeListService;
}
use of org.openforis.idm.metamodel.SurveyContext in project collect by openforis.
the class CodeValueFKColumnValueExtractor method getCodeListService.
private CodeListService getCodeListService(CollectSurvey survey) {
SurveyContext context = survey.getContext();
CodeListService codeListService = context.getCodeListService();
return codeListService;
}
use of org.openforis.idm.metamodel.SurveyContext in project collect by openforis.
the class SurveyUnmarshaller method initSurvey.
protected void initSurvey() {
SurveyIdmlBinder surveyBinder = getSurveyBinder();
SurveyContext surveyContext = surveyBinder.getSurveyContext();
this.survey = surveyContext.createSurvey();
}
use of org.openforis.idm.metamodel.SurveyContext in project collect by openforis.
the class AbsoluteModelPathExpressionTest method iterateExpression.
private List<Node<?>> iterateExpression(String expr, Record record) throws InvalidExpressionException {
SurveyContext surveyContext = record.getSurveyContext();
ExpressionEvaluator expressionEvaluator = surveyContext.getExpressionEvaluator();
return expressionEvaluator.evaluateAbsolutePath(record, expr);
}
Aggregations