private void writeResultsToFile(ValidationPlanResult planResult) throws IOException
	{

		/**
		 * first set any report messages (probably exceptional that the
		 * translation report needs to get set outside the embl-api-core package
		 * due to the need for embl-ff writers
		 **/
		for (ValidationResult result : planResult.getResults())
		{
			if (result instanceof ExtendedResult)
			{
				ExtendedResult extendedResult = (ExtendedResult) result;
				if (extendedResult.getExtension() instanceof CdsFeatureTranslationCheck.TranslationReportInfo)
				{
				FlatFileValidations.setCDSTranslationReport((ExtendedResult<CdsFeatureTranslationCheck.TranslationReportInfo>) extendedResult);
				}
			}
		}

		// then look at writing the files

		for (ValidationResult result : planResult.getResults())
		{
			result.writeMessages(errorWriter,Severity.ERROR,planResult.getTargetOrigin());
			result.writeMessages(infoWriter,Severity.INFO,planResult.getTargetOrigin());
			result.writeMessages(infoWriter,Severity.WARNING,planResult.getTargetOrigin());
			result.writeMessages(fixWriter,Severity.FIX,planResult.getTargetOrigin());
			errorWriter.flush();
			infoWriter.flush();
			fixWriter.flush();
		}

		for (ValidationResult result : planResult.getResults())
		{
			if (result.isHasReportMessage())
			{
				result.setWriteReportMessage(true);// turn report writing on for
													// this writer
				result.writeMessages(reportWriter);
			}
		}
	}
private void writeResultsToFile ( ValidationPlanResult planResult ) throws IOException { for ( ValidationResult result : planResult . getResults ( ) ) { if ( result instanceof ExtendedResult ) { ExtendedResult extendedResult = ( ExtendedResult ) result ; if ( extendedResult . getExtension ( ) instanceof CdsFeatureTranslationCheck . TranslationReportInfo ) { FlatFileValidations . setCDSTranslationReport ( ( ExtendedResult < CdsFeatureTranslationCheck . TranslationReportInfo > ) extendedResult ) ; } } } for ( ValidationResult result : planResult . getResults ( ) ) { result . writeMessages ( errorWriter , Severity . ERROR , planResult . getTargetOrigin ( ) ) ; result . writeMessages ( infoWriter , Severity . INFO , planResult . getTargetOrigin ( ) ) ; result . writeMessages ( infoWriter , Severity . WARNING , planResult . getTargetOrigin ( ) ) ; result . writeMessages ( fixWriter , Severity . FIX , planResult . getTargetOrigin ( ) ) ; errorWriter . flush ( ) ; infoWriter . flush ( ) ; fixWriter . flush ( ) ; } for ( ValidationResult result : planResult . getResults ( ) ) { if ( result . isHasReportMessage ( ) ) { result . setWriteReportMessage ( true ) ; result . writeMessages ( reportWriter ) ; } } }
Write results to file.

@param planResult  the plan result
@throws IOException Signals that an I/O exception has occurred.