本文整理了Java中org.apache.poi.xssf.usermodel.XSSFTable.getName()
方法的一些代码示例,展示了XSSFTable.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFTable.getName()
方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFTable
类名称:XSSFTable
方法名:getName
暂无
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Returns the data table with the given name (case insensitive).
*
* @param name the data table name (case-insensitive)
* @return The Data table in the workbook named <tt>name</tt>, or <tt>null</tt> if no table is named <tt>name</tt>.
* @since 3.15 beta 2
*/
public XSSFTable getTable(String name) {
if (name != null && sheets != null) {
for (XSSFSheet sheet : sheets) {
for (XSSFTable tbl : sheet.getTables()) {
if (name.equalsIgnoreCase(tbl.getName())) {
return tbl;
}
}
}
}
return null;
}
代码示例来源:origin: org.apache.poi/poi-ooxml
private Map<String, XSSFTable> getTableCache() {
if ( _tableCache != null ) {
return _tableCache;
}
// FIXME: use org.apache.commons.collections.map.CaseInsensitiveMap
_tableCache = new HashMap<>();
for (Sheet sheet : _uBook) {
for (XSSFTable tbl : ((XSSFSheet)sheet).getTables()) {
String lname = caseInsensitive(tbl.getName());
_tableCache.put(lname, tbl);
}
}
return _tableCache;
}
代码示例来源:origin: org.apache.poi/poi-ooxml
for (XSSFTable table : sheet.getTables()) {
if (name.equals(table.getName())) {
return new AreaReference(table.getStartCellReference(), table.getEndCellReference(),
SpreadsheetVersion.EXCEL2007);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Returns the data table with the given name (case insensitive).
*
* @param name the data table name (case-insensitive)
* @return The Data table in the workbook named <tt>name</tt>, or <tt>null</tt> if no table is named <tt>name</tt>.
* @since 3.15 beta 2
*/
public XSSFTable getTable(String name) {
if (name != null && sheets != null) {
for (XSSFSheet sheet : sheets) {
for (XSSFTable tbl : sheet.getTables()) {
if (name.equalsIgnoreCase(tbl.getName())) {
return tbl;
}
}
}
}
return null;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
private Map<String, XSSFTable> getTableCache() {
if ( _tableCache != null ) {
return _tableCache;
}
// FIXME: use org.apache.commons.collections.map.CaseInsensitiveMap
_tableCache = new HashMap<>();
for (Sheet sheet : _uBook) {
for (XSSFTable tbl : ((XSSFSheet)sheet).getTables()) {
String lname = caseInsensitive(tbl.getName());
_tableCache.put(lname, tbl);
}
}
return _tableCache;
}
代码示例来源:origin: stackoverflow.com
XSSFWorkbook workbook = new XSSFWorkbook(new File("test.xlsx"));
int numberOfSheets = workbook.getNumberOfSheets();
for(int sheetIdx = 0; sheetIdx < numberOfSheets; sheetIdx++) {
XSSFSheet sheet = workbook.getSheetAt(sheetIdx);
List<XSSFTable> tables = sheet.getTables();
for(XSSFTable t : tables) {
System.out.println(t.getDisplayName());
System.out.println(t.getName());
System.out.println(t.getNumerOfMappedColumns());
}
}
代码示例来源:origin: stackoverflow.com
for (XSSFTable t : tables) {
System.out.println(t.getDisplayName());
System.out.println(t.getName());
System.out.println(t.getNumerOfMappedColumns());
代码示例来源:origin: stackoverflow.com
for (XSSFTable t : tables) {
System.out.println(t.getDisplayName());
System.out.println(t.getName());
System.out.println(t.getNumerOfMappedColumns());
代码示例来源:origin: qaprosoft/carina
XSSFSheet childSheet = childWb.getSheetAt(i);
for (XSSFTable table : childSheet.getTables()) {
if (table.getName().equals(tableName)) {
return createChildTable(childSheet, cell.getRowIndex());
XSSFSheet childSheet = (XSSFSheet) wb.getSheetAt(i);
for (XSSFTable table : childSheet.getTables()) {
if (table.getName().equals(paths.get(0))) {
return createChildTable(childSheet, cell.getRowIndex());
代码示例来源:origin: com.qaprosoft/carina-dataprovider
XSSFSheet childSheet = childWb.getSheetAt(i);
for (XSSFTable table : childSheet.getTables()) {
if (table.getName().equals(tableName)) {
return createChildTable(childSheet, cell.getRowIndex());
XSSFSheet childSheet = (XSSFSheet) wb.getSheetAt(i);
for (XSSFTable table : childSheet.getTables()) {
if (table.getName().equals(paths.get(0))) {
return createChildTable(childSheet, cell.getRowIndex());
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
for (XSSFTable table : sheet.getTables()) {
if (name.equals(table.getName())) {
return new AreaReference(table.getStartCellReference(), table.getEndCellReference(),
SpreadsheetVersion.EXCEL2007);
内容来源于网络,如有侵权,请联系作者删除!