public final class IlrExcel2003ScenarioSuiteWorkbookFactory
extends java.lang.Object
IlrExcel2003ScenarioSuiteWorkbook.
This class follows the singleton pattern.
Use the workbook approach to read raw data from an Excel scenario file.
If you need a reader that interprets the contents of the scenario file using the BOM, you should use the reader approach described in the package description ilog.rules.dvs.excel.
The following example shows how to use the workbook to read raw data:
// Create an input stream on the scenario file
InputStream scenarioSuite = new FileInputStream("my-scenariofile.xls");
// Get an instance of the workbook factory
IlrExcel2003ScenarioSuiteWorkbookFactory factory = IlrExcel2003ScenarioSuiteWorkbookFactory.getInstance();
// Create a new workbook
IlrExcel2003ScenarioSuiteWorkbook workbook = factory.getNewWorkbook(scenarioSuite);
// Use the workbook
workbook.getSignatureOfTheRulesetToTest();
Decision Validation Services provides business rule testing and simulation solutions to developers and business users.
You use the DVS API to:
| Modifier | Constructor and Description |
|---|---|
protected |
IlrExcel2003ScenarioSuiteWorkbookFactory()
Creates the singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
static IlrExcel2003ScenarioSuiteWorkbookFactory |
getInstance()
Returns the singleton instance.
|
IlrExcel2003ScenarioSuiteWorkbook |
getNewWorkbook(java.io.InputStream theExcel2003DataStream)
Returns a new scenario suite workbook instance.
|
protected IlrExcel2003ScenarioSuiteWorkbookFactory()
public static IlrExcel2003ScenarioSuiteWorkbookFactory getInstance()
public IlrExcel2003ScenarioSuiteWorkbook getNewWorkbook(java.io.InputStream theExcel2003DataStream) throws IlrExcel2003ScenarioSuiteIOException, IlrExcel2003ScenarioSuiteDataException
IlrExcel2003ScenarioSuiteDataException - when invalid data is
found in an Excel 2003 scenario file.IlrExcel2003ScenarioSuiteIOException - when there is an I/O
problem.theExcel2003DataStream - An input stream to the Excel
2003 scenario file data.© Copyright IBM Corp. 1987, 2017