Package org.springframework.roo.classpath.itd

Examples of org.springframework.roo.classpath.itd.InvocableMemberBodyBuilder.indentRemove()


                .appendFormalLine("Object fieldValue = response.getResults().get(0).getFieldValue(field.getName());");
        bodyBuilder.appendFormalLine("if (fieldValue != null) {");
        bodyBuilder.indent();
        bodyBuilder
                .appendFormalLine("dojo.append(\"{label:'\").append(fieldValue).append(\" (\").append(field.getValueCount()).append(\")\").append(\"',\").append(\"id:'\").append(field.getName()).append(\"'},\");");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
View Full Code Here


        bodyBuilder.indent();
        bodyBuilder
                .appendFormalLine("dojo.append(\"{label:'\").append(fieldValue).append(\" (\").append(field.getValueCount()).append(\")\").append(\"',\").append(\"id:'\").append(field.getName()).append(\"'},\");");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.appendFormalLine("dojo.append(\"]}\");");
        bodyBuilder.appendFormalLine("return dojo.toString();");
View Full Code Here

                .appendFormalLine("dojo.append(\"{label:'\").append(fieldValue).append(\" (\").append(field.getValueCount()).append(\")\").append(\"',\").append(\"id:'\").append(field.getName()).append(\"'},\");");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.appendFormalLine("dojo.append(\"]}\");");
        bodyBuilder.appendFormalLine("return dojo.toString();");

        final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
View Full Code Here

        bodyBuilder
                .appendFormalLine("modelMap.addAttribute(\"searchResults\", "
                        + targetObject.getFullyQualifiedTypeName() + "."
                        + searchAnnotationValues.getSearchMethod()
                        + "(solrQuery).getResults());");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.appendFormalLine("return \""
                + webScaffoldAnnotationValues.getPath() + "/search\";");

        final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
View Full Code Here

                + jsonBeanName + " = " + findMethod.getMethodCall() + ";");
        bodyBuilder.appendFormalLine("if (" + jsonBeanName + " == null) {");
        bodyBuilder.indent();
        bodyBuilder.appendFormalLine("return new " + responseEntityShortName
                + "<String>(headers, " + httpStatusShortName + ".NOT_FOUND);");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.appendFormalLine("return new " + responseEntityShortName
                + "<String>(" + jsonBeanName + "."
                + toJsonMethodName.getSymbolName() + "(), headers, "
                + httpStatusShortName + ".OK);");
View Full Code Here

                + " == null) {");
        bodyBuilder.indent();
        bodyBuilder
                .appendFormalLine("return new ResponseEntity<String>(headers, "
                        + getShortName(HTTP_STATUS) + ".NOT_FOUND);");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder
                .appendFormalLine("return new ResponseEntity<String>(headers, "
View Full Code Here

        bodyBuilder
                .appendFormalLine("return new ResponseEntity<String>(headers, "
                        + getShortName(HTTP_STATUS) + ".NOT_FOUND);");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder
                .appendFormalLine("return new ResponseEntity<String>(headers, "
                        + getShortName(HTTP_STATUS) + ".OK);");
        closeTry(bodyBuilder, responseEntityShortName, httpStatusShortName);
View Full Code Here

                + " == null) {");
        bodyBuilder.indent();
        bodyBuilder
                .appendFormalLine("return new ResponseEntity<String>(headers, "
                        + getShortName(HTTP_STATUS) + ".NOT_FOUND);");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder
                .appendFormalLine("return new ResponseEntity<String>(headers, "
                        + getShortName(HTTP_STATUS) + ".OK);");
        closeTry(bodyBuilder, getShortName(RESPONSE_ENTITY),
View Full Code Here

        bodyBuilder.appendFormalLine("for (" + jsonEnabledTypeShortName + " "
                + jsonBeanName + ": " + jsonEnabledTypeShortName + "."
                + fromJsonArrayMethodName.getSymbolName() + "(json)) {");
        bodyBuilder.indent();
        bodyBuilder.appendFormalLine(persistMethod.getMethodCall() + ";");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder
                .appendFormalLine("return new ResponseEntity<String>(headers, "
                + getShortName(HTTP_STATUS) + ".CREATED);");
        closeTry(bodyBuilder, getShortName(RESPONSE_ENTITY),
View Full Code Here

        bodyBuilder.appendFormalLine("if (" + jsonBeanName + " == null) {");
        bodyBuilder.indent();
        bodyBuilder.appendFormalLine("return new "
                + getShortName(RESPONSE_ENTITY) + "<String>(headers, "
                + getShortName(HTTP_STATUS) + ".NOT_FOUND);");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.appendFormalLine(removeMethod.getMethodCall() + ";");
        bodyBuilder.appendFormalLine(
                "return new ResponseEntity<String>(headers, "
                + getShortName(HTTP_STATUS) + ".OK);");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.