Search in sources :

Example 16 with ChainedCodeGeneratorTask

use of org.eclipse.vorto.codegen.api.ChainedCodeGeneratorTask in project vorto by eclipse.

the class ProSystGenerator method generateForEntity.

private void generateForEntity(InformationModel infomodel, InvocationContext ctx, Entity entity, IGeneratedWriter outputter) {
    ChainedCodeGeneratorTask<Entity> generator = new ChainedCodeGeneratorTask<Entity>();
    generator.addTask(new JavaClassGeneratorTask(JAVA_FILE_EXTENSION, SOURCE, entity.getNamespace(), GETTER_PREFIX, SETTER_PREFIX));
    generator.generate(entity, ctx, outputter);
}
Also used : Entity(org.eclipse.vorto.core.api.model.datatype.Entity) JavaClassGeneratorTask(org.eclipse.vorto.codegen.prosystfi.tasks.JavaClassGeneratorTask) ChainedCodeGeneratorTask(org.eclipse.vorto.codegen.api.ChainedCodeGeneratorTask)

Aggregations

ChainedCodeGeneratorTask (org.eclipse.vorto.codegen.api.ChainedCodeGeneratorTask)16 GenerationResultZip (org.eclipse.vorto.codegen.api.GenerationResultZip)11 InformationModel (org.eclipse.vorto.core.api.model.informationmodel.InformationModel)10 FunctionblockProperty (org.eclipse.vorto.core.api.model.informationmodel.FunctionblockProperty)8 FunctionblockModel (org.eclipse.vorto.core.api.model.functionblock.FunctionblockModel)5 IGenerationResult (org.eclipse.vorto.codegen.api.IGenerationResult)3 GenerationResultBuilder (org.eclipse.vorto.codegen.utils.GenerationResultBuilder)2 Entity (org.eclipse.vorto.core.api.model.datatype.Entity)2 Enum (org.eclipse.vorto.core.api.model.datatype.Enum)2 HashMap (java.util.HashMap)1 DatatypeGeneratorTask (org.eclipse.vorto.codegen.api.DatatypeGeneratorTask)1 GeneratorTaskFromFileTemplate (org.eclipse.vorto.codegen.api.GeneratorTaskFromFileTemplate)1 JavaClientTask (org.eclipse.vorto.codegen.bosch.things.javaclient.JavaClientTask)1 ThingsClientGeneratorTask (org.eclipse.vorto.codegen.bosch.things.javaclient.tasks.ThingsClientGeneratorTask)1 ThingsIntegrationUtilGeneratorTask (org.eclipse.vorto.codegen.bosch.things.javaclient.tasks.ThingsIntegrationUtilGeneratorTask)1 FunctionblockTemplate (org.eclipse.vorto.codegen.bosch.things.javaclient.templates.FunctionblockTemplate)1 LogbackTemplate (org.eclipse.vorto.codegen.bosch.things.javaclient.templates.LogbackTemplate)1 PomTemplate (org.eclipse.vorto.codegen.bosch.things.javaclient.templates.PomTemplate)1 CoAPClientInformationModelGeneratorTask (org.eclipse.vorto.codegen.coap.client.tasks.CoAPClientInformationModelGeneratorTask)1 ClientDemoAppTemplate (org.eclipse.vorto.codegen.coap.client.templates.ClientDemoAppTemplate)1