Package cdc.impex.exports
Interface ExportRow
public interface ExportRow
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String name) getComment(String name) List<cdc.issues.Issue>intReturns the 1-based number of this row.getValueAsBigDecimal(String name) getValueAsBigInteger(String name) getValueAsBoolean(String name) getValueAsDouble(String name) getValueAsLong(String name) booleanhasValidValue(String name) <T> voidsetData(ColumnTemplate<T> column, String name, T data) Set the data associated to a column.<T> voidsetData(ColumnTemplate<T> column, T data) Set the data associated to a name column.voidSet the data associated to a column
-
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
Set the data associated to a column- Parameters:
name- The column name.data- The data.- Throws:
IllegalArgumentException- Whennameordatais invalid.
-
setData
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- Whennameordatais invalid.
-
setData
Set the data associated to a column.This is mainly intended for pattern columns, but can be used with any column, as long as
nameis compliant withcolumn.- Type Parameters:
T- The column data type.- Parameters:
column- The column.name- The name, which must matchcolumn.data- The data.
-
getIssues
List<cdc.issues.Issue> getIssues()- Returns:
- The issues associated to this row.
-
containsKey
- Parameters:
name- The column name.- Returns:
trueif a value is associated toname.
-
getValue
-
hasValidValue
-
getValueAsBoolean
-
getValueAsLong
-
getValueAsDouble
-
getValueAsBigInteger
-
getValueAsBigDecimal
-
getComment
-