Search in sources :

Example 1 with JavaClassGeneratorTask

use of org.eclipse.vorto.codegen.prosystfi.tasks.JavaClassGeneratorTask 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)1 JavaClassGeneratorTask (org.eclipse.vorto.codegen.prosystfi.tasks.JavaClassGeneratorTask)1 Entity (org.eclipse.vorto.core.api.model.datatype.Entity)1