public abstract class InstructionBuilder<COL extends Enum<COL> & TemplateColumn,INST extends Instruction<?>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.squashtest.tm.service.internal.batchimport.testcase.excel.CellValueCoercerRepository<COL> |
coercerRepository |
protected org.squashtest.tm.service.internal.batchimport.testcase.excel.PropertySetterRepository<COL> |
propertySetterRepository |
protected org.squashtest.tm.service.internal.batchimport.testcase.excel.PropertyHolderFinderRepository<COL> |
propHolderFinderRepository |
protected WorksheetDef<COL> |
worksheetDef |
| Constructor and Description |
|---|
InstructionBuilder(WorksheetDef<COL> worksheetDef) |
| Modifier and Type | Method and Description |
|---|---|
INST |
build(org.apache.poi.ss.usermodel.Row row)
Template method : instruction building can be customized in subclasses by
overriding
postProcessInstruction(Row, Instruction) |
protected abstract INST |
createInstruction(org.apache.poi.ss.usermodel.Row row) |
protected org.apache.poi.ss.usermodel.Cell |
getCell(org.apache.poi.ss.usermodel.Row row,
ColumnDef colDef)
Returns the asked cell
|
protected String |
getValue(org.apache.poi.ss.usermodel.Row row,
CustomFieldColumnDef colDef) |
protected <VAL> VAL |
getValue(org.apache.poi.ss.usermodel.Row row,
org.squashtest.tm.service.internal.batchimport.testcase.excel.StdColumnDef<COL> colDef) |
protected void |
postProcessInstruction(org.apache.poi.ss.usermodel.Row row,
INST instruction)
Override this method in subclass to postprocess an instruction.
|
protected final org.squashtest.tm.service.internal.batchimport.testcase.excel.CellValueCoercerRepository<COL extends Enum<COL> & TemplateColumn> coercerRepository
protected final org.squashtest.tm.service.internal.batchimport.testcase.excel.PropertyHolderFinderRepository<COL extends Enum<COL> & TemplateColumn> propHolderFinderRepository
protected final org.squashtest.tm.service.internal.batchimport.testcase.excel.PropertySetterRepository<COL extends Enum<COL> & TemplateColumn> propertySetterRepository
protected final WorksheetDef<COL extends Enum<COL> & TemplateColumn> worksheetDef
public InstructionBuilder(WorksheetDef<COL> worksheetDef)
protected abstract INST createInstruction(org.apache.poi.ss.usermodel.Row row)
public final INST build(org.apache.poi.ss.usermodel.Row row)
postProcessInstruction(Row, Instruction)row - protected void postProcessInstruction(org.apache.poi.ss.usermodel.Row row,
INST instruction)
row - instruction - protected final org.apache.poi.ss.usermodel.Cell getCell(org.apache.poi.ss.usermodel.Row row,
ColumnDef colDef)
row - colDef - protected final <VAL> VAL getValue(org.apache.poi.ss.usermodel.Row row,
org.squashtest.tm.service.internal.batchimport.testcase.excel.StdColumnDef<COL> colDef)
protected final String getValue(org.apache.poi.ss.usermodel.Row row, CustomFieldColumnDef colDef)
Copyright © 2010–2017 Henix, henix.fr. All rights reserved.