Interface ExportRow


public interface ExportRow
  • Method Details

    • getTemplateInstance

      SheetTemplateInstance getTemplateInstance()
      Returns:
      The associated template instance.
    • getTemplate

      SheetTemplate getTemplate()
      Returns:
      The associated template.
    • getSheetName

      String getSheetName()
      Returns:
      The name of the sheet for which row is generated.
    • getNumber

      int getNumber()
      Returns the 1-based number of this row.

      In a sheet, the first row is numbered 2 whether the used format has headers or not.
      A header row numbered 1 is always considered, even if it does not exist with the used format.

      Returns:
      The 1-based number of this row.
    • setData

      void setData(String name, Object data)
      Set the data associated to a column
      Parameters:
      name - The column name.
      data - The data.
      Throws:
      IllegalArgumentException - When name or data is invalid.
    • setData

      <T> void setData(ColumnTemplate<T> column, T data)
      Set the data associated to a name column.

      WARNING: MUST be used with a name column.

      Type Parameters:
      T - The column data type.
      Parameters:
      column - The column.
      data - The data.
      Throws:
      IllegalArgumentException - When name or data is invalid.
    • setData

      <T> void setData(ColumnTemplate<T> column, String name, T data)
      Set the data associated to a column.

      This is mainly intended for pattern columns, but can be used with any column, as long as name is compliant with column.

      Type Parameters:
      T - The column data type.
      Parameters:
      column - The column.
      name - The name, which must match column.
      data - The data.
    • getIssues

      List<cdc.issues.Issue> getIssues()
      Returns:
      The issues associated to this row.
    • containsKey

      boolean containsKey(String name)
      Parameters:
      name - The column name.
      Returns:
      true if a value is associated to name.
    • getValue

      String getValue(String name)
    • hasValidValue

      boolean hasValidValue(String name)
    • getValueAsBoolean

      Boolean getValueAsBoolean(String name)
    • getValueAsLong

      Long getValueAsLong(String name)
    • getValueAsDouble

      Double getValueAsDouble(String name)
    • getValueAsBigInteger

      BigInteger getValueAsBigInteger(String name)
    • getValueAsBigDecimal

      BigDecimal getValueAsBigDecimal(String name)
    • getComment

      String getComment(String name)