/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public TableCell(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
final TableCell a = new TableCell(jCas); a.setBegin(0); a.setEnd(1); a.addToIndexes(); final TableCell b = new TableCell(jCas); b.setBegin(2); b.setEnd(3); b.addToIndexes(); final TableCell c = new TableCell(jCas); c.setBegin(4); c.setEnd(5); c.addToIndexes(); final TableCell a1 = new TableCell(jCas); a1.setBegin(6); a1.setEnd(7); a1.addToIndexes(); final TableCell b1 = new TableCell(jCas); b1.setBegin(8); b1.setEnd(9); b1.addToIndexes(); final TableCell c1 = new TableCell(jCas); c1.setBegin(10); c1.setEnd(11); c1.addToIndexes();
final TableCell td = new TableCell(jCas); td.setColumn(findColIndexOfCell(element)); td.setRow(findRowIndexOfCell(element)); td.setRowSpan(getIntegerAttribute(element, "rowspan", 1)); td.setColumnSpan(getIntegerAttribute(element, "colspan", 1)); s = td; break;
e = createElement("td"); final TableCell cell = (TableCell) s; addRowOrCol(e, "data-row", cell.getRow()); addRowOrCol(e, "data-col", cell.getColumn()); addRowOrColSpan(e, "rowspan", cell.getRowSpan()); addRowOrColSpan(e, "colspan", cell.getColumnSpan()); } else if (s instanceof TableHeader) { e = createElement("thead");
TemplateField cell11 = fields.get(0); assertEquals("cell1", cell11.getName()); assertEquals(tableCell11.getBegin(), cell11.getBegin()); assertEquals(tableCell11.getEnd(), cell11.getEnd()); assertEquals(R1C1, cell11.getCoveredText()); assertEquals(R1C1, cell11.getValue()); TemplateField cell12 = fields.get(1); assertEquals("cell2", cell12.getName()); assertEquals(tableCell12.getBegin(), cell12.getBegin()); assertEquals(tableCell12.getEnd(), cell12.getEnd()); assertEquals(R1C2, cell12.getCoveredText()); assertEquals(R1C2, cell12.getValue()); TemplateField cell21 = fields.get(0); assertEquals("cell1", cell21.getName()); assertEquals(tableCell21.getBegin(), cell21.getBegin()); assertEquals(tableCell21.getEnd(), cell21.getEnd()); assertEquals(R2C1, cell21.getCoveredText()); assertEquals(R2C1, cell21.getValue()); TemplateField cell22 = fields.get(1); assertEquals("cell2", cell22.getName()); assertEquals(tableCell22.getBegin(), cell22.getBegin()); assertEquals(tableCell22.getEnd(), cell22.getEnd()); assertEquals(R2C2, cell22.getCoveredText()); assertEquals(R2C2, cell22.getValue());
tableRow.setDepth(++depth); TableCell c1 = new TableCell(jCas); c1.setBegin(cursor); c1.setDepth(++depth); c1.setEnd(cursor); c1.addToIndexes(); TableCell c2 = new TableCell(jCas); c2.setBegin(++cursor); c2.setDepth(depth); --depth; c2.setEnd(cursor); c2.addToIndexes();
final TableCell td = new TableCell(jCas); td.setColumn(findColIndexOfCell(element)); td.setRow(findRowIndexOfCell(element)); td.setRowSpan(getIntegerAttribute(element, "rowspan", 1)); td.setColumnSpan(getIntegerAttribute(element, "colspan", 1)); s = td; break;
TemplateField cell12 = fields.get(2); assertEquals("cell2", cell12.getName()); assertEquals(tableCell12.getBegin(), cell12.getBegin()); assertEquals(tableCell12.getEnd(), cell12.getEnd()); assertEquals(R1C2, cell12.getCoveredText()); assertEquals(R1C2, cell12.getValue()); TemplateField cell21 = fields.get(0); assertEquals("cell1", cell21.getName()); assertEquals(tableCell21.getBegin(), cell21.getBegin()); assertEquals(tableCell21.getEnd(), cell21.getEnd()); assertEquals(R2C1, cell21.getCoveredText()); assertEquals(R2C1, cell21.getValue());
tableRow.setDepth(++depth); TableCell c1 = new TableCell(jCas); c1.setBegin(cursor); c1.setDepth(++depth); c1.setEnd(cursor); c1.addToIndexes(); TableCell c2 = new TableCell(jCas); c2.setBegin(++cursor); c2.setDepth(depth); --depth; c2.setEnd(cursor); c2.addToIndexes();
/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public TableCell(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
tableRow.setDepth(++depth); TableCell c1 = new TableCell(jCas); c1.setBegin(cursor); c1.setDepth(++depth); c1.setEnd(cursor); c1.addToIndexes(); TableCell c2 = new TableCell(jCas); c2.setBegin(++cursor); c2.setDepth(depth); --depth; c2.setEnd(cursor); c2.addToIndexes();
tableRow.setDepth(++depth); TableCell c1 = new TableCell(jCas); c1.setBegin(cursor); c1.setDepth(++depth); c1.setEnd(cursor); c1.addToIndexes(); TableCell c2 = new TableCell(jCas); c2.setBegin(++cursor); c2.setDepth(depth); --depth; c2.setEnd(cursor); c2.addToIndexes();
tableCell11 = new TableCell(jCas); tableCell11.setBegin(cursor); tableCell11.setDepth(++depth); tableCell11.setEnd(cursor); tableCell11.addToIndexes(); tableCell12 = new TableCell(jCas); tableCell12.setBegin(++cursor); tableCell12.setDepth(depth); tableCell12.setEnd(cursor); tableCell12.addToIndexes(); tableCell21 = new TableCell(jCas); tableCell21.setBegin(cursor); tableCell21.setDepth(++depth); tableCell21.setEnd(cursor); tableCell21.addToIndexes(); tableCell22 = new TableCell(jCas); tableCell22.setBegin(++cursor); tableCell22.setDepth(depth); tableCell22.setEnd(cursor); tableCell22.addToIndexes();
tableCell11 = new TableCell(jCas); tableCell11.setBegin(cursor); tableCell11.setDepth(++depth); cursor += R1C1.length(); tableCell11.setEnd(cursor); tableCell11.addToIndexes(); tableCell12 = new TableCell(jCas); tableCell12.setBegin(++cursor); tableCell12.setDepth(depth); cursor += R1C2.length(); tableCell12.setEnd(cursor); tableCell12.addToIndexes(); tableCell21 = new TableCell(jCas); tableCell21.setBegin(cursor); tableCell21.setDepth(++depth); cursor += R2C1.length(); tableCell21.setEnd(cursor); tableCell21.addToIndexes(); tableCell22 = new TableCell(jCas); tableCell22.setBegin(++cursor); tableCell22.setDepth(depth); cursor += R2C2.length(); tableCell22.setEnd(cursor); tableCell22.addToIndexes();