use of org.eclipse.vorto.codegen.coap.common.tasks.JavaFBOperationReturnPrimitiveTypeWrapperGeneratorTask in project vorto by eclipse.
the class CoAPGenerator method generateForOperation.
private void generateForOperation(Operation op, IGeneratedWriter outputter) {
if (op.getReturnType() != null && op.getReturnType() instanceof ReturnPrimitiveType) {
primTypeWrapperRequired = true;
new JavaFBOperationReturnPrimitiveTypeWrapperGeneratorTask(op.getName() + COAP_PRIM_TYPE_WRAPPER_SUFFIX, JAVA_FILE_EXTENSION, primitiveTypeWrapperTargetPath, PRIMITIVE_TYPE_WRAPPER_PACKAGE).generate(op, null, outputter);
}
if (!op.getParams().isEmpty()) {
opParamSetRequired = true;
new JavaFBOperationParamSetGeneratorTask(op.getName() + COAP_PARAM_SET_SUFFIX, JAVA_FILE_EXTENSION, opParameterSetTargetPath, OP_PARAM_SET_PACKAGE, DT_PACKAGE).generate(op, null, outputter);
}
}
Aggregations