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 intgetAmountOfRowsBody()Gets the number of rows in the body of the table.intgetAmountOfRowsFooter()Gets the number of rows in the footer of the table.intgetAmountOfRowsHeader()Gets the number of rows in the header of the table.intgetCol()Gets the column index of current position.intgetColspan()Gets the colspan of the current positionintgetNumberOfColumns()Returns the amount of columns the table has.intgetRow()Gets the row index of the current position.intgetRowspan()Gets the rowspan of current position.booleanhasNext()Checks if there is a next element in the iteration.Tnext()Gets the next element in the iteration.
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Checks if there is a next element in the iteration.- Returns:
trueif there is a next element,falseotherwise
-
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
-
-