/** * Create an instance of {@link Body } * */ public Body createBody() { return new Body(); }
private Body getTableBody(List<TemplateKv> listKv) { Body tbody = new Body(); for(TemplateKv kv : listKv) { tbody.getRow().add(getRow(kv)); } return tbody; }
private static Body buildBody(List<Object[]> data) { Body body = new Body(); for(Object[] row : data) { body.getRow().add(buildRow(row)); } return body; }
private Content createContent(Document doc) { Body body = new Body(); Element rootNode = doc.getRootElement(); for(Element cron : rootNode.getChildren("cron")) { body.getRow().add(createRow(cron)); } Content content = new Content(); content.getBody().add(body); return content; }