use of org.eclipse.vorto.codegen.ditto.schema.SchemaValidatorTask in project vorto by eclipse.
the class EclipseDittoGenerator method generate.
@Override
public IGenerationResult generate(InformationModel infomodel, InvocationContext invocationContext, IVortoCodeGenProgressMonitor monitor) throws VortoCodeGeneratorException {
GenerationResultZip zipOutputter = new GenerationResultZip(infomodel, getServiceKey());
ChainedCodeGeneratorTask<InformationModel> generator = new ChainedCodeGeneratorTask<InformationModel>();
generator.addTask(new SchemaValidatorTask());
generator.generate(infomodel, invocationContext, zipOutputter);
GenerationResultBuilder result = GenerationResultBuilder.from(zipOutputter);
return result.build();
}
Aggregations