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

    Modifier and Type
    Method
    Description
    int
    Gets the number of rows in the body of the table.
    int
    Gets the number of rows in the footer of the table.
    int
    Gets the number of rows in the header of the table.
    int
    Gets the column index of current position.
    int
    Gets the colspan of the current position
    int
    Returns the amount of columns the table has.
    int
    Gets the row index of the current position.
    int
    Gets the rowspan of current position.
    boolean
    Checks if there is a next element in the iteration.
    Gets the next element in the iteration.
  • Method Details

    • 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