@Override public String getFileName(final Operation context) { String _name = context.getName(); String _plus = ("UpdateThingShadowLambda_" + _name); return (_plus + ".js"); }
@Override public String getFileName(Operation operation) { return operation.getName() + filename; } }
@Override public String getFileName(Operation operation) { return operation.getName()+ "-response" + filename; } }
public static Operation findOperationByName(String operationName, FunctionBlock fb) { for (Operation operation : fb.getOperations()) { if (operation.getName().equalsIgnoreCase(operationName)) { return operation; } } return null; }
public static Operation findOperationByName(String operationName, FunctionBlock fb) { for (Operation operation : fb.getOperations()) { if (operation.getName().equalsIgnoreCase(operationName)) { return operation; } } return null; }
public static Operation findOperationByName(String operationName, FunctionBlock fb) { for (Operation operation : fb.getOperations()) { if (operation.getName().equalsIgnoreCase(operationName)) { return operation; } } return null; }
public static Operation findOperationByName(String operationName, FunctionBlock fb) { for (Operation operation : fb.getOperations()) { if (operation.getName().equalsIgnoreCase(operationName)) { return operation; } } return null; }
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); } }
String _name = currentService.getName(); g.writeStringField("name", _name); String _description = this.getDescription(currentService);
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); } }
final String operName = operation.getName();
String _name_1 = operation.getName(); return ((fbPropertyName + " ") + _name_1);
return operation.getName();
@Override public void generate(InformationModel model, InvocationContext context, IGeneratedWriter writer) { for (FunctionblockProperty fbProperty : model.getProperties()) { for (Operation operation : fbProperty.getType().getFunctionblock().getOperations()) { IMapped<Operation> mappedElement = context.getMappedElement(operation,STEREOTYPE_AWS_THINGSHADOW); if (isUpdateableOperation(mappedElement)) { ICodeGeneratorTask<Operation> generator = new GeneratorTaskFromFileTemplate<>(new UpdateThingShadowLambdaTemplate(mappedElement)); generator.generate(operation,context,writer); } else if (!operation.getParams().isEmpty() && !operation.getName().startsWith("get")) { ICodeGeneratorTask<Operation> generator = new GeneratorTaskFromFileTemplate<>(new UpdateThingShadowLambdaTemplate(mappedElement)); generator.generate(operation,context,writer); } } if (fbProperty.getType().getFunctionblock().getStatus() != null) { for (Property statusProperty : fbProperty.getType().getFunctionblock().getStatus().getProperties()) { ICodeGeneratorTask<Property> generator = new GeneratorTaskFromFileTemplate<>(new GetThingShadowLambdaTemplate()); generator.generate(statusProperty,context,writer); } } } }
String _name = operation.getName(); _builder.append(_name, ""); _builder.append(" ");
_builder.newLine(); _builder.append("\t"); String _name = operation.getName(); String _replace = _name.replace("_", "\\_"); _builder.append(_replace, "\t");