Class OdfSheet
- java.lang.Object
-
- org.pentaho.di.trans.steps.excelinput.ods.OdfSheet
-
- All Implemented Interfaces:
org.pentaho.di.core.spreadsheet.KSheet
public class OdfSheet extends Object implements org.pentaho.di.core.spreadsheet.KSheet
-
-
Constructor Summary
Constructors Constructor Description OdfSheet(org.odftoolkit.odfdom.doc.table.OdfTable table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
findNrColumns(org.odftoolkit.odfdom.doc.table.OdfTableRow row)
protected int
findNrRows()
Calculate the number of rows in the tableorg.pentaho.di.core.spreadsheet.KCell
getCell(int colnr, int rownr)
String
getName()
org.pentaho.di.core.spreadsheet.KCell[]
getRow(int rownr)
int
getRows()
protected boolean
isRowEmpty(org.odftoolkit.odfdom.dom.element.table.TableTableRowElement rowElem)
Check if row contains non-empty cells
-
-
-
Method Detail
-
findNrRows
protected int findNrRows()
Calculate the number of rows in the table- Returns:
- number of rows in the table
-
isRowEmpty
protected boolean isRowEmpty(org.odftoolkit.odfdom.dom.element.table.TableTableRowElement rowElem)
Check if row contains non-empty cells- Parameters:
rowElem
-- Returns:
-
findNrColumns
protected int findNrColumns(org.odftoolkit.odfdom.doc.table.OdfTableRow row)
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
getRow
public org.pentaho.di.core.spreadsheet.KCell[] getRow(int rownr)
- Specified by:
getRow
in interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
getRows
public int getRows()
- Specified by:
getRows
in interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
getCell
public org.pentaho.di.core.spreadsheet.KCell getCell(int colnr, int rownr)
- Specified by:
getCell
in interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
-