package fr.insee.eno.params.validation;

import fr.insee.eno.parameters.ENOParameters;
import fr.insee.eno.parameters.InFormat;
import fr.insee.eno.parameters.OutFormat;
import fr.insee.eno.parameters.Pipeline;

public interface Validator {
	
	/**
	 * 
	 * @param parametersType
	 * @return
	 */
	ValidationMessage validate(ENOParameters parametersType);

	/**
	 * 
	 * @param inFormat
	 * @param outFormat
	 * @return
	 */
	ValidationMessage validateIn2Out(InFormat inFormat, OutFormat outFormat);
	
	/**
	 * 
	 * @param pipeline
	 * @return
	 */
	ValidationMessage validatePreProcessings(Pipeline pipeline);

	/**
	 * 
	 * @param pipeline
	 * @return
	 */
	ValidationMessage validatePostProcessings(Pipeline pipeline);
	

}

@@ -249,46 +249,179 @@
 %09 * 
-%0A%09 * @param parametersType%0A%09 * @return
+It validates all ENOParameters and it is based on the following function%0A%09 * @param pipeline%0A%09 * @return a ValidationMessage with a message and the boolean if it is valid.
 %0A%09 *
@@ -495,28 +495,59 @@
 %09 * 
-%0A%09 * @param inFormat
+It validates the combination of InFormat/OutFormat.
 %0A%09 *
@@ -554,25 +554,24 @@
  @param 
-outFormat
+pipeline
 %0A%09 * @re
@@ -566,32 +566,99 @@
 line%0A%09 * @return
+ a ValidationMessage with a message and the boolean if it is valid.
 %0A%09 */%0A%09Validatio
@@ -737,150 +737,391 @@
 %09 * 
-%0A%09 * @param pipeline%0A%09 * @return%0A%09 */%0A%09ValidationMessage validatePreProcessings(Pipeline pipeline);%0A%0A%09/**%0A%09 * %0A%09 * @param pipeline%0A%09 * @return
+It validates PreProcessing according to the pipeline.%0A%09 * @param pipeline%0A%09 * @return a ValidationMessage with a message and the boolean if it is valid.%0A%09 */%0A%09ValidationMessage validatePreProcessings(Pipeline pipeline);%0A%0A%09/**%0A%09 * It validates PostProcessing according to the pipeline.%0A%09 * @param pipeline%0A%09 * @return a ValidationMessage with a message and the boolean if it is valid.
 %0A%09 *

Update Validator.java