@Test public void basic() { TableModel tm = new TableModel(FOO, BAR); tm.addRow().cell(FOO, 1).cell(BAR, 2); tm.addRow().cell(FOO, 3).cell(BAR, 4); ArrayNode array = TableUtils.generateRowArrayNode(tm); Assert.assertEquals("wrong results", ARRAY_AS_STRING, array.toString()); }
public static ArrayNode generateRowArrayNode(TableModel tm) { ArrayNode array = MAPPER.createArrayNode(); for (TableModel.Row r : tm.getRows()) { array.add(toJsonNode(r, tm)); } return array; }
TableUtils { public static ArrayNode generateRowArrayNode(TableModel tm) { ArrayNode array = MAPPER.createArrayNode(); for (TableModel.Row r : tm.getRows()) { array.add(toJsonNode(r, tm)); } return array; } }
TableUtils { public static ArrayNode generateRowArrayNode(TableModel tm) { ArrayNode array = MAPPER.createArrayNode(); for (TableModel.Row r : tm.getRows()) { array.add(toJsonNode(r, tm)); } return array; } private  TableUtils(); }
TableUtils { public static ArrayNode generateRowArrayNode(TableModel tm) { ArrayNode array = MAPPER.createArrayNode(); for (TableModel.Row r : tm.getRows()) { array.add(toJsonNode(r, tm)); } return array; } private  TableUtils(); static ArrayNode generateRowArrayNode(TableModel tm); static ObjectNode generateAnnotObjectNode(TableModel tm); }
TableUtils { public static ArrayNode generateRowArrayNode(TableModel tm) { ArrayNode array = MAPPER.createArrayNode(); for (TableModel.Row r : tm.getRows()) { array.add(toJsonNode(r, tm)); } return array; } private  TableUtils(); static ArrayNode generateRowArrayNode(TableModel tm); static ObjectNode generateAnnotObjectNode(TableModel tm);  }