Package cdc.impex.exports
Interface ExportRow
-
public interface ExportRow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsKey(String name)StringgetComment(String name)List<cdc.issues.Issue>getIssues()intgetNumber()Returns the 1-based number of this row.StringgetSheetName()SheetTemplategetTemplate()StringgetValue(String name)BigDecimalgetValueAsBigDecimal(String name)BigIntegergetValueAsBigInteger(String name)BooleangetValueAsBoolean(String name)DoublegetValueAsDouble(String name)LonggetValueAsLong(String name)booleanhasValidValue(String name)<T> voidsetData(ColumnTemplate<T> column, T data)Set the data associated to a columnvoidsetData(String name, Object data)Set the data associated to a column
-
-
-
Method Detail
-
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- Whennameordatais invalid.
-
setData
<T> void setData(ColumnTemplate<T> column, T data)
Set the data associated to a column- Type Parameters:
T- The column data type.- Parameters:
column- The column.data- The data.- Throws:
IllegalArgumentException- Whennameordatais invalid.
-
getIssues
List<cdc.issues.Issue> getIssues()
- Returns:
- The issues associated to this row.
-
containsKey
boolean containsKey(String name)
- Parameters:
name- The column name.- Returns:
trueif a value is associated toname.
-
hasValidValue
boolean hasValidValue(String name)
-
getValueAsBigInteger
BigInteger getValueAsBigInteger(String name)
-
getValueAsBigDecimal
BigDecimal getValueAsBigDecimal(String name)
-
-