Search in sources :

Example 1 with JavaEnumGeneratorTask

use of org.eclipse.vorto.codegen.prosystfi.tasks.JavaEnumGeneratorTask in project vorto by eclipse.

the class ProSystGenerator method generateForEnum.

private void generateForEnum(InformationModel infomodel, InvocationContext ctx, Enum en, IGeneratedWriter outputter) {
    ChainedCodeGeneratorTask<Enum> generator = new ChainedCodeGeneratorTask<Enum>();
    generator.addTask(new JavaEnumGeneratorTask(JAVA_FILE_EXTENSION, SOURCE, en.getNamespace()));
    generator.generate(en, ctx, outputter);
}
Also used : Enum(org.eclipse.vorto.core.api.model.datatype.Enum) JavaEnumGeneratorTask(org.eclipse.vorto.codegen.prosystfi.tasks.JavaEnumGeneratorTask) ChainedCodeGeneratorTask(org.eclipse.vorto.codegen.api.ChainedCodeGeneratorTask)

Aggregations

ChainedCodeGeneratorTask (org.eclipse.vorto.codegen.api.ChainedCodeGeneratorTask)1 JavaEnumGeneratorTask (org.eclipse.vorto.codegen.prosystfi.tasks.JavaEnumGeneratorTask)1 Enum (org.eclipse.vorto.core.api.model.datatype.Enum)1