public final class IlrExcel2003ScenarioSuiteReaderFactory
extends java.lang.Object
IlrExcel2003ScenarioSuiteReader.
This class follows the Singleton pattern.
To read data from an Excel scenario file using the API, use this factory class to handle basic file management, and IlrExcel2003ScenarioSuiteReader to read and interpret the data.
A code example showing how the use the reader and the factory is available in the package description ilog.rules.dvs.excel.
The IlrExcel2003ScenarioSuiteReader implementation created
by this factory can be defined in a properties file. The name of the
properties file is defined by the
jrules.IlrExcel2003ScenarioSuiteReaderFactory.configuration
system property.
Use the implementation key to specify the class in the properties
file. The custom implementation of
IlrExcel2003ScenarioSuiteReader must define a constructor that
takes the following arguments:
InputStream pointing to the content of an Excel 2003
workbook containing a scenario suite.IlrObjectModelServices instance.Decision Validation Services provides business rule testing and simulation solutions to developers and business users.
You use the DVS API to:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIGURATION_SYSTEM_PROPERTY
The name of the system property used to define the path to a
.properties
custom configuration file for this factory. |
protected static java.lang.Class<? extends IlrExcel2003ScenarioSuiteReader> |
DEFAULT_EXCEL2003SCENARIOSUITE_IMPLEM |
static java.lang.String |
IMPLEMENTATION_KEY_IN_PROPERTIES_FILE
The key for the property that defines the
IlrExcel2003ScenarioSuiteReader implementation to be created
by this factory. |
protected java.lang.Class<? extends IlrExcel2003ScenarioSuiteReader> |
scenarioSuiteImplementation
The implementation of
IlrExcel2003ScenarioSuiteReader that this
factory creates. |
| Modifier | Constructor and Description |
|---|---|
protected |
IlrExcel2003ScenarioSuiteReaderFactory()
Creates the singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
static IlrExcel2003ScenarioSuiteReaderFactory |
getInstance()
Returns the singleton instance.
|
IlrExcel2003ScenarioSuiteReader |
getNewReader(java.io.InputStream theExcel2003DataStream,
IlrObjectModelServices theObjectModelServices)
Returns an instance of the reader.
|
IlrExcel2003ScenarioSuiteReader |
getNewReader(java.io.InputStream theExcel2003DataStream,
IlrRulesetArchive theRulesetArchive)
Returns an instance of the reader.
|
IlrExcel2003ScenarioSuiteReader |
getNewReader(java.io.InputStream theExcel2003DataStream,
IlrScenarioSuiteExecutionContext theExecutionContext)
Returns an instance of the reader.
|
public static final java.lang.String CONFIGURATION_SYSTEM_PROPERTY
.properties
custom configuration file for this factory.public static final java.lang.String IMPLEMENTATION_KEY_IN_PROPERTIES_FILE
IlrExcel2003ScenarioSuiteReader implementation to be created
by this factory.
This property is found in the .properties custom configuration file.protected static final java.lang.Class<? extends IlrExcel2003ScenarioSuiteReader> DEFAULT_EXCEL2003SCENARIOSUITE_IMPLEM
protected java.lang.Class<? extends IlrExcel2003ScenarioSuiteReader> scenarioSuiteImplementation
IlrExcel2003ScenarioSuiteReader that this
factory creates.protected IlrExcel2003ScenarioSuiteReaderFactory()
public static IlrExcel2003ScenarioSuiteReaderFactory getInstance()
public IlrExcel2003ScenarioSuiteReader getNewReader(java.io.InputStream theExcel2003DataStream, IlrScenarioSuiteExecutionContext theExecutionContext) throws IlrExcel2003ScenarioSuiteIOException
IlrExcel2003ScenarioSuiteIOExceptiontheExcel2003DataStream - An input stream to Excel 2003 scenario file
data.theExecutionContext - An execution context for the scenario suite.public IlrExcel2003ScenarioSuiteReader getNewReader(java.io.InputStream theExcel2003DataStream, IlrObjectModelServices theObjectModelServices) throws IlrExcel2003ScenarioSuiteIOException
IlrExcel2003ScenarioSuiteIOExceptiontheExcel2003DataStream - An input stream to Excel 2003 scenario file data.theObjectModelServices - An object model services instance on the BOM and B2X layer of the ruleset the scenario has been created for.public IlrExcel2003ScenarioSuiteReader getNewReader(java.io.InputStream theExcel2003DataStream, IlrRulesetArchive theRulesetArchive) throws IlrExcel2003ScenarioSuiteIOException
IlrExcel2003ScenarioSuiteIOExceptiontheExcel2003DataStream - An input stream to Excel 2003 scenario file data.theRulesetArchive - A ruleset archive that can be tested using the scenario file.© Copyright IBM Corp. 1987, 2017