Search in sources :

Example 1 with JsonIMTemplate

use of org.eclipse.vorto.codegen.json.templates.JsonIMTemplate in project vorto by eclipse.

the class JsonGenerator method generate.

public GenerationResultZip generate(InformationModel infomodel, InvocationContext context, IVortoCodeGenProgressMonitor monitor) throws VortoCodeGeneratorException {
    GenerationResultZip output = new GenerationResultZip(infomodel, getServiceKey());
    GeneratorTaskFromFileTemplate<InformationModel> imTemplate = new GeneratorTaskFromFileTemplate<InformationModel>(new JsonIMTemplate());
    imTemplate.generate(infomodel, context, output);
    return output;
}
Also used : GenerationResultZip(org.eclipse.vorto.codegen.api.GenerationResultZip) GeneratorTaskFromFileTemplate(org.eclipse.vorto.codegen.api.GeneratorTaskFromFileTemplate) InformationModel(org.eclipse.vorto.core.api.model.informationmodel.InformationModel) JsonIMTemplate(org.eclipse.vorto.codegen.json.templates.JsonIMTemplate)

Aggregations

GenerationResultZip (org.eclipse.vorto.codegen.api.GenerationResultZip)1 GeneratorTaskFromFileTemplate (org.eclipse.vorto.codegen.api.GeneratorTaskFromFileTemplate)1 JsonIMTemplate (org.eclipse.vorto.codegen.json.templates.JsonIMTemplate)1 InformationModel (org.eclipse.vorto.core.api.model.informationmodel.InformationModel)1