java.lang.Object
com.aoindustries.noc.monitor.common.Result
com.aoindustries.noc.monitor.common.TableResult
All Implemented Interfaces:
Serializable

public final class TableResult extends Result implements Serializable
Encapsulates the results that may be in a table, including table columns headers and rows. Each row has a different alert level.
Author:
AO Industries, Inc.
See Also:
  • Constructor Details

  • Method Details

    • isError

      public boolean isError()
      If is an error, columns=1, rows=1, and tableData.get(0) has the error.
    • getColumns

      public int getColumns()
      Gets the number of columns in the table.
    • getRows

      public int getRows()
      Gets the number of rows in the table.
    • getColumnHeaders

      public List<String> getColumnHeaders(Locale locale)
      Gets the column headers for the table.
    • getTableData

      public List<?> getTableData(Locale locale)
      Gets the table data. Each element may be found with the expression:
      List<?> tableData = tableResult.getTableData();
       int columns = tableResult.getColumns();
      
       Object cellData = tableData.get(row*columns + column);
    • getAlertLevels

      public List<AlertLevel> getAlertLevels()
      Gets the alert level on a per-row basis.
    • toString

      public String toString()
      Overrides:
      toString in class Object