public class ExcelWorkbookParser extends Object
Parses an excel import workbook and creates instructions.
Usage :
{
@code
ExcelWorkbookParser parser = ExcelWorkbookParser.createParser(xlsxFile);
parser.parse().releaseResources();
List<Instructions> instructions = parser.getInstructions();
}
| Modifier and Type | Method and Description |
|---|---|
static ExcelWorkbookParser |
createParser(File xls)
Factory method which should be used to create a parser.
|
List<RequirementVersionInstruction> |
getCoverageInstructions() |
List<DatasetParamValueInstruction> |
getDatasetInstructions() |
List<DatasetParamValueInstruction> |
getDatasetParamValuesInstructions() |
List<ParameterInstruction> |
getParameterInstructions() |
List<RequirementLinkInstruction> |
getRequirementLinkgsInstruction() |
List<RequirementVersionInstruction> |
getRequirementVersionInstructions() |
List<TestCaseInstruction> |
getTestCaseInstructions() |
List<StepInstruction> |
getTestStepInstructions() |
boolean |
isEmpty(org.apache.poi.ss.usermodel.Row row) |
LogTrain |
logUnknownHeaders() |
ExcelWorkbookParser |
parse()
Parses the file and creates instructions accordingly.
|
ExcelWorkbookParser |
releaseResources()
Releases resources held by this parser.
|
public LogTrain logUnknownHeaders()
public ExcelWorkbookParser parse()
public ExcelWorkbookParser releaseResources()
parse() method
should no longer be called.public List<TestCaseInstruction> getTestCaseInstructions()
public List<StepInstruction> getTestStepInstructions()
public List<ParameterInstruction> getParameterInstructions()
public List<DatasetParamValueInstruction> getDatasetInstructions()
public List<DatasetParamValueInstruction> getDatasetParamValuesInstructions()
public List<RequirementVersionInstruction> getRequirementVersionInstructions()
public List<RequirementVersionInstruction> getCoverageInstructions()
public List<RequirementLinkInstruction> getRequirementLinkgsInstruction()
public boolean isEmpty(org.apache.poi.ss.usermodel.Row row)
public static final ExcelWorkbookParser createParser(File xls) throws org.squashtest.tm.exception.SheetCorruptedException, TemplateMismatchException
xls - org.squashtest.tm.exception.SheetCorruptedException - when the excel file is unreadableTemplateMismatchException - when the workbook does not match the template in an unrecoverable way.Copyright © 2010–2017 Henix, henix.fr. All rights reserved.