Interface ITableIterator<T>
-
- All Known Implementing Classes:
TableCellIterator
,TableStructElementIterator
interface ITableIterator<T>
Interface that provides methods for iterating over the elements of a table.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAmountOfRowsBody()
Gets the number of rows in the body of the table.int
getAmountOfRowsFooter()
Gets the number of rows in the footer of the table.int
getAmountOfRowsHeader()
Gets the number of rows in the header of the table.int
getCol()
Gets the column index of current position.int
getColspan()
Gets the colspan of the current positionint
getNumberOfColumns()
Returns the amount of columns the table has.int
getRow()
Gets the row index of the current position.int
getRowspan()
Gets the rowspan of current position.boolean
hasNext()
Checks if there is a next element in the iteration.T
next()
Gets the next element in the iteration.
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Checks if there is a next element in the iteration.- Returns:
true
if there is a next element,false
otherwise
-
next
T next()
Gets the next element in the iteration.- Returns:
- the next element
-
getAmountOfRowsBody
int getAmountOfRowsBody()
Gets the number of rows in the body of the table.- Returns:
- the number of rows in the body of the table
-
getAmountOfRowsHeader
int getAmountOfRowsHeader()
Gets the number of rows in the header of the table.- Returns:
- the number of rows in the header of the table
-
getAmountOfRowsFooter
int getAmountOfRowsFooter()
Gets the number of rows in the footer of the table.- Returns:
- the number of rows in the footer of the table
-
getNumberOfColumns
int getNumberOfColumns()
Returns the amount of columns the table has. All rows in a table in UA specification must have the same column count. So return the max column count for correctly generated error messages.- Returns:
- the amount of columns
-
getRow
int getRow()
Gets the row index of the current position.- Returns:
- the row index
-
getCol
int getCol()
Gets the column index of current position.- Returns:
- the column index
-
getRowspan
int getRowspan()
Gets the rowspan of current position.- Returns:
- the rowspan
-
getColspan
int getColspan()
Gets the colspan of the current position- Returns:
- the colspan of current position
-
-