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 intfindNrColumns(org.odftoolkit.odfdom.doc.table.OdfTableRow row)protected intfindNrRows()Calculate the number of rows in the tableorg.pentaho.di.core.spreadsheet.KCellgetCell(int colnr, int rownr)StringgetName()org.pentaho.di.core.spreadsheet.KCell[]getRow(int rownr)intgetRows()protected booleanisRowEmpty(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:
getNamein interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
getRow
public org.pentaho.di.core.spreadsheet.KCell[] getRow(int rownr)
- Specified by:
getRowin interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
getRows
public int getRows()
- Specified by:
getRowsin interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
getCell
public org.pentaho.di.core.spreadsheet.KCell getCell(int colnr, int rownr)- Specified by:
getCellin interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
-