All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.insee.eno.generation.Generator Maven / Gradle / Ivy

Go to download

Eno is a tool that generates survey questionnaires starting from their formal description in DDI

There is a newer version: 2.10.2
Show newest version
package fr.insee.eno.generation;

import java.io.ByteArrayOutputStream;
import java.io.InputStream;

/**
 * This interface describes the API of a generator which main function is to
 * generate a implementation questionnaire from a formal specification. The
 * standard use case is to produce an XForms questionnaire from a DDI
 * specification.
 */
public interface Generator {

	/**
	 * This method handles the preprocessing of an input file. TODO Exception is
	 * also weak, change to a more robust Exception
	 *
	 * @param finalInput The input file, previously transformed in the preprocessing step
	 * @param parameters The parameters of the survey for which we generate a questionnaire
	 * @param surveyName The name of the survey for which we generate a questionnaire
	 * @return the generated file
	 * @throws Exception Generic exception
	 */
	public ByteArrayOutputStream generate(InputStream input, byte[] parameters, String surveyName) throws Exception;

	/**
	 * This method return in2out implementation
	 * 
	 * @return the in2out implementation
	 */
	public String in2out() ;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy