Package com.inet.excel.parser
Class RowData
java.lang.Object
com.inet.excel.parser.RowData
Container for data of cells belonging to single row.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContainer for data of single cell. -
Constructor Summary
ConstructorsConstructorDescriptionRowData(int rowIndex) Creates instance representing row with specified index. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCellData(RowData.CellData cellData) Adds data of cell belonging to the row, which is represented by this container.Returns list of all cell data included in this container.intReturns index of the row.
-
Constructor Details
-
RowData
public RowData(int rowIndex) Creates instance representing row with specified index.- Parameters:
rowIndex- index of the row. Minimum value is 1.- Throws:
IllegalArgumentException- if specified index is smaller than 1.
-
-
Method Details
-
getRowIndex
public int getRowIndex()Returns index of the row. Minimum value is 1.- Returns:
- index of the row.
-
addCellData
Adds data of cell belonging to the row, which is represented by this container.- Parameters:
cellData- data of the cell.
-
getCellsInRow
Returns list of all cell data included in this container.- Returns:
- list of all cell data included in this container.
-