/** * @return the name of the Table, if set */ public String getName() { if (name == null) { setName(ctTable.getName()); } return name; }
/** * @return the name of the Table, if set */ public String getName() { return ctTable.getName(); }
/** * @return the name of the Table, if set */ public String getName() { if (name == null) { setName(ctTable.getName()); } return name; }
private CTMap buildXMLMap(CTConnection connection, CTMapInfo ctMapInfo) { ctMapInfo.setSelectionNamespaces(""); CTMap map = ctMapInfo.addNewMap(); map.setID(ctMapInfo.getMapArray().length); map.setSchemaID("Schema" + ctTable.getName()); map.setName(ctTable.getName() + "Map"); map.setRootElement("root"); map.setShowImportExportValidationErrors(false); map.setAutoFit(true); map.setAppend(false); map.setPreserveFormat(true); map.setPreserveSortAFLayout(true); CTDataBinding binding = map.addNewDataBinding(); binding.setFileBinding(true); binding.setDataBindingLoadMode(1); binding.setConnectionID(connection.getId()); return map; }
public void parse(Table table) { final String tableName = table.getCTTable().getName(); int end = table.getEndCellReference().getRow(); TableNode tableNode = sheetParser.createTableNode(sheet,top,table); top.getChildren().add(tableNode); int headerRowCount = (int) table.getCTTable().getHeaderRowCount(); if(headerRowCount > 0){ Node header = parseHeader(tableNode); tableNode.addHeader(header); } ForEachNode forEach = new ForEachNode(sheet); tableNode.addLoop(forEach); forEach.setRows(new TableExpression(tableName)); XSSFRow template = sheet.getRow(row.getRowNum() + headerRowCount); Node templateNode = sheetParser.createRowNode(sheet, template ); for( int i = 0; i < template.getLastCellNum(); i++){ buildTableCell(table,templateNode, template.getCell(i, Row.CREATE_NULL_AS_BLANK)); } forEach.getChildren().add(templateNode ); addTotals(tableNode,templateNode); sheetParser.setCurrentRow(end + 1); }
private CTConnection buildConnection(XLXContext context) { CTConnection connection = connections.addNewConnection(); connection.setId(connections.getConnectionArray().length); connection.setName(ctTable.getName()); connection.setType(4); connection.setRefreshedVersion((short) 0); connection.setBackground(true); CTWebPr webPtr = connection.addNewWebPr(); webPtr.setXml(true); webPtr.setSourceData(true); webPtr.setHtmlFormat(STHtmlFmt.ALL); webPtr.setHtmlTables(true); webPtr.setUrl(context.getReportContext().getMetadata().getId()); ctTable.setTableType(STTableType.Enum.forString("xml")); ctTable.setConnectionId(connection.getId()); return connection; }